Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting umask for ftpd 1

Status
Not open for further replies.

cwomack11

Technical User
Jun 20, 2001
2
US
When our users login to our server and PUT files in their directory, the permissions on the files they transfer are 644. I want them to be 755. According to the ftpd man page, I can add UMASK=022 to the /etc/default/ftpd file, refresh the inetd process and the default umask is set to 022. This doesn't work. Just to make sure the /etc/default/ftpd file works, I added a BANNER="hello world" line and it does show up during the ftp login process.

Has anyone been able to set this up?
 
sorry you can't ...a umask of 666 is the highest possible, this is the same when setting the umask on solaris file systems also. Files that are created are not automatically
assumed to be executable.
umask resultant permissions (for files)
000 666
011 644
022 644
033 644
044 622
055 622
066 600
077 600
To determine what to set the umask to, subtract the desired permissions from 666 or 777 (e.g. 666 -644 = 022).

Regards.

Carlos Almeida
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top