LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-22-2007, 06:01 PM   #1
louisb
Member
 
Registered: Aug 2003
Posts: 132

Rep: Reputation: 15
Giving a user root permission via the root group


I've just install Red Hat Linux 5 and now I want to give myself root permissions with them having to sign-on as root. I've placed my userid in the root group. However, when ever I try to perform a command that requires root permission I'm told that only root can perform this command.

I have a second question regarding mount of a network share? I want to mount network drives at the time of user sign-on. I've placed the mount command in the ".bash_profile" and I still get the message that only root can perform a mount.

How do resovle the two problems above?



Thanks
 
Old 07-22-2007, 06:12 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You should really search the web for information on why Unix permissions are as they are and how what you're trying to do essentially undercuts them in a very bad way. As far as the 'root' group, you're still not UID root, so are getting these messages. A more proper way to do it would be to selectively give yourself permissions like 'disk' or what have you.

Incidentally, why such an old release? You should upgrade for both security and comfort.
 
Old 07-22-2007, 07:04 PM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Even making yourself a member of the disk group isn't a good idea. I will give you full access to devices such as /dev/hda. There is a wheel group that you can make yourself a member of and then use "visudo" to allow wheel group members to use sudo.
 
Old 07-22-2007, 08:18 PM   #4
louisb
Member
 
Registered: Aug 2003
Posts: 132

Original Poster
Rep: Reputation: 15
My approach here is to apply group level security in the same way things are on the Mainframe and in a Windows environment. However, I understand your point perfectly.

My other question is about mounting network shares when a user signs-on. As I said eariler I've placed the mount in the ".bash_profile" and when I sign-on the get the permission denied for the mount. Surely I can assign network drive by users to be mounted.


Thanks
 
Old 07-22-2007, 08:32 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
May need to put it in /etc/fstab and give it the 'user' option.
 
Old 07-22-2007, 09:06 PM   #6
louisb
Member
 
Registered: Aug 2003
Posts: 132

Original Poster
Rep: Reputation: 15
I admit that I'm new to the Linux environment. By putting the mount in "fstab" however, then do I make the mount available to other users who sign-on using there own userid's and passwords?


Thanks
 
Old 07-23-2007, 12:56 AM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There is also a pam_mount module you might want to look at.

With an /etc/fstab entry;
If the permissions of the filesystem are exclusive for that user, then even if another use can mount it, they can't use it at all. If all of the users are on the same network device, you could have the /home directory mounted on the network device at boot time, containing user directories.

Also, look at "man autofs" and "man 5 auto.master" documentation.

Last edited by jschiwal; 07-24-2007 at 01:50 AM.
 
  


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
group creation + adding users without root permission rblampain Programming 5 05-12-2006 07:55 PM
Giving root privileges to another user BlackJackal Mandriva 5 10-19-2005 01:03 PM
Giving a user root privliges JonyKyte Linux - Newbie 17 03-07-2004 09:43 PM
Giving a User Root Privileges lawrencegoodman Linux - Newbie 4 12-23-2003 04:41 PM
Giving a user all root permissions ranixlb Linux - Security 9 05-15-2002 12:50 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration