Presentation on theme: "Linux User Management Image source: cover of UNIX System Administration Handbook."— Presentation transcript:
1Linux User ManagementImage source: cover of UNIX System Administration Handbook
2Basic tasks UNIX Linux Add group (if new group) Create home directoriesAdd usersCreate passwordsChange ownershipChange groupChange permissionsCreate initialization files (.cshrc, .login, .profile)Linuxadd usercreate passwordautomatically home directory will be create in /home/useridgroup, ownership and permissions also handled automatically
3Graphical tools User manager (Red Hat 7 and above): Other versions: open KDE Control Panel and select User ManagerIn User Manager, add user, group, etc.Other versions:LinuxconfFedorawhere to find ita new look to User ManagerProblem with graphical toolsonly practical for adding a few users, but tasks need to be automated for larger number of users
4Shell window Tasks are done manually Example: course accounts in UNIX Used when 10 or more users are added at the same time. Scripts are used.Example: Perl script for Linux accountscreate accounts: addaccountscreate passwords: createpasssummary script: addstudentsExample: course accounts in UNIXhome directories: homedir.dochange ownership: chown.dochange group: chgrp.doassign permissions: chmod.douse text editor (or worksheet program) and create entries to the password file.Use editor and copy and paste the entries.