LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   security> adding user or root to a group (https://www.linuxquestions.org/questions/linux-newbie-8/security-adding-user-or-root-to-a-group-188804/)

eeried 06-02-2004 08:16 AM

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 :)

Peeyush Maurya 07-01-2004 02:26 PM

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

eeried 07-02-2004 04:14 AM

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,

ppuru 07-02-2004 05:06 AM

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.

eeried 07-04-2004 07:29 AM

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,

ppuru 07-04-2004 10:34 PM

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

linuxdoniv 08-08-2008 05:10 AM

Quote:

Originally Posted by ppuru (Post 1023661)
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 07:41 PM.