> > I did not look at the code at all for this. Only using existing programs. > If this should not be working then a patch will be needed somewhere. > However I will state that having the ability to set the default > permissions somewhere would be useful, and a requirement in some > environments.
Why do we need a patch ? That's exactly what the -k option is good for. You copy the /etc/skel directory to a directory of your choice, let's say /root/skel. You shuffle the permission bits of it the way you need them. After that you can use: useradd -k /root/skel -m <user> Alternatively you can do a chmod on /etc/skel. (though I would prefer option #1.) Cheers, Carsten >