View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Nov 03, 2005 9:48 am Post subject: New user script for actions |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Nov 03, 2005 10:42 am Post subject: |
|
|
"man useradd" mentions /etc/skel, if that's of any use. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Thu Nov 03, 2005 11:48 am Post subject: |
|
|
Am assuming that whatever is placed in /etc/skel is copied into the new users home directory? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Nov 03, 2005 11:50 am Post subject: |
|
|
Look at the "-m" option in the manpage. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|