LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2004, 05:46 PM   #1
davidrios
LQ Newbie
 
Registered: Mar 2004
Location: grenoble, france
Posts: 12

Rep: Reputation: 0
Question how can i restrick user to login with ssh?


hi, i have ssh server installed, and i want to be able to give people access to connect to my computer via ssh. How can i restrict the users i want, so they can not access to all the directories in my computer. I just want them to be able of seen 1 directory.(download files or upload them)

THANKS
 
Old 04-27-2004, 05:59 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Put them to other group where you are (users by default on many distributions), eg. create group 'restricted'. And remove r and x access to other users home directories.

If you want to be paranoid about it, you can alternatively run ssh daemon for them in a chroot jail (or change their login shell to chrooting alternative containg just the one directory for them and sftp with libraries needed by it.)

Last edited by ToniT; 04-27-2004 at 06:01 PM.
 
  


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
ssh login with normal user, receive: /dev/null: Permission denied mark78301 Red Hat 3 11-12-2005 09:20 AM
Add a new SSH login/user Temujin_12 Linux - Networking 2 12-31-2004 10:35 PM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
HELP me on SSH User login manya Linux - Security 1 05-03-2004 03:56 PM
SSH login problem - cannot choose user atom Linux - Networking 2 02-29-2004 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration