[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing default umask on useradd

>> "Chad" == Chad A Adlawan <chadi@plutus.draftpro.com> writes:

Chad> does anyone know of a way to change the default "useradd" or
Chad> "adduser" behaviour in terms of giving permissions to the new
Chad> users home directory ?  that is, when u add a new user, the
Chad> permission on his/her new home dir is set at 755.

The value is hardcoded into the file. You may want to file a wishlist
bug to make it configurable via /etc/adduser.conf

If you crerate the directory with the wanted permissions before
calling adduser, adduser will simply this directory.

So make yourself a custom script (myadduser or such), that creates the
directory and calls adduser afterwards.


Reply to: