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, 22:25
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 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, 22: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 22:36.
Reply With Quote
  #3  
Old 19th May 2007, 10:15
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 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, 11:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
 
Default

Hi Sjau,

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

MrHostman | Managed Hosting
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 20:37
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Help dnectom Installation/Configuration 5 15th June 2006 15:05
Mysterious Install Problem tgansert Installation/Configuration 5 9th May 2006 16:35
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 18:02


All times are GMT +2. The time now is 17:28.


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