![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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 |