Howto create users on image.diku.dk

From ImageWiki

Jump to: navigation, search

Creating Image Group member users

All members of the Image Group (VIP, Phd, research assistents, etc.) should be in the group 'users' and possible any other relevant groups (e.g. system administrators should be in the group 'wheel').


Example: How to create the user myuser</br> On image.diku.dk as root:

useradd -m -g users -p <crypt output> myuser -c '<real name of user>'

This will create a new account with the name myuser in the group 'users' with home directory in /home/myuser.

<crypt output> is the crypt encoded password string. You get it from the diku system by running the following command on ask.diku.dk (or any other host on the diku internal network):

ypmatch myuser passwd

The crypted password is the second string in the ':' separated list.


Creating student users

Students doing projects or courses within the image group can get access to image.diku.dk. The student account will only be active for the duration of the project or course.

A student user should always be in the group 'users' and maybe some course / project specific group.

Example: How to create the user myuser</br> As root you can create a new account with the name myuser in the group 'users' with home directory in /home/myuser by:

useradd -m --expiredate <YYYY-MM-DD> -f 0 -g users -p <crypt output> myuser -c '<Meaningful comment>'

Here <YYYY-MM-DD> is the date on which the account will be disabled. Set this date shortly after the time the project deadline or course end.

<crypt output> refers to the crypt encoded password string. You get it from the diku system by running the following command on ask.diku.dk (or any other host on the diku internal network):

ypmatch myuser passwd

The crypted password is the second string in the ':' separated list.


Adding a user to other groups

Example: Adding myuser to the group mygroup

usermod -a -G mygroup myuser 
Personal tools