Operating System - HP-UX
1821245 Members
3085 Online
109632 Solutions
New Discussion юеВ

Anonymous ftp - allowing write access to ~ftp/

 
Kevin O'Donovan
Regular Advisor

Anonymous ftp - allowing write access to ~ftp/

Hi all,

I have a request for anonymous FTP, to allow access to the ~ftp directory for writing. This is the way it has been up to now, but it no longer works like that.

Last weekend I converted the system to trusted, and we rebooted the server also.

Anonymous FTP hasn't been working, so I disabled and reenabled it, and that has reset the permissions on that filesystem as well as the ownership.

I don't understand how this was working before, as all the docs I have found won't even suggest that possibilty. However, the users have this directory hard coded and in scripts all over the place so need to be able to write to this directory, ~ftp, not the sub directories but /home/ftp/ itself.

Ignoring the security issues with this (I know I know) how can I reenable it so they can write to /home/ftp/?

tia,
Kevin.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Anonymous ftp - allowing write access to ~ftp/

Shalom Kevin,

I'd say that trusted system conversion may have simply disabled anonymous ftp. You can use sam to re-enable it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mark Greene_1
Honored Contributor

Re: Anonymous ftp - allowing write access to ~ftp/

Check the man page for ftpusers.


mark
the future will be a lot like now, only later
Dipu S
New Member

Re: Anonymous ftp - allowing write access to ~ftp/

Hi,
Normally ftp doesn't allow the anonymous user to write to ~ftp. This is because owner of ~ftp will be set as root and permission will be 555. This is the proper way of doing it (due to the security reasons you have mentioned). You can get more details on security issues here
http://newfdawg.com/SHP-FTP-anon.htm

~ftp/pub is the writable directory for anonymous users.

But anyway, its upto you how secure you want your system. I think anonymous users were able to write to ~ftp because the permissions were not 555. And this could have been set to the normal way (owner root and permission 555) by enabling trusted.

I think if you simple change the permissions back, it should work the way you want.

Hope you will find this useful !!
regs,
dipu
Kevin O'Donovan
Regular Advisor

Re: Anonymous ftp - allowing write access to ~ftp/

Hi,

as I mentioned above, I know this is not the correct way to use anonymous ftp, but that is the way the users require it.

Anonymous ftp IS working but I cannot write to the /home/ftp directory, only subdirectories like pub or incoming, etc.

If I change the permissions on /home/ftp to 777, anonymous ftp is disabled. It must be 555 or ftp denies the anonymous login.

Anyone know how to allow writing to /home/ftp as the anonymous ftp user? Again, I KNOW IT IS NOT RECOMMENDED and will be trying to get it changed but for now it is required to be this way. It was working up to very recently so it must be possible.

thanks,
Kevin.