Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Unix User and Group Management Commands

Chapter 11. Unix User and Group Management Commands

CommandDescriptionCommandDescription
acPrint statistics about users' connect time.lognamePrint user's login name.
acctonTurn on accounting of processes. To turn it on type "accton /var/log/pacct".newgrpLets a suer log in to a new group.
adduserEx: adduser mark - Effect: Adds a user to the system named marknewusersUpdate and create newusers in batch.
chageUsed to change the time the user's password will expire.passwdSet a user's pass word.
chfnChange the user full name field finger informationpwckVerify integrity of password files.
chgrpChanges the group ownership of files.pwconvConvert to and from shadow passwords and groups.
chownChange the owner of file(s ) to another user.quotaDisplay users' limits and current disk usage.
chpasswdUpdate password file in batch.quotaoff or quotaonTurns system quotas off/on.
chrootRun command or interactive shell with special root directory.quotacheckUsed to check a filesystem for usage, and update the quota.user file.
chshChange the login shell.repquotaLists a summary of quota information on filesystems.
edquotaUsed to edit user or group quotas. This program uses the vi editor to edit the quota.user and quota.group files.saGenerates a summary of information about users' processes that are stored in the /var/log/pacct file.
faillogExamine faillog and set login failure limits.smbclientWorks similar to an ftp client enabling the user to transfer files to and from a windows based computer.
fingerSee what users are running on a system.smbmountAllows a shared directory on a windows machine to be mounted on the Linux machine.
gpasswdAdminister the /etc/group file.smbpasswdProgram to change users passwords for samba.
groupaddCreate a new group.suEx: su mark - Effect: changes the user to mark, If not root will need marks password.
grpckVerify the integrity of group files.suloginSingle user login.
grpconvCreates /etc/gshadow from the file /etc/group which converts to shadow passwords.useraddCreate a new user or update default new user information.
grpunconvUses the files /etc/passwd and /etc/shadow to create /etc/passwd, then deletes /etc/shadow which converts from shadow passwords.userdelDelete a user account and related files.
groupdelDelete a group.usermodModify a user account.
groupmodModify a group.usersPrint the user names of users currently logged in.
groupsPrint the groups a user is inutmpdumpUsed for debugging.
idPrint real and effective user id and group ids.vigr or vipwEdit the password or group files.
lastDisplay the last users logged on and how long.wDisplay users logged in and what they are doing.
lastbShows failed login attempts. This command requires the file /var/log/btmp to exist in order to work.wallSend a message to everybody's terminal.
lastcommDisplay information about previous commands in reverse order. Works only if process accounting is on.whoDisplay the users logged in.
lastlogFormats and prints the contents of the last login.whoamiPrint effective user id.



  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint