Limit FTP user's access to a specific directory | Unix Linux Forums | Solaris

  Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Limit FTP user's access to a specific directory


Closed Thread    
Thread Tools Search this Thread Display Modes
Old 08-16-2013
hamurd hamurd is offline
Registered User
Join Date: Aug 2013
Last Activity: 26 September 2013, 10:02 AM EDT
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Error Limit FTP user's access to a specific directory


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.
Sponsored Links
Old 08-16-2013
hicksd8 hicksd8 is offline Forum Advisor  
Registered User
Join Date: Feb 2012
Last Activity: 3 March 2015, 2:27 PM EST
Location: Cornwall, UK
Posts: 903
Thanks: 58
Thanked 186 Times in 163 Posts
Firstly, you can create an account for your ftp client to use (with a unique userid/passwd). Create a separate group too just for this user. This means that they are very restricted with regards gaining access via userid and group access to other directories. When they connect they land in their home directory as specified on the account. You can disable them from interactive login too, so ftp access only (and they need to know the password for the account).

Secondly, (I'm assuming you are talking Solaris 10) you can restrict them to their own directory:

# ftpconfig /export/home/USERID
# vi /etc/ftpd/ftpaccess 
  guestuser USERID

where USERID is the special ftp account that you created.

I reckon that ought to do it. Make sure you test it.
Let us know if that doesn't work.

See this thread.........this may be useful too.............
How to restrict user to a specific directory in solaris 10

Last edited by hicksd8; 08-16-2013 at 09:26 AM..
Sponsored Links
Old 08-16-2013
general_lee general_lee is offline
Registered User
Join Date: Mar 2011
Last Activity: 24 November 2013, 1:01 PM EST
Posts: 19
Thanks: 3
Thanked 0 Times in 0 Posts
Just install proftp from opencsw. If you've not used opencsw before, try it.

With proftp you can then easily limit access for users to specific directories. I guess you know this! Opencsw means you won't need to compile it (think yum, apt for Solaris).
Old 08-16-2013
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
Join Date: Aug 2005
Last Activity: 3 March 2015, 5:25 PM EST
Location: Saskatchewan
Posts: 20,346
Thanks: 870
Thanked 3,564 Times in 3,329 Posts
Most FTP daemons don't have special "limit user to x directory" commands -- they use UNIX file permissions to define who has access to what files like everything else everywhere on the system. If you don't understand UNIX file permissions, you're liable to build yourself a problem in any case here.
Sponsored Links
Old 08-26-2013
darakas darakas is offline
Registered User
Join Date: Jun 2013
Last Activity: 13 March 2014, 3:56 AM EDT
Location: Kandy,Sri Lanka
Posts: 6
Thanks: 4
Thanked 1 Time in 1 Post
Please reffer this blog post.. Create ftp access only user in Solaris 10 with user restrictions(access rights) - Oracle Solaris
Sponsored Links
Old 08-28-2013
SunSolars_admin SunSolars_admin is offline
Registered User
Join Date: Mar 2011
Last Activity: 2 May 2014, 2:03 AM EDT
Location: Chennai, India
Posts: 23
Thanks: 1
Thanked 3 Times in 3 Posts
First do ps -ef | grep -i ftp (will list the ftp services which are running on your system)

If you have installed Proftpd package

Open the configuration (/etc/proftpd.conf or wherever you installed package)

Grep for Rootlogin add the user you want to restrict the ftp access.

Test it !

Hope this helps, anything else post back here.
Sponsored Links
Old 08-29-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
Join Date: Oct 2012
Last Activity: 2 March 2015, 6:25 AM EST
Location: as far north as you can go and still get a cable modem.
Posts: 114
Thanks: 9
Thanked 11 Times in 11 Posts
I do this with ACLS in UNIX.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Limit ftp access parameters for specific users? darakas Solaris 4 07-19-2013 03:40 AM
Limit user access daveisme AIX 1 07-13-2010 12:47 PM
create user with RWX access to a specific directory in Solaris 10 gsander Solaris 5 08-06-2009 01:36 PM
when FTP user will go to specific directory thepurple Solaris 5 12-22-2008 10:15 AM
Restrict FTP access to a single directory for only one user. santhoshkumar_d UNIX for Advanced & Expert Users 8 05-23-2008 09:08 AM

All times are GMT -4. The time now is 06:34 PM.