Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-04-2007, 08:07 AM
|
#1
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Rep:
|
first /home/user directory: permissions bug!
I noticed by trying to add a second user "user2" in ubuntu 6.06 that the permissions of my first user "user1" where drwxr-xr-x which means that by Default Ubuntu lets any other added user have access to my user1 directory!!!
I was giving VNC access to user2 and fortunately noticed that he could actually sneak in my user1 home directory!!!!
what do you think????
|
|
|
03-04-2007, 08:26 AM
|
#2
|
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Fedora40
Posts: 6,153
|
If you want to keep people out of your home directory, then change its permissions:
chmod 700 /home/user1
|
|
|
04-17-2007, 04:50 PM
|
#3
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Original Poster
Rep:
|
Quote:
Originally Posted by tredegar
If you want to keep people out of your home directory, then change its permissions:
chmod 700 /home/user1
|
yes I know that... but the point indeed is that ubuntu 6.06 has a little glitch here.. Still have to check 6.10!!
will someone check it for me?
|
|
|
04-17-2007, 05:32 PM
|
#4
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
This is the default behaviour on many Linux distros. You can change this behaviour by adjusting the umask value in /etc/profile (this will only affect new users). For existing users, use chmod as mentioned above.
|
|
|
04-18-2007, 07:29 PM
|
#5
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
Quote:
Originally Posted by rinonapo
yes I know that... but the point indeed is that ubuntu 6.06 has a little glitch here..
|
One man's bug is another man's feature. For a home network, I want other users to have read access to my home directory. If that's not appropriate for your purposes, you're free to change it, but that doesn't make it a bug.
|
|
|
04-18-2007, 07:40 PM
|
#6
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
On other distro's, a group is created for each user by the same name and that is used for the default group. I am currently using SuSE and it uses the users group instead. You could manually create a group for each user and make that a users default group if you wished.
Last edited by jschiwal; 04-18-2007 at 09:13 PM.
|
|
|
04-19-2007, 11:28 AM
|
#7
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Original Poster
Rep:
|
Quote:
Originally Posted by AdaHacker
One man's bug is another man's feature. For a home network, I want other users to have read access to my home directory. If that's not appropriate for your purposes, you're free to change it, but that doesn't make it a bug.
|
That sound a little "Windows-like" attitude... by default a computer should permit the least possible.. if you wanted a feature which could be a risk for a generical unknowing user *You* should manually edit permissions!!!
In that way I consider it a bug...
|
|
|
04-19-2007, 04:33 PM
|
#8
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
Quote:
Originally Posted by rinonapo
if you wanted a feature which could be a risk for a generical unknowing user *You* should manually edit permissions!!!
|
Exactly what risk are you referring to? There's nothing inherently insecure about letting other users read your home diectory. Did you have some particular scenario in mind?
|
|
|
04-19-2007, 04:38 PM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
My take on this. Its not a bug and it does not need fixing because you can use umask to change permissions on home directories. If you want a distro that has private groups (meaning that other users can't browse your files) right out of the box, then use the likes of Redhat, Fedora, Mandriva etc. If you like Ubuntu, then just change your umask value before adding other users to the system and change the perms for the admin users home directory.
|
|
|
04-20-2007, 03:06 PM
|
#10
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Original Poster
Rep:
|
Quote:
Originally Posted by AdaHacker
Exactly what risk are you referring to? There's nothing inherently insecure about letting other users read your home diectory. Did you have some particular scenario in mind?
|
When I think of a folder for each user I implicitly think it is my folder only not everyones... If I put valuable data in it I should know any user on the computer can read/modify it..
I discovered the risk by giving vnc access to a special limited account to internet users and discovering these users could tamper the whole /home/ directory!!
|
|
|
04-20-2007, 05:02 PM
|
#11
|
Member
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384
Rep:
|
Quote:
Originally Posted by rinonapo
these users could tamper the whole /home/ directory!!
|
In what way does read-only access allow tampering? I don't know how you can tamper with something if you can't change it.
Your interpretation of user home directories is not unreasonable, it's just not the interpretation the Ubuntu devs take. For a home desktop where only trusted users can log in, private home directories can be more of a nuisance than a benefit. This goes especially for non-technical users who may not understand how file permissions work and just want to look at that photo little Johnny downloaded yesterday. Since Ubuntu is supposed to be "Linux for human beings," the devs probably figured cattering to that group was the most user-friendly choice. It's not an error, just a difference in priorities.
|
|
|
04-21-2007, 12:37 AM
|
#12
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
For a home environment, it would make it easier for users to share files. If you are running a multiuser server, you already know about changing group ownership and the like because that is how you would set up groups for the sake of sharing files. One way isn't right, it's just two ways of doing things. You can easily change it if you want.
|
|
|
All times are GMT -5. The time now is 03:00 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
|
|