Posts: 1,050
Thanks: 4
Thanked 37 Times in 35 Posts
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.
Posts: 369
Thanks: 22
Thanked 39 Times in 34 Posts
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.
Posts: 1,050
Thanks: 4
Thanked 37 Times in 35 Posts
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?
Recent comments
9 hours 6 min ago
10 hours 6 min ago
13 hours 53 min ago
15 hours 7 min ago
18 hours 43 min ago
1 day 1 hour ago
1 day 10 hours ago
1 day 12 hours ago
2 days 3 hours ago
2 days 5 hours ago