LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2005, 04:51 AM   #1
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
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 ?
 
Old 07-13-2005, 03:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.
 
Old 07-14-2005, 02:28 PM   #3
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Original Poster
Rep: Reputation: 30
I know about user rights, but I want to limit a user connecting through scp, to access only his home directory like in proftpd
 
Old 07-14-2005, 05:06 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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.
 
Old 07-14-2005, 05:36 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
limit user access Pacux Slackware 10 10-17-2005 07:52 AM
How do I limit Internet access? jmelgin Linux - Newbie 12 07-06-2005 05:07 PM
Pass SCP User passward in shell program michaelyu33 Programming 3 03-18-2005 01:15 PM
limit access flex411 Linux - Security 12 03-09-2004 07:32 AM
SSH and SCP user logins sopiaz57 Linux - Security 11 01-27-2004 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration