graphicagenda
10/18/2011 - 8:52 AM

su shell and usermod

[su shell and usermod] #LegacyGISTS #shell

su - # switch user (root)
usermod -d /home/path/ {user} # set the user's home path
usermod {user} -s /bin/shell # set the user's shell
grep {user} /etc/passwd # find a user's id,group,access