Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
useradd Question
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
marquischan
Tux's lil' helper
Tux's lil' helper


Joined: 19 Mar 2005
Posts: 108

PostPosted: Wed Aug 31, 2005 3:40 am    Post subject: useradd Question Reply with quote

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
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Wed Aug 31, 2005 4:23 am    Post subject: Reply with quote

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
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Aug 31, 2005 5:02 am    Post subject: Reply with quote

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
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