LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-25-2004, 07:19 PM   #1
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Rep: Reputation: 30
Add guest user


I would like to add a guest user , however, I would like the guest be able to read his home directory only ! What shall I do ?

I am running RedHat9.0 GNOME !
 
Old 06-25-2004, 07:25 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
i don't think this can be done, for you must be able to read /usr/bin, /usr/lib etc to be able to run anything for that user (a desktop manager for starters!). the only way is to create, perhaps an entire system in a hidden folder (eg. /home/user/.sys/)..... no that won't work either!
 
Old 06-25-2004, 08:49 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,973
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Well, one could put the user in a chroot-jail



Cheers,
Tink
 
Old 06-25-2004, 08:54 PM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
lol
 
Old 06-25-2004, 09:05 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,080

Rep: Reputation: 298Reputation: 298Reputation: 298
Check out the various options for restricted shells. Both bash and (I think) ksh have a way that they can work in restricted mode (don't allow a user to cd or run any command outside his $PATH). If you grep for rbash you'll find some good info, I think. I'm not sure if this will prevent the user from ls'ing other dirs though, so it may not be as secure as a chroot jail, but easier to set up.
 
Old 06-26-2004, 09:28 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
so you can "chroot /home/user" and have a working system still???? no, that's just too tricky surely.
 
  


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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 01:14 PM
Is there possible to hack- winxp w/ guest user only? Lancelot1914 Programming 2 07-14-2005 12:11 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 09:26 AM
wu-ftpd: guest user configuration deepika Linux - Networking 3 08-19-2003 10:29 PM


All times are GMT -5. The time now is 01:49 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