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

Re: adduser creates home dirs 700



On Wed, 5 Sep 2001, Ira Abramov wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On Wed, 5 Sep 2001, Evgeny Popov wrote:
> 
> > I would like to let users to browse their sites as
> > www.domain.com/~username/. In order to do this, it should be at least 711
> > permisions on /home/username, but addusercreates it 700. I did not find how
> 
> did you RTFMP, my friend? if you are using the adduser Debian uses (Guy
> Maor is maintainer) it would turn you to /etc/adduser.conf and
> adduser.conf(5) that goes with it, and among all the cool stuff it does
> (two level homedirs and other tricks), it has this to say:
> 
>      DIR_MODE
>             If  set to a valid value (e.g. 0755 or 755), direc­
>             tories created will have the specified permissions.
>             Otherwise 0755 is used as default.
> 
> why did I quote all this? because I have a toe gnawing feeling, either
> you didn't read it or you are not using the right distro. my adduser is
> the one found on Debian. (you can get it from the mirror on IGLU)

In my system (Mandrake 7.2) there is no man page for adduser.conf (the
file is only mentioned in the FILES section of the adduser man page)

A quick look at the adduser (actually: useradd) binary shows quite a few
variables. Simply 'strings /usr/sbin/useradd' or (better) check the
sources.

BTW: DIR_MODE is not among those vars. But I see UMASK, as well as things
such as MAIL_FILE, MAIL_DIR and MAIL_CHECK_ENAB .

No idea if any of them is implemented...

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il