LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Limit the access to user connectiing through SCP (https://www.linuxquestions.org/questions/linux-newbie-8/limit-the-access-to-user-connectiing-through-scp-342724/)

Menestrel 07-13-2005 03:51 AM

Limit the access to user connectiing through SCP
 
I have the openssh daemon running on my box, and users can connect to it through ssh or scp. I want to allow certain users connecting through SCP to access only certain directories on my box. How can I do this ?

Tinkster 07-13-2005 02:39 PM

More specific?

Generally a user will have the same pemrissions on
your machine that he would have if he logged in on
a local console. If you have problems with Unix file/
directory permissions read a bit ...

http://www.linuxquestions.org/questi...ticle&artid=20
is a good starting point.

Menestrel 07-14-2005 01:28 PM

I know about user rights, but I want to limit a user connecting through scp, to access only his home directory like in proftpd

trickykid 07-14-2005 04:06 PM

Quote:

Originally posted by Menestrel
I know about user rights, but I want to limit a user connecting through scp, to access only his home directory like in proftpd
If they have ssh and or shell accounts to this machine, if you chroot them to their home directory, it goes for all means of them logging in. Treat scp as ssh, but just transferring those files. If you really want to limit users, setup ftp or the like so they don't have shell access, you can limit where they have access to uploading files to, etc.

Matir 07-14-2005 04:36 PM

As far as I know, an scp connection and an ssh connection are basically the same thing to the remote machine. You cannot set different permissions. You could (as mentioned above) set up ssh with a chroot.


All times are GMT -5. The time now is 10:23 AM.