How to Limit ftp access parameters for specific users? | 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.

How to Limit ftp access parameters for specific users?

Solaris


Tags
ftp, ftp credentials, ftp permissions

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-21-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
Oracle How to Limit ftp access parameters for specific users?

Dear friends,


I create new user

Code:
useradd -g other -d /export/home/sltftp -m -s /bin/bash -c "SLT user account for TMA ftp backup" sltftp

now i need do restrict thees

Code:
chmod
delete
overwrite
rename

from this userfor all the files in the server ,sltftp user can only able to download the files)

please advice me how to do this..
Thanks
Daraka

Last edited by Scott; 07-17-2013 at 08:34 AM.. Reason: Code tags
Sponsored Links
    #2  
Old 06-21-2013
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 9 October 2014, 3:02 PM EDT
Location: East Coast
Posts: 611
Thanks: 1
Thanked 176 Times in 162 Posts
If you're using the default FTP Daemon included with Solaris, there are configuration files location here:


Code:
/etc/ftpd

ls -l | grep -v total
-rw-r--r--   1 root     sys         1518 Jan 21  2005 ftpaccess
-rw-r--r--   1 root     sys          946 Jan 21  2005 ftpconversions
-rw-r--r--   1 root     sys          104 Jan 21  2005 ftpgroups
-rw-r--r--   1 root     sys          108 Jan 21  2005 ftphosts
-rw-r--r--   1 root     sys          114 Jan 21  2005 ftpservers
-rw-r--r--   1 root     sys          198 Jan 21  2005 ftpusers

The Following User Says Thank You to in2nix4life For This Useful Post:
darakas (06-22-2013)
Sponsored Links
    #3  
Old 06-22-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
Oracle

Thanks buddy!
I tried by editing ftpaccess file like this,


Code:
guestuser sltftp

delete no anonymous,guest
chmod no anonymous,guest
rename no anonymous,guest
overweight no anonymous,guest

I refferd folowing thread for this:

Code:
unix.com/solaris/146507-how-restrict-user-specific-directory-solaris-10-a.html

But its not work for me,when i ftp to server with user sltftp i can delete,modify files.. :-(

Any ideas friends?

Thanks,
Daraka

Last edited by Scott; 07-17-2013 at 08:35 AM.. Reason: Code tags
The Following User Says Thank You to darakas For This Useful Post:
anline5104 (07-10-2013)
    #4  
Old 07-17-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
Add the users to /etc/ftpd/ftpusers file. It will deny the access. FYI.

Code:
 
more /etc/ftpd/ftpusers
# ident "@(#)ftpusers   1.5     04/02/20 SMI"
#
# List of users denied access to the FTP server, see ftpusers(4).


Last edited by Scott; 07-17-2013 at 08:35 AM.. Reason: Code tags
The Following User Says Thank You to SunSolars_admin For This Useful Post:
darakas (07-19-2013)
Sponsored Links
    #5  
Old 07-19-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
Oracle Solved the problem :-)

Finally i CREATE FTP ACCESS ONLY USER IN SOLARIS 10 WITH USER RESTRICTIONS(ACCESS RIGHTS)
Please refer my blog post :
solaris4servers.blogspot.com/2013/06/create-ftp-only-user-in-solaris-10-with.html

Thanks for your replies friends
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
samba read write access to owner and no access to other users sahil_shine Solaris 1 10-17-2012 03:52 PM
Does my provider limit my internet access or somesites access? jao_madn IP Networking 2 05-06-2011 07:22 AM
Restrict local users to access ftp Arun.Kakarla Red Hat 1 04-28-2010 07:41 PM
kernel giving access for multiple users to access files jimmyuk UNIX for Dummies Questions & Answers 1 03-11-2010 12:28 PM
Restrict access to specific users. nua7 UNIX for Advanced & Expert Users 6 08-27-2008 02:17 AM



All times are GMT -4. The time now is 12:23 PM.