openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security > ARCHIVES - Security » How To Modify Default Settings For Adding New Users

Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security > ARCHIVES - Security
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Security Want to know if you should really apply the latest kernel patch? Want to know how to configure your firewall? Discuss any Security related topics in here!

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Aug-2007, 00:37
laskagifts
Guest
 
Posts: n/a
Default

How to modify default settings for adding new users -- that all directories and files created by new users should have full access permissions (rwx) for the owner and none for group members and all other users?

Thanks
  #2 (permalink)  
Old 28-Aug-2007, 01:28
GuDoN
Guest
 
Posts: n/a
Default

Specifying the “-D” switch on its own will simply display the default settings, while specifying -D in conjunction with other switches will change the defaults to those values.

# useradd -D

GROUP=100
INACTIVE=-1HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

# useradd -D -s /bin/sh

# useradd -D

GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/sh
SKEL=/etc/skel

As you can see, this changes the default shell for created users from “bash” to “sh”.


Perameters
d home directory

-s starting program (shell)

-p password

-g (primary group assigned to the users)

-G (Other groups the user belongs to)

-m (Create the user’s home directory )
  #3 (permalink)  
Old 28-Aug-2007, 03:08
FeatherMonkey
Guest
 
Posts: n/a
Default

I maybe wrong but I think what you need to change is the umask
man umask for more info not 100% sure.

Suspect it's similar to the above to change the default and I suspect the octal will be something like 0077
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2