Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th May 2007, 21:25
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 54 Times in 50 Posts
Default SSH restrict to 1 directory

Hello

I wonder how I can restrict a user to 1 specific directory. I want to give a friend of mine ready-access to one of my directories but I don't want him to upload anything and I don't want him to sniff on the server...

Oh, he's a windows user and using WinSCP for access.

How can this be done? Anyone knows?
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2007, 21:33
Leszek Leszek is offline
Senior Member
 
Join Date: Nov 2006
Location: Poland,Włocławek
Posts: 369
Thanks: 22
Thanked 42 Times in 35 Posts
Send a message via Skype™ to Leszek
Default

Changing that user's home directory to the one You want to give access to should work plus setting apropriate permissions on that directory and chrootSSH.
He needs to have /bin/bash shell set.

Last edited by Leszek; 18th May 2007 at 21:36.
Reply With Quote
  #3  
Old 19th May 2007, 09:15
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 54 Times in 50 Posts
Default

well, I did now install chrooted ssh and it seems to work. However no files can be downloaded although group and world permissions are readable... do they also need to be exec?
Reply With Quote
  #4  
Old 19th May 2007, 10:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

Hi Sjau,

Maybe this thread helps you as well:
http://www.howtoforge.com/forums/sho...root+ispconfig
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
directories in /home/admispconfig/ispconfig renamed? Spudchat General 10 12th April 2007 19:37
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Help dnectom Installation/Configuration 5 15th June 2006 14:05
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 15:35
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02


All times are GMT +2. The time now is 04:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.