View previous topic :: View next topic |
Author |
Message |
marquischan Tux's lil' helper
Joined: 19 Mar 2005 Posts: 108
|
Posted: Wed Aug 31, 2005 3:40 am Post subject: useradd Question |
|
|
When doing useradd -m abc
a directory which is called /home/abc will be created
Is there any method to force the /home/abc 's permission to 0770 ? It is 0755 by default !!
Thanks |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Wed Aug 31, 2005 4:23 am Post subject: |
|
|
man useradd
I don't see that feature. You'll just have to change it after.
You do know that 770 provides write access to the group members too? (Just checking) |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Wed Aug 31, 2005 5:02 am Post subject: |
|
|
Why not just write a simple shell script that adds the user via useradd, then chmods the permissions based on a variable assigned by the username? _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
|