Hi,
I am learning Linux with a web app installation at the link:
…
openSUSE Quickstart
…
It says this example is on OPENSUSE 10.2 (My computer is SUSE 14 now).
//////////
- Create Account Information
Become the root user.
su -l
Create a new nagios user account and give it a password.
/usr/sbin/useradd -m nagios
passwd nagios
Create a new nagios group. Add the nagios user to the group.
/usr/sbin/groupadd nagios
/usr/sbin/usermod -G nagios nagios
Create a new nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user to the group.
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod -a -G nagcmd wwwrun
////////////
When I run the following, it has an error:
,
/usr/sbin/usermod -a -G nagcmd nagios
/usr/sbin/usermod: invalid option – ‘a’
Try usermod --help' or
usermod --usage’ for more information.
,
I get the usermod help as:
/usr/sbin/usermod --help
???
Usage: usermod …
usermod - modify a user account
-c comment Set the GECOS field for the new account
-D binddn Use dn “binddn” to bind to the LDAP directory
-d homedir Home directory for the new user
-e expire Date on which the new account will be disabled
-f inactive Days after a password expires until account is disabled
-G group,… List of supplementary groups
-g gid Name/number of the users primary group
-l login Change login name.
-m Move home directory to the new path
-o Allow duplicate (non-unique) UID
-A group,… List of groups the user should be added to
-R group,… List of groups the user should be removed from
-P path Search passwd, shadow and group file in “path”
-p password Encrypted password as returned by crypt(3)
-s shell Name of the user’s login shell
-u uid Change the userid to the given number
–service srv Use nameservice ‘srv’
-L Locks the password entry for “user”
-U Try to unlock the password entry for “user”
–help Give this help list
–usage Give a short usage message
-v, --version Print program version
Valid services are: files, ldap
???
It has no ‘-a’ option. What is wrong with the unexpected as the installer says? What option I can use? Thanks in advance