1833171 Members
3630 Online
110051 Solutions
New Discussion

ftp permissions

 
William Pribble
Frequent Advisor

ftp permissions

I have and identical user account on 2 servers. I want to ftp a file from server 1 ro server 2 using this account. I want the permissions on the ftped file to be 655. How do I change the permissions setting so that all files ftped from my account on server1 to server2 have permissions of 655 after being ftped.

Thanks
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: ftp permissions

have you taken a look at the ftpaccess man pages?

live free or die
harry
Live Free or Die
Christopher Caldwell
Honored Contributor

Re: ftp permissions

Assume HP-UX 11.X and the wu-ftpd knock-off they use:
man ftpaccess - see the section on upload directives:
upload root-dir dirglob yes|no owner group mode dirs|nodirs

Define a directory with dirglob that permits or denies uploads.

If it does permit uploads, all files will be owned by owner and
group and will have the permissions set according to mode.
Craig Rants
Honored Contributor

Re: ftp permissions

Look for the Permission Capabilites of ftpaccess. You will find chmod yes|no typelist.
This may solve your problem.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
harry d brown jr
Honored Contributor

Re: ftp permissions

From the man pages for ftpaccess:

upload root-dir dirglob yes|no owner group mode dirs|nodirs

asin something like this

upload /home/usernamehere * yes usernamehere groupnamehere 0655 dirs

live free or die
harry
Live Free or Die
William Pribble
Frequent Advisor

Re: ftp permissions

In the ftpd man page it states that inorder to use the ftpaccess I need to start ftp /usr/lbin/ftpd -a.
I made this change in inetd.conf and the restarted inetd (inetd -c). When I try to ftp a file to this server I still get the default permissions of 640 on my ftped file.
Sanjay_6
Honored Contributor

Re: ftp permissions