Chapter 10. Special Adaptations for your Users

There are many things you can do for your users, so that their experience of working with a Skolelinux/Debian-edu-machine will exceed anything they have known previously, believe me.

10.1. Deciding Which Directories the Users Should Have

To start with, every users get two directories created when the user is created


drwxrwx---        klaus klaus    priv
drwxrwxr-x        klaus klaus    pub
that is, a directory that is open for everyone to view, pub and one that is closed to other users priv.

If you aren't comfortable with the idea that your users are supposed to understand the concept of a closed (priv) and an open directory (pub) in their home directories you can change this. You can either lock the directories at the top level after the users are created

chmod 700 /skole/tjener/home0/*

or you can open them a little

chmod 711 /skole/tjener/home0/*

If you want your users to have several directories from the start, for example the directories mathematics, English, German, French, this can be done by changing a bit of the file /usr/share/webmin/ldap-users/createhomedir, by adding these lines:


# Make a directory related to the subject mathematics 
mkdir "$homedir/mathematics"
chmod 0770 "$homedir/mathematics"

# Make a directory related to the subject English
mkdir "$homedir/English"
chmod 0770 "$homedir/English"

# Make a directory related to the subject German
mkdir "$homedir/German"
chmod 0770 "$homedir/German"

# Make a directory related to the subject French
mkdir "$homedir/French"
chmod 0770 "$homedir/French"