LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-02-2004, 08:16 AM   #1
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Rep: Reputation: 15
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
 
Old 07-01-2004, 02:26 PM   #2
Peeyush Maurya
Member
 
Registered: Apr 2004
Location: Delhi, India
Distribution: Red Hat , WhiteBox
Posts: 31

Rep: Reputation: 15
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
 
Old 07-02-2004, 04:14 AM   #3
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Original Poster
Rep: Reputation: 15
Cool

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,
 
Old 07-02-2004, 05:06 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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.
 
Old 07-04-2004, 07:29 AM   #5
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Original Poster
Rep: Reputation: 15
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,
 
Old 07-04-2004, 10:34 PM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
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
 
Old 08-08-2008, 05:10 AM   #7
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by ppuru View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding user to group ryancoolest Linux - Newbie 9 04-14-2008 12:50 PM
after adding user to group peter72 Linux - General 2 08-01-2005 10:17 AM
adding user to a group Chilipepa Linux - Newbie 2 09-27-2003 11:08 AM
Adding user account to root group konabumm Linux - Newbie 1 07-31-2003 03:11 PM
Adding nobody to the root group saravanan1979 Linux - Networking 2 04-27-2002 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration