The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 10:28 AM
restrict a user to certain command vikas027 SUN Solaris 1 03-07-2008 09:52 AM
How to restrict user to sftp usage? eliraza6 UNIX for Advanced & Expert Users 13 02-06-2008 01:08 AM
Restrict users to ther home directory alfabetman UNIX for Dummies Questions & Answers 1 10-04-2001 02:31 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-24-2007
lidram lidram is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 4
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
  #2 (permalink)  
Old 12-24-2007
porter porter is offline Forum Advisor  
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.
  #3 (permalink)  
Old 12-24-2007
prowla prowla is offline
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.
  #4 (permalink)  
Old 12-24-2007
lidram lidram is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 4
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 11:49 PM..
  #5 (permalink)  
Old 01-03-2008
lidram lidram is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 4
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
  #6 (permalink)  
Old 02-06-2008
pradeeprajput_k pradeeprajput_k is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 7
SFTP Setup

Hi ,

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

Regards

Pradeep Rajput
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0