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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-23-2009, 08:18 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Rep:
|
Hide File Systems From User
I was wondering if it was possible to hide the File Systems from a user. So when then browse through folders or choose to save something the default folder is their "home" folder. I am using SAM Linux distribution and don't want my users to be able to screw anything up! I use thunar as my file manager and was just wondering if it is possible?
-Any help would be appreciated, Andrew
|
|
|
|
07-23-2009, 09:18 AM
|
#2
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Most (all?) system directories are already set so ordinary users cannot write to them.
Users home directories can be set to permissions of 700 (the default is sometimes 755, depends on distro), which means that only the owners of those directories can read from them or write to them.
Understanding Linux file permissions
Welcome to LQ!
|
|
|
|
07-23-2009, 12:00 PM
|
#3
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Original Poster
Rep:
|
I was hoping that the user could only see and use their users folder so instead of having access to filesystems/home/"user" they would just have access to "user" and would not be able to edit or even view any of the filesystem folders such as bin, boot, dev etc.. Is it possible to do this with permissions? I was under the impression that permissions only worked for individual folders and subfolders not the whole file system.
also, if i make my users have no rights for their tmp folder will this mess everything up because the os won't have permission to store date in it?
Thanks for everything, Andrew
|
|
|
|
07-23-2009, 12:29 PM
|
#4
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
You can do so with a 'chroot jail'. I suggest you to search for those terms and come back if you need some extra help 
|
|
|
|
07-23-2009, 02:33 PM
|
#5
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Original Poster
Rep:
|
chroot jail looks good!
I think chroot jail is what I want, Iv looked into it and it is promising (and intense!!).
However after reading up on it, don't you have to copy some of the directories such as bin and you shared directory (which was what I was trying to hide initially)? for example if I used chroot and made the root directory "user" and didn't copy over any of the other directories would i be able to use my applications still?
|
|
|
|
07-27-2009, 10:21 AM
|
#6
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Original Poster
Rep:
|
Can anybody help shed some light on this?
|
|
|
|
07-27-2009, 10:27 AM
|
#7
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
When you are into a chroot nothing outside of it is accessible, that's the whole point of chrooting, and there's no way to run something if you can't first read it from the disk. So I doubt that you have many alternatives.
|
|
|
|
07-27-2009, 10:34 AM
|
#8
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Original Poster
Rep:
|
hmm looks like I'll have to try it out then. Thanks for the reply!
|
|
|
|
07-27-2009, 02:52 PM
|
#9
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
Quote:
Originally Posted by i92guboj
there's no way to run something if you can't first read it from the disk.
|
Just to re-iterate that those chrooted users
won't be doing much.
|
|
|
|
07-27-2009, 06:29 PM
|
#10
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 10,358
|
Hi,
Quote:
Originally Posted by fuzzyfroboy
I was wondering if it was possible to hide the File Systems from a user. So when then browse through folders or choose to save something the default folder is their "home" folder. I am using SAM Linux distribution and don't want my users to be able to screw anything up! I use thunar as my file manager and was just wondering if it is possible?
-Any help would be appreciated, Andrew
|
Permissions Permissions Permissions
You can look but don't touch. If permissions are setup then the browsing is going to do nothing. Your system should be setup so as the user has his '~'. Outside of that unless you provide permissions or passwords to access su rights then what do you expect that user to do? A user if they are allowed to browse (read) but no write then what will happen? Nothing!
If you setup global access then that's your fault. If the user breaks something in their environment then that will be recoverable. Just remember, no rights then no writes. 
|
|
|
|
08-04-2009, 10:57 AM
|
#11
|
|
LQ Newbie
Registered: Jul 2009
Posts: 11
Original Poster
Rep:
|
stupid question but what do you mean by their "~"? I think I will have to settle with changing permissions (I just didn't want them to be able to see the directories because its for old people and i don't want them getting confused)
Thanks!
|
|
|
|
08-04-2009, 11:15 AM
|
#12
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
"~" means "home directory", it's equivalent to "$HOME", usually somewhere under /home/
|
|
|
|
08-04-2009, 11:47 AM
|
#13
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 10,358
|
Hi,
Quote:
Originally Posted by fuzzyfroboy
stupid question but what do you mean by their "~"? I think I will have to settle with changing permissions (I just didn't want them to be able to see the directories because its for old people and i don't want them getting confused)
Thanks!
|
As shown ~ means home, so ~/fuzzyfroboy would be your home directory for your use.
I can see your need but as I said it before 'rights to write' then you could 'rights to read'. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:20 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|