PDA

View Full Version : adduser + ln



derjens
05-23-2003, 11:37 AM
hi all,

i would like to create a sym.link in each home-dir if i create a new user (ln -s /export/files /pub_files).
i thought if i creat this link in the /etc/skel it would fit but then all files out of /export/files are copied in in the dir /home/user/pub_files which then is a real dir and not a sym.link.
i did not found any FAQ on how to do it within the adduser.conf.
can anyone give me some help?

cheers,
jens

eadz
05-23-2003, 12:11 PM
I have a feeling there is a way to make adduser automatically run a script when a user is added, but I'm not sure.

This is probally not the best solution, but it is a solution : adduser is a perl script, you could find the bits where it copies stuff from skel, and do the linking.