bin/56914: ftpd ignores default umask settings
Peter Pentchev
roam at ringlet.net
Tue Sep 16 02:30:22 PDT 2003
The following reply was made to PR bin/56914; it has been noted by GNATS.
From: Peter Pentchev <roam at ringlet.net>
To: Sergei Vyshenski <svysh-4 at pn.sinp.msu.ru>
Cc: bug-followup at FreeBSD.org
Subject: Re: bin/56914: ftpd ignores default umask settings
Date: Tue, 16 Sep 2003 12:27:27 +0300
On Tue, Sep 16, 2003 at 12:10:27PM +0400, Sergei Vyshenski wrote:
>
> >Number: 56914
> >Category: bin
> >Synopsis: ftpd ignores default umask settings
> >Class: sw-bug
> >Arrival-Date: Tue Sep 16 01:20:08 PDT 2003
> >Originator: Sergei Vyshenski <svysh-4 at pn.sinp.msu.ru>
> >Release: FreeBSD 4.9-PRERELEASE i386
> >Organization:
> >Environment:
> System: FreeBSD 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #0: Thu Sep 11 04:53:19 MSD 2003 i386
>
>
> >Description:
> With /usr/libexec/ftpd all files uploaded by user ftp get permissions 644
> regardless of default umask value set by -u option for ftpd or from /etc/login.conf.
> >How-To-Repeat:
>
> Arrange ~ftp as /stand/sysinstall does by default for Anonymous
> FTP server.
> 1) Add to /etc/login.conf the line
>
> ftp::umask=027:
>
> do "cap_mkdb /etc/login.conf".
Adding the 'ftp' class to /etc/login.conf will not automatically
make the 'ftp' user actually use this class's settings. Is the 'ftp'
user actually a member of the 'ftp' login class? You can tell by
issuing the 'chfn ftp' command as root and checking the 'Class'
field; if it does not say 'ftp', then the ftp user will not honor
your login.conf settings for the 'ftp' class.
G'luck,
Peter
--
Peter Pentchev roam at ringlet.net roam at sbnd.net roam at FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
I am the thought you are now thinking.
More information about the freebsd-bugs
mailing list