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

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
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

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.
Sponsored Links
    #2  
Old 08-16-2013
hicksd8 hicksd8 is offline
Registered User
 
Join Date: Feb 2012
Last Activity: 21 April 2014, 3:34 AM EDT
Location: Cornwall, UK
Posts: 635
Thanks: 22
Thanked 104 Times in 100 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:


Code:
 
# 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 08:26 AM..
Sponsored Links
    #3  
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).
    #4  
Old 08-16-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 April 2014, 6:29 PM EDT
Location: Saskatchewan
Posts: 18,531
Thanks: 681
Thanked 3,036 Times in 2,856 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
    #5  
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
Hi
Please reffer this blog post..
solaris4servers.blogspot.com/2013/06/create-ftp-only-user-in-solaris-10-with.html Create ftp access only user in Solaris 10 with user restrictions(access rights) - Oracle Solaris
Sponsored Links
    #6  
Old 08-28-2013
SunSolars_admin SunSolars_admin is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 28 January 2014, 10:35 AM EST
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
    #7  
Old 08-29-2013
os2mac's Avatar
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 18 April 2014, 4:02 PM EDT
Location: as far north as you can go and still get a cable modem.
Posts: 104
Thanks: 8
Thanked 10 Times in 10 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 02:40 AM
Limit user access daveisme AIX 1 07-13-2010 11:47 AM
create user with RWX access to a specific directory in Solaris 10 gsander Solaris 5 08-06-2009 12:36 PM
when FTP user will go to specific directory thepurple Solaris 5 12-22-2008 09:15 AM
Restrict FTP access to a single directory for only one user. santhoshkumar_d UNIX for Advanced & Expert Users 8 05-23-2008 08:08 AM



All times are GMT -4. The time now is 08:10 AM.