3.1. Creating the lockss User
Section Summary
This section describes how to create the lockss system user (if necessary), under which the LOCKSS system will run.
Note
Commands in this section are run as root [1].
Run this id command as root [1]:
id lockss
If a lockss user already exists on the host, the id command will output the information associated with it, including its user ID (uid) and group ID (gid), for example:
uid=958(lockss) gid=958(lockss) groups=958(lockss)
In this case, a lockss user exists on the host already, and no action is needed.
Otherwise, the id command above will output an error message, for example:
id: ‘lockss’: no such user
In this case, you will need to create a lockss user on the host now. To do so, run this useradd command as root [1]:
useradd --system --user-group --create-home --shell=/bin/bash lockss
or equivalently:
useradd -rUms /bin/bash lockss
This will create a lockss system user, a lockss system group, and a home directory in /home/lockss.
Footnotes