LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-16-2004, 02:03 PM   #1
MClayton
LQ Newbie
 
Registered: May 2004
Posts: 8

Rep: Reputation: 0
Question Setting Up a Restricted User Account


I have just downloaded and installed WinSCP on my work laptop, and am using it to connect to my Linux box at home (I'm still a Linux newbie though). This is great, as I can copy files to and from home, especially useful for files that are too big to e-mail.
I would also like to let colleagues (who already have WinSCP - they recommended it to me) connect, but I'm a little concerned.
I created a special user account, which contains nothing but files I want to share, but when I connect I notice that I can actually navigate up and access other directories (not those of other users, or various system stuff, but more than I want to give access to).
Is there any way I can restrict this user account so it only has access to it's own /home/user directory?
I've put everything I can think of into Google, but not come back with anything I can understand. Various things mention chroot, but i've not managed to find any examples I can follow (sorry, I am a newbie!)
Can anyone help?
 
Old 10-18-2004, 10:28 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
what you describe is called "directory browsing"
since you created a special user account, also create a special user account group...........and give this group read permissions only to /home/user directory.........that way that group can't browse up and down the directory tree......
 
Old 10-19-2004, 11:31 AM   #3
MClayton
LQ Newbie
 
Registered: May 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks 320. I think what I'm after is some way of making my restricted account log in with 'bash --restricted' rather than 'bash'. I've tried editing my /etc/passwd file and changing '...:/home/user:/bin/bash' to '.../home/user:"/bin/bash --restricted"' but it's not quite working at the moment.
 
  


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
system account or user account??? yenonn Linux - Newbie 6 05-10-2006 07:49 PM
Invoking NT Domain user authentication for restricted web pages explorer Linux - Networking 1 10-08-2003 05:19 AM
How do I make ftp up- and downloads the only thing a restricted user can do? jgilels Linux - Security 3 08-15-2003 01:38 PM
having users setting up server on restricted ports GŠutama Linux - Networking 6 06-15-2003 01:20 PM
SSH user IP restricted access??? ifm Linux - Security 3 07-21-2002 11:01 AM


All times are GMT -5. The time now is 11:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration