Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New user script for actions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Nov 03, 2005 9:48 am    Post subject: New user script for actions Reply with quote

Can anyone point me in the direction of creating my own user scripts whereas when a new user is created, certain files are copied into their home directory?

Also, when I finally complete a fully SQL based mail system which would eliminate the need for individual home directories, would this script become redundant or what would replace it?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Nov 03, 2005 10:42 am    Post subject: Reply with quote

"man useradd" mentions /etc/skel, if that's of any use.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Thu Nov 03, 2005 11:48 am    Post subject: Reply with quote

Am assuming that whatever is placed in /etc/skel is copied into the new users home directory?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Nov 03, 2005 11:50 am    Post subject: Reply with quote

Look at the "-m" option in the manpage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum