1834426 Members
1992 Online
110067 Solutions
New Discussion

Re: upload files

 
SOLVED
Go to solution
peterchu
Super Advisor

upload files

I want to let the users to upload .txt files from their pc to unix server , they use the ftp , it work fine but it is too danger as they can access the shell to read and even download files from the unix server , could suggest what other application is the most secure for user to upload files ? thx.
3 REPLIES 3
Mark Grant
Honored Contributor
Solution

Re: upload files

THere is no reason why your users need shell access to use "ftp". Just change the shell field in /etc/passwd to /usr/bin/false and add /usr/bin/false to /etc/shells.

They will still be able to ftp but not be able to log in.

If you want to stop them getting files from "ftp", have a look at /etc/ftpd/ftpaccess. In here you can limit which ftp commands the users can use. You can stop them using "get" if you want.

Never preceed any demonstration with anything more predictive than "watch this"
V.Tamilvanan
Honored Contributor

Re: upload files

Hi,
Check the man pages of ftpaccess and the example file /usr/newconfig/etc/ftpd/examples/ftpaccess.
Geoff Wild
Honored Contributor

Re: upload files

You might even want to try samba:

http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

That way, the users just "map" a drive to your Unix server.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.