| Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
| 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-29-2009, 09:47 AM
|
#1
|
|
Member
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158
Rep:
|
how to fix this > guest session allow opening my drives ?
I use guest session to let others use my computer without opening my personal data on my drives, it was working okay on ubuntu 9.04 till one day when I open the guest session I see my drives mounted on the desktop and allowed to be opened , I tried to make unprivileged user the same problem accure
Is there a way to make the guest session works like before ?
|
|
|
|
07-30-2009, 07:49 AM
|
#2
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Does Ubuntu use PolicyKit? If so look at "polkit-auth --user guest". There are a couple policies about mounting drives. One for fixed partitions, and the other for removable media. There is also a gnome tool for managing policies: polkit-gnome-authorization
Also what are the permissions of your home directory. Look at "ls -ld /home/*". What is your default group?
What are the permissions of "other". If you have a partition with your personal data that isn't in /home, you could mount it inside your home directory. Remember that even if the mount point isn't visiable on the desktop, they can still enter it and read files if the permissions allow it.
|
|
|
|
08-05-2009, 12:14 AM
|
#3
|
|
Member
Registered: Aug 2008
Location: Alexandria, Egypt
Distribution: Ubuntu 10.10
Posts: 158
Original Poster
Rep:
|
I didnt know how to use what you said :S, thanks for trying to help me
any other suggestions
|
|
|
|
08-05-2009, 05:58 PM
|
#4
|
|
Senior Member
Registered: Mar 2006
Posts: 1,896
Rep:
|
I am not clear what drives you are talking about that the guest can see. If you are concerned about the guest seeing the files in your home directory, you can change permissions on your home directory to prevent that. The guest may still see icons on his desktop, but he won't be able to access your home directory. This would be a good idea anyway, because as jschiwal pointed out, the guest doesn't need icons to be able to access your home directory if permissions allow it (unless the guest account is in a chroot jail).
You can restrict permissions on your home directory from the command line with:
To do it with a GUI, open up your file manager, click the up arrow in the tool bar and right click the folder for your account. Select properties and go to the tab that says permissions. Under "folder access" for both "group" and "other" select "none".
Either of these methods will prevent the guest from accessing your home directory regardless of absence/presence of icons. I can't help you with the other things jschiwal talked about since I don't have a current enough installation of Ubuntu. But you can probably find out what he meant by doing an Internet search on the terms he used.
|
|
|
|
08-05-2009, 07:13 PM
|
#5
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Could you indicate which drives. What filesystem did you use when you formatted their partitions, and where they are mounted? Are they external or internal drives? If they don't contain system directories, you can: mount them inside your home directory so they can't reach the mount points, and change the ownership & permissions so you have exclusive access.
It they are external drives, using the UUID or LABEL of the filesystem instead of the device with user option, you can restrict access to them. For FAT32 & NTFS filesystem, also use the "uid", "gid" and "user" mount options. Then "your" system will always mount them with the same ownership & permissions, giving you exclusive access on your system.
|
|
|
|
| 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 05:46 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
|
|