1834621 Members
2888 Online
110069 Solutions
New Discussion

Re: FTP & Access Rights

 
Sharon Bi_4
Occasional Advisor

FTP & Access Rights

Hi,

I use ftp to put some files on the system.

User ID: guest
It has 777 to the destination direcotry(also is user "guest"'s home direcory.)
But after I put one file to the destination directory, the rights changes to
640.

Then I ran the following command:
"ftpd -u 000"
Tried to change ftp umask to 000. But it seems does not work. ( do I have to
stop this daemon and restart?)

Or any other solutions? Thanks in advance!

Sharon
2 REPLIES 2
Paul Hite_2
Frequent Advisor

Re: FTP & Access Rights

You are probably launching ftpd from inetd. At least that's how HP-UX comes
configured. So you need to add the "-u 0" to the end of the ftpd line in
/etc/inetd.conf then run "inetd -c" to make inetd reread the config file.
Atif Malik_2
Frequent Advisor

Re: FTP & Access Rights

The syntax of "ftpd" is:

/etc/ftpd [-l] [-t timeout] [-T maxtimeout] [-u umask]

To alter it to accept 777 change the following line needs to be modified in
/etc/inetd.conf

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u000 # One Line

Once this entry has been modified, you've to restart the inetd or reread the
configuration file

inetd -k # Kills inetd
/etc/inetd #Restart inetd

or

inetd -c # Reread the /etc/inetd.conf file