Visit Our UNIX and Linux User Community

Restrict FTP access to a single directory for only one user.

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Restrict FTP access to a single directory for only one user.
# 1  
Old 05-23-2008
Restrict FTP access to a single directory for only one user.

Hi All,

It will be very great if you can help me in this issue. Thanks in advance.

I need to enable FTP on a solaris9 server. I need to create a new user some "xxxxxx" and he can only FTP the files to and from between /tftpboot directory and network devices. Other users should not FTP the files from /tftpboot directory.

Please give me your valuable information in solving this issue ASAP.

# 2  
Old 05-23-2008
Look out for the account option of ftp..

This is what the man pages say..

account [passwd]
	      Supply a supplemental password required by a remote  system  for
	      access  to  resources  once  a  login has been successfully com-
	      pleted.  If no argument is included, the user will  be  prompted
	      for an account password in a non-echoing input mode.

Hope this is what you are looking for..

If you don;t want to to it this way, maybe create a new group on the target machine and add the user (only) to that group.
Give proper permissions to the directory from where you want to copy files for that group only.

# 3  
Old 05-23-2008
deny ftp access to users by placing their id into the /etc/ftpd/ftpusers file. Btw, you can check the FTP services enabled in the /etc/inet/services file
# 4  
Old 05-23-2008
just u denied ftp access to users by placing their id into the /etc/ftpd/ftpusers file.
once u check netstat -ae
it will display wether service is on or off.
it is on ok otherwise restart the services.
in sol10 #svcadm enable ftp or sol9 u have to go /etc/init.d
servies are in /etc/services.
# 5  
Old 05-23-2008
Restrict FTP access to a single directory for only one user

Hi All,

Thanks for your support. But still my issue was not resolved. I will explain you what i need to do exactly.

Basically i have a solaris9 server. In which i have a directory called "/tftpboot/" in which i am storing configuration files of the network devices of some domain(switches/routers).
I will get the configuration backup of those network devices using FTP from my server. while doing FTP i need to restrict the FTP session for a single user and also that specific user can only FTP the configuration files to the directory "/tftpboot/". so others should not initiate a FTP session from my server to the network devices in my domain(only that specific user can initiate FTP session). One more thing is "/tftpboot/" directory will be used by other users who are storing configuration files of other domain network devices.
so now how can i restrict the specific user to do FTP from /tftpboot/ to the devices.
Please help me in this. Smilie

# 6  
Old 05-23-2008
sorry to confuse you all.....

other users also should not initiate FTP session from /tftpboot directory..means other users should not put the files into /tftpboot directory using FTP... let them take the opportunity of transferring the files using scp or sftp or tftp but not through FTP..
# 7  
Old 05-23-2008
If I copied you right...
How about giving special permissions to the directory.. Even if the users try to ftp, they won;t be able to copy files..

That should solve the problem right...

Previous Thread | Next Thread
Test Your Knowledge in Computers #806
Difficulty: Medium
The decimal value 10,995 is expressed in hexadecimal as 2AF5
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Limit FTP user's access to a specific directory

Hi, I have searched "Limit FTP user's access to a specific directory" subject for 3 days. I found proftp and vsftp but i couldn't compile and install. Is there any idea. Please suggest. (6 Replies)
Discussion started by: hamurd
6 Replies

2. Red Hat

Restrict user access

Hi there I have an application user on my system that wants accesses to these file systems as such: rwx: /SAPO /SAPS12 /R3_888 /R3_888B /R3_888F /R3_888R r: /usr/sap these are the existing FS permissions:ownerships: # ls -ld /SAPO (9 Replies)
Discussion started by: hedkandi
9 Replies

3. UNIX for Dummies Questions & Answers

Restrict user access.

Hi All, How can we restrict a particular user access to a particular shell in solaris 10. Thanks in Advance. (5 Replies)
Discussion started by: rama krishna
5 Replies

4. Solaris

Restrict FTP User to a Directory

I am using Solaris 10 on SPARC. SunOS ddw 5.10 Generic_139555-08 sun4u sparc SUNW,SPARC-Enterprise I have put some text files in a directory '/u01/network' I want to create a ftp user which can just read the files in the network directory. The ftp user shouldn't be able to navigate or see... (4 Replies)
Discussion started by: fahdmirza
4 Replies

5. Red Hat

Restrict local users to access ftp

Hi, I had installed vsftp in rhel5 and i want to restrict all the local users from accessing the ftp. i want to allow specific users to access the ftp server. Request you to please help. Thanks & regards Arun (1 Reply)
Discussion started by: Arun.Kakarla
1 Replies

6. UNIX for Dummies Questions & Answers

how do U restrict a user to a single directory?

specifically - I don't need to restrict a user to a single directory - but I want them to be "ROOTED" to their home directory. so if my home directory is /home/onlyme when I login - if I do a pwd - I want to see: / but in real life I will be in /home/onlyme - it just appears as root to... (10 Replies)
Discussion started by: itobenon
10 Replies

7. UNIX for Advanced & Expert Users

How to give FTP access to a single user

Hi all, How can i give ftp access to single user on solaris9 system? others should not have the ftp access. i know about ftpusers file in /etc/ftpd but still what about if so many new users are created daily? And now for that single user how can we restict him to ftp the files only from... (2 Replies)
Discussion started by: santhoshkumar_d
2 Replies

8. UNIX for Dummies Questions & Answers

Restrict user access to their home dir

Hi! i'm using FreeBSD 6.2 and hosting my pc to frens in particular of sensitive information being saved to the PC, i would like to know is it possible for me to restrict user access to their /home dir. only? and also, i wanted to restrict them listing files under /etc thanks all! (10 Replies)
Discussion started by: rdns
10 Replies

9. Red Hat

restrict access of a user to two directories only

Hi all, I am using RHEL 5.0 I need a user say test to have full access to two directories, say /tmp1 & /tmp2 only other than his home directory. I do not want to change his login shell which is ksh or bash by default. Moreover, he should not even have read access of other directories. ... (10 Replies)
Discussion started by: vikas027
10 Replies

10. HP-UX

How to restrict a user group to access the kernel

Hi, Please any one can help me to know that how we can restrict a user group to access the kernel at all. (0 Replies)
Discussion started by: harishankar
0 Replies

Featured Tech Videos