sudo usermod <username> -s "/usr/bin/<shell>"
whoami shows the current username. who shows the users logged in the system. id shows the current user ID, group ID, and numeric version. sudo useradd {username} . Which causes the following steps:
sudo userdel {username} . This causes all the references to the user to be erased from /etc/passwd, /etc/shadow, and /etc/group. The home directory is preserved, use flag -r to over-write this. usermode {username} to modify the user account group memberships, home directory, login name, password, default shell, etc. bin:x:1:1:bin:/bin:/sbin/nologin usermod or tools like vipw/vigr instead. passwd chage [-m mindays] [-M maxdays] [-d lastday] [-I inactive] [-E expiredate] [-W warndays] {username} sudo chage -d 0 {username} sudo visudo
>> <username> ALL=(ALL) NOPASSWD:ALL
Where the format is as follow:
user hosts=(users:groups) commands
Use pssh utility to execute a command on multiple systems. For example:
$ for machines in node1 node2 node3
do
(ssh $machines some_command &)
done
or
pssh -viH machine1 machine2 machine3 do_something
To transfer file, use scp:
$ scp file.txt farflung.com:/tmp
$ scp file.tex student@farflung.com/home/student
$ scp -r some_dir farflung.com:/tmp/some_dir
groupname:password:GID:user1,user2,... where user is comma seperated. Group password can be set only if /etc/gshadow exists. umask -S umask u=r, g=rw, o=rwx