> So the trick is to copy files into the /etc/skel directory? These files will
> then be copied to every new user? But what if I want to reconfigure the
> desktop after the user is added? Are the files in /etc/skel copied to users
> every time they logon?
> And how do I distribute differend desktop layouts to different group of
> users? Let us say I have 10 users I want to give a configured desktop, and
> 20 other users I want to give another desktop? Do I have to copy the files
> manually, og perhaps write a script to copy the files? Where can I put such
> a script anyway? A scrips which is run every time a user logs in.
/etc/skel is just for new users - to give them a base configuration.
After that /etc/skel doesn't affect the existing user's home directories
any more. In order to change those afterwards you would have to copy
them via script or something. I can't program shell scripts but I would
think something like a loop that parses every home-dir and copies the
other files in this.
Or another idea might be to make a global .bashrc or .profile which the
user cannot change where a script is triggered when the user logs in. In
Debian you would write a line that executes your script in the local
.bash_profile file. This file yould also be created globally (create
.bashrc and .bash_profile in /etc and symbolically link them in every
home directory - disadvantage: a user is not able to add own entries -
workaround: create a user writable shell script for every user and add
an execute line in the global .bash_profile as well - for Debian just
use .profile - this isn't used anyway).
Those are just some ideas, I never tried that out by myself.
I hope it'll help.