[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: .bash_profile, the empty /etc/skel, and the first user



[ Please don't Cc: me when replying to my message on a mailing list. ]

Shaya Potter:
> I have been thinking, maybe we can modify adduser to create a list of all 
> users it creates and their home directories.

/etc/passwd?

> Then we can have a program that reads this list and put a dotfile in each 
> present users home directory and in /etc/skel.  We can also put some confile
> type checking, such as if file in /home/spotter is = to the file in /etc/skel
> then it can be modified, but if not then it won't be.

No, no, no, no, no, no, no, no, no, no, no, no, no, noooooooooooooooooooo!

(That was fun. I'll have to save a copy for another occasion. :-)

Any scheme that requires modifying user's files for setting up
the system is broken. It's much better to have programs read
a global configuration file that users can, at their option,
override.

For example, there is no point in putting any configuration info
in /etc/skel/.bash_profile, since it can be put into /etc/profile
instead. There is no point in putting it in /etc/skel/.fvwm2rc,
since it can be put into /etc/X11/fvwm2/system.fvwm2rc instead.
And so on.

(I've been the victim of a modify-users'-dotfiles-with-script admin.
It's seriously unfun.)

-- 
Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me.
Please don't Cc: me when replying to my message on a mailing list.


Attachment: pgp1ZPKm2nGUI.pgp
Description: PGP signature


Reply to: