LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-21-2003, 12:02 AM   #1
pyfsapple
LQ Newbie
 
Registered: Jan 2003
Location: H.K.
Posts: 20

Rep: Reputation: 0
login folder


Hi all

What should I do if I want to allow user to login (via ssh) but can only stay in his/her own folder?

Thanks
pyfsapple
 
Old 10-21-2003, 04:05 AM   #2
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 774

Rep: Reputation: 242Reputation: 242Reputation: 242
What's a "login folder?"
 
Old 10-21-2003, 04:50 AM   #3
pyfsapple
LQ Newbie
 
Registered: Jan 2003
Location: H.K.
Posts: 20

Original Poster
Rep: Reputation: 0
jayjwa

I meant "the default folder for each user", or say, home directory that stated in /etc/passwd

pyfsapple
 
Old 10-21-2003, 06:53 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
I would suppose that you'd need to create a username and password for the users on the target device - and only allow them normal user rights.
 
Old 10-21-2003, 08:59 AM   #5
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
As I understand it, you could set up rights so a user would be restricted to /home/user, but their permissions would be the same no matter where they logged in from.
 
Old 10-21-2003, 10:46 PM   #6
pyfsapple
LQ Newbie
 
Registered: Jan 2003
Location: H.K.
Posts: 20

Original Poster
Rep: Reputation: 0
Hi all

The problem is, any logged in user can use sth. like "cd /" to go to other directory ... AND as it is a web server, so people should have rx permission.

Thanks
pyfsapple
 
Old 10-21-2003, 11:15 PM   #7
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
I just tried this. It's a real kludge, but it works. Create a group for minimum priveleged users (lusers? abusers?). Then remove 'other' permissions from every folder you want them kept out of. Awkward and stupid, but it's the best I can come up with. Why not just bar them from the server altogether if you can't trust them?
 
  


Reply



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
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Cant add folder into my shared folder? amer_58 Linux - Newbie 2 04-03-2005 11:35 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:04 PM.

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