Quoting Martin Bialasinski ([EMAIL PROTECTED]): > > >> "Chad" == Chad A Adlawan <[EMAIL PROTECTED]> 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.
Alternatively, set the permissions afterwards. If you create the directory first, the skeleton files won't be copied because adduser assumes the home directory is not to be mucked about with. Cheers, -- Email: [EMAIL PROTECTED] Tel: +44 1908 653 739 Fax: +44 1908 655 151 Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA Disclaimer: These addresses are only for reaching me, and do not signify official stationery. Views expressed here are either my own or plagiarised.