130 likes | 434 Views
Linux User Management. Image source: cover of UNIX System Administration Handbook. Basic tasks. UNIX Add group (if new group) Create home directories Add users Create passwords Change ownership Change group Change permissions Create initialization files (.cshrc, .login, .profile)
E N D
Linux User Management Image source: cover of UNIX System Administration Handbook
Basic tasks • UNIX • Add group (if new group) • Create home directories • Add users • Create passwords • Change ownership • Change group • Change permissions • Create initialization files (.cshrc, .login, .profile) • Linux • add user • create password • automatically home directory will be create in /home/userid • group, ownership and permissions also handled automatically
Graphical tools • User manager (Red Hat 7 and above): • open KDE Control Panel and select User Manager • In User Manager, add user, group, etc. • Other versions: • Linuxconf • Problem with graphical tools • only practical for adding one or two users at a time, but tasks are automated
Shell window • Tasks are done manually • Used when 10 or more users are added at the same time. Scripts are used. • Example: Perl script for Linux accounts • create accounts: addaccounts • create passwords: createpass • summary script: addstudents • Example: course accounts in UNIX • home directories: homedir.do • change ownership: chown.do • change group: chgrp.do • assign permissions: chmod.do • use text editor (or worksheet program) and create entries to the password file. • Use editor and copy and paste the entries.