From: "Milan P. Stanic" Subject: Re: home directory Date: Tue, 4 Jun 2002 14:16:46 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20020604121646.GA958@dl.rns-nis.co.yu> References: <3CFB3D44.3A869EDA@ns.kinetics.nsc.ru> <20020603103058.C2FAD1AB2E8@larocyon.laroche.univ-nantes.fr> <3CFC76FF.F41AB199@ns.kinetics.nsc.ru> <20020604092430.A42B71AB2E8@larocyon.laroche.univ-nantes.fr> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20020604092430.A42B71AB2E8@larocyon.laroche.univ-nantes.fr> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-admin@vger.kernel.org On Tue, Jun 04, 2002 at 11:25:53AM +0200, Nicolas Costes wrote: [...] It depends which version of adduser in use. If it is script it can be easy modified according to admin wishes. In any case we have source for our loved Linux, so .... My answer is based on Debian, but IIRC in most distributions adduser is a script. > - Use 'adduser -k TEMPLATE', where template is a skeleton of the users's > future directory, with right permissions set... But I think this solution > won't work, because permissions may be inherited from the upper directory > during the copy... Have a try :-) I think it will not work because modes are hard-coded into adduser script. Quick hack can be to change adduser script (it is Perl). Find chmod function in the script and set mode as you wish. BTW, there are separate modes for system-user and normal-user. Proper solution is to make this configurable trough /etc/adduser.conf but that is job for "adduser" author/maintainer. Milan