Presentation on theme: "Linux User Management Image source: cover of UNIX System Administration HandbookUNIX System Administration Handbook."— Presentation transcript:
Linux User Management Image source: cover of UNIX System Administration HandbookUNIX 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 ManagerControl Panel In User Manager, add user, group, etc.User Manager Other versions: Linuxconf Fedora where to find itfind it a new look to User Managernew look Problem with graphical tools only practical for adding a few users, but tasks need to be automated for larger number of users
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: addaccountsaddaccounts create passwords: createpasscreatepass summary script: addstudentsaddstudents Example: course accounts in UNIX home directories: homedir.dohomedir.do change ownership: chown.dochown.do change group: chgrp.dochgrp.do assign permissions: chmod.dochmod.do use text editor (or worksheet program) and create entries to the password file.entries to the password file Use editor and copy and paste the entries.