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.
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.
|
|
06-02-2004, 08:16 AM
|
#1
|
Member
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136
Rep:
|
security> adding user or root to a group
Hello,
Is it safe to add root to a group other than its default root group?
Or to change its default group to another one?
Or to add a user to the root group?
Mozilla Firefox has exec permission for root and its group, so I thought if root and user 1 shared the same group user1 could run the app, but this may not be safe.
Thanks for your help
|
|
|
07-01-2004, 02:26 PM
|
#2
|
Member
Registered: Apr 2004
Location: Delhi, India
Distribution: Red Hat , WhiteBox
Posts: 31
Rep:
|
Is it safe to add root to a group other than its default root group?
~~no
Or to change its default group to another one?
~~no
Or to add a user to the root group?
~~yes
Mozilla Firefox has exec permission for root and its group, so I thought if root and user 1 shared the same group user1 could run the app, but this may not be safe.
~~u can change of permission of it so that other can run it
Regards,
Peeyush Maurya
|
|
|
07-02-2004, 04:14 AM
|
#3
|
Member
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136
Original Poster
Rep:
|
Many thanks, Peeyush Maurya, for your answer!
In fact you can set root as owner and root as group and still use Firefox.
Firefox permissions are rather slack -- they are set to other: r-x.
I'll have to see what restrictions can be made.
Regards,
|
|
|
07-02-2004, 05:06 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Please keep in mind that a user who is added to the root group will be granted rights to most parts of the file system.
It is not advised to add a user to the root group.
root on the other hand does not have to be added to a group to be able to execute a file.
You may change the group (chgrp) of the firefox directory to something like users or create a new group, say, firefox and add the users who would like to use firefox.
A more safe method is to
#chmod -R o+rx /path/to/firefox
That is, grant read and execute rights to everyone.
Last edited by ppuru; 07-02-2004 at 05:08 AM.
|
|
|
07-04-2004, 07:29 AM
|
#5
|
Member
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136
Original Poster
Rep:
|
Thanks ppuru for your answer.
Firefox is set to o= r+x which doesn't look to me to be safe at all, but may be necessary.
I rather like the idea of adding a specific user for webbroswing.
Cheers,
|
|
|
07-04-2004, 10:34 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Quote:
A more safe method is to
#chmod -R o+rx /path/to/firefox
That is, grant read and execute rights to everyone.
|
hmmm ... what was I thinking while I typed that ... read safe=easier/quicker
|
|
|
08-08-2008, 05:10 AM
|
#7
|
Member
Registered: Mar 2008
Posts: 63
Rep:
|
Quote:
Originally Posted by ppuru
Please keep in mind that a user who is added to the root group will be granted rights to most parts of the file system.
It is not advised to add a user to the root group.
.
|
Can i add a user to the root group and make sure that he does not have access to a particular file.
what about the capabilities of user in the root group. How does it differ from root.
|
|
|
All times are GMT -5. The time now is 12:38 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
|
|