Operating System - HP-UX
1836428 Members
3507 Online
110100 Solutions
New Discussion

Change Umask on FTP home dir

 
SOLVED
Go to solution
Gerry Tully
Frequent Advisor

Change Umask on FTP home dir

Any help would be appreciated. I am trying to change the umask on a ftp home directory so when some sends a file over the permissions are 222. The Umask is currently set to 027. I tried the /etc/ftpd/ftpaccess file but it looks like I'm in the wrong area. Any ideas? Thanks.
Any Ideas?
2 REPLIES 2
Sundar_7
Honored Contributor
Solution

Re: Change Umask on FTP home dir

Gerry,

You will have to edit the /etc/inetd.conf entry and add the -u option for the ftpd.

Change from

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

to

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u

Force Inetd to re-read the config

inetd -c

Sundar
Learn What to do ,How to do and more importantly When to do ?
Gerry Tully
Frequent Advisor

Re: Change Umask on FTP home dir

Thank you Sundar.
Any Ideas?