Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 12:10:27 +0400 (MSD)
From:      Sergei Vyshenski <svysh-4@pn.sinp.msu.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/56914: ftpd ignores default umask settings
Message-ID:  <200309160810.h8G8ARcc003623@vivaldi.pn.sinp.msu.ru>
Resent-Message-ID: <200309160820.h8G8KBDB019075@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         56914
>Category:       bin
>Synopsis:       ftpd ignores default umask settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 16 01:20:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Sergei Vyshenski <svysh-4@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".

	And/or 
	2) add to /etc/inetd.conf the line 

	ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l -l -A -h -M -u 027

	do "killall -1 inetd".

	Then log in to the ftpd as user "anonymous" and upload a file.
	Uploaded file has mode 644, instead of mode 640 expected from the given default umask

>Fix:

	Use wu-ftpd or proftpd from ports instead.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309160810.h8G8ARcc003623>