The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Restrict user access to their home dir rdns UNIX for Dummies Questions & Answers 10 05-26-2008 07:28 AM
restrict a user to certain command vikas027 SUN Solaris 1 03-07-2008 05:52 AM
How to restrict user to sftp usage? eliraza6 UNIX for Advanced & Expert Users 13 02-05-2008 09:08 PM
Restrict users to ther home directory alfabetman UNIX for Dummies Questions & Answers 1 10-04-2001 11:31 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-24-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
need to restrict user to his home dir

Hello,

i need to create a user who's access is restricted only to his home directory and below,

i restricted his pty access by adding 'no-pty' to the options of the ssh key in authorized_keys file. However, sftp access still allows this user access to all my file system

thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-24-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Then look at the groups he belongs to and determine what permissions each of your directories should have.
Reply With Quote
  #3 (permalink)  
Old 12-24-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
You could look at using chroot to restrict the permissions.
Basically it makes that shell think its "/" is its home, and so it cannot move to a directory above.
If you google for chroot ftpd, you should find an example of the general process.
Reply With Quote
  #4 (permalink)  
Old 12-24-2007
Registered User
 

Join Date: Dec 2007
Posts: 3
my user belongs to nogroup

googled my way through...

scponly looks like it could work, but setuiding the original binaries makes me uneasy (maybe because i don't know enough about what could happen). Main Page - Scponly wiki

rssh has been used widely but isn't updated often. rssh - restricted shell for scp/sftp

Or else i can create a shell to use the sftp binary and support chroot: HOWTO: chroot SFTP (only)

so, 1) with S10 do i really need to build my own sftp/ scponly shell?
2) if i do need to create my own solution, which of the above 3 do you suggest?

thanks

Last edited by lidram; 12-24-2007 at 07:49 PM.
Reply With Quote
  #5 (permalink)  
Old 01-03-2008
Registered User
 

Join Date: Dec 2007
Posts: 3
i used the chroot sftp. very easy to setup and works as it should. I edited /etc/ssh/sshd_config to use the newly created sftp binary rather than the default Solaris one.

I do recommend to use ssh options such as no-pty to restrict user's ssh access, rather than the ones suggested by the page
Reply With Quote
  #6 (permalink)  
Old 02-06-2008
Registered User
 

Join Date: Sep 2005
Posts: 7
SFTP Setup

Hi ,

Can you please tell me how do you setup sftp..

Regards

Pradeep Rajput
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0