Operating System - HP-UX
1833464 Members
3034 Online
110052 Solutions
New Discussion

Re: permission withing ftp on hp11.0

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

permission withing ftp on hp11.0

Hi,

Now I have another question with regards ftpaccess.

when I ftp in, and put the file in, I got permission of "640", at what configurations I can change the default to 660.

Thanks,
none
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: permission withing ftp on hp11.0

Hi:

You can add the '-u umask' argument to the 'ftpd' entry in 'etc/inetd.conf' and restart the 'inetd' daemon ('inetd -c'). This will globally specify the umask for everyone.

You can also set a 'defumask' by class in the 'ftpaccess' file. See the man pages for 'ftpaccess(4)' -- man 4 ftpaccess.

Regards!

...JRF...
Helen French
Honored Contributor

Re: permission withing ftp on hp11.0

Two ways:

1) For temp. ftp session, use "umask" command inside the session:
ftp> umask 022
2) For changing the default permission for all ftp sessions, edit /etc/inetd.conf file and add "-u" option followed by the umask set number. Then restart inetd:

ftp ...options ... -u 022
# inetd -c (restart)
Life is a promise, fulfill it!
RAC_1
Honored Contributor

Re: permission withing ftp on hp11.0

Three ways.

In session use umask command.

Put it as class in ftpaccess file

put it in inetd.conf. ftpd -u "umask"
There is no substitute to HARDWORK