Managing Users - Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

GenProf, LogProf, SD_AddProfile, SD_DeleteProfile, SD_EditProfile, SD_Report,
and subdomain
These modules control or configure AppArmor. AppArmor has its own command
line tools.

8.13.1 Managing Users

The YaST commands for user management, unlike traditional commands, considers
the configured authentication method and default user management settings of your
system when creating, modifying, or removing users. For example, you do not need
create home directory or copy skel files during or after the user addition. If you enter
the username and password, all other settings are made automatically in accordance
with default configuration. The functionality provided by the command line is the same
as in the graphical interface.
The YaST module users is used for user management. To display the command op-
tions, enter yast users help.
To add multiple users, create a /tmp/users.txt file with a list of users to add.
Enter one username per line and use the following script:
Example 8.2 Adding Multiple Users
#!/bin/bash
#
# adds new user, the password is same as username
#
for i in `cat /tmp/users.txt`;
do
yast users add username=$i password=$i
done
Similarly to adding, you can delete users defined in /tmp/users.txt:
System Configuration with YaST
189

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents