


















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































User Management – Terminology
Configuration files for user account
and group
/etc/passwd
Username:password:UID:GID:Info:Home:Shell
/etc/shadow
Username:Password:Last_pwd_change:Minimum:Maximum:Warn:Inactive :Expire
$ grep root /etc/shadow root:b93.GT2r.7IZ6:9718:0:60:7:::
/etc/gshadow
11
Root
13
/etc/sudoers Examples
root ALL = (ALL) ALL
%wheel ALL = (ALL) ALL
srk,rp ALL = NOPASSWD: ALL
peter, %operator ALL= /sbin/, /usr/sbin, /usr/local/apps/check.pl
14
Using Aliases in the sudoers File
User_Alias ADMINS = millert, mikef, dowdy
ADMINS ALL = NOPASSWD: ALL
Cmnd_Alias PRINTING = /usr/sbin/lpc, /usr/bin/lprm
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown
srk ALL = PRINTING, /usr/bin/adduser
- User srk can use printer and add new user
Managing Users
Adding Users
Setting Passwords
new password: retype password:
Account Security