Operating System - HP-UX
1748183 Members
3578 Online
108759 Solutions
New Discussion юеВ

Re: Restrict user to get the file from ftp

 
j773303
Super Advisor

Restrict user to get the file from ftp

as title, how to restrict user
to catch the file from ftp?
Hero
5 REPLIES 5
j773303
Super Advisor

Re: Restrict user to get the file from ftp

My mean is test.txt in /tmp,
how to set the file permission
or other ways to restrict ftp user to catch the test.txt file.
Hero
Steven E. Protter
Exalted Contributor

Re: Restrict user to get the file from ftp

I will assume you want the file to be visible only to one user.

chown user:group filename
chmod 700 filename

These two command will make give the owner full permissions on it, when connected via ftp.

I hope I guessed your question correctly, if not, clarify.

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
j773303
Super Advisor

Re: Restrict user to get the file from ftp

For example: /tmp/test.txt
the file permission is r--r--r--. When user using ftp from client,I don't want to test.txt can get from ftp. Is it possible to do this in HPUX?
Hero
James A. Donovan
Honored Contributor

Re: Restrict user to get the file from ftp

There are many things to consider to properly restrict ftp access. I strongly suggest you study the "how-to" guides found at this web site.

http://www.wu-ftpd.org/HOWTO/
Remember, wherever you go, there you are...
Ian Dennison_1
Honored Contributor

Re: Restrict user to get the file from ftp

To say it another way,....

You do not want any user to be able to get "test.txt" using ftp?

Use the file /etc/ftpd/ftpaccess, and specify an option of "noretrieve" within it for the full file name.

To activate this, edit the /etc/inetd.conf file and specify options of "-a" on the "ftpd" line. Stop and restart internet services using /sbin/init.d/inetd.

I would suggest trying this on a test box first to validate it before rolling it out.

Alternatively, there are a lot of excellent FTP Servers out there that have many configuration options.

Share and Enjoy! Ian
Building a dumber user