LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-04-2009, 09:20 PM   #1
bigshots
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Rep: Reputation: 0
Logging in as user with SU priviledge


I am new in using Red Hat Linux and want to add three of us with our own userid and password instead of a generic userid when logging into the root. This is for auditing so we can trace any mishaps.

Currently, we log in to the root with the same userid and a root password then we enter su - (without userid) and enter another password again. I just thought this is redundant process.

Is there a way to log in with just one userid and password with admin priviledge for maintenance such as server reboots and elimate su - without compromising the security.
Also I want to create a group and add these userids for priviledges just like in Windows.

Thanks for your help.

Last edited by bigshots; 03-04-2009 at 09:21 PM.
 
Old 03-04-2009, 10:04 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Assuming I understand your question, you might want to look into sudo. It allows you to dole out specific administrative duties, and it will likely meet your auditing requirements. (Every sudo invocation is logged to /var/log/secure.)
 
Old 03-04-2009, 10:07 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If you log in as user and then su -(su space dash) into being root, everything will be logged in the form user as root. So if you avoid logging in as root, it will be trackable to individual users.
 
Old 03-05-2009, 08:18 AM   #4
bigshots
LQ Newbie
 
Registered: Mar 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your replies.
I added my userid to the root and I still need to use our existing su - in order to read, write and execute files. If I don't use the su - I am not able to r/w/x files.

Although adding the userid and entering the command "who" now shows the list of userids and date/time logins which answer part of my question. I will check on how to use the sudo for specific duties. Thanks
 
Old 03-05-2009, 12:48 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Looking at /var/log/secure I get the following:

Mar 5 12:42:02 localhost userhelper[30850]: running '/usr/sbin/gnome-system-log' with root privileges on behalf of 'fred'

Mar 5 12:44:58 localhost su: pam_unix(su-l:session): session opened for user root by fred(uid=500)


Which is what I was trying to explain in post #3. It tells you when and who was using root privileges.
 
  


Reply



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
give same priviledge to another user like root scream Linux - Newbie 17 02-22-2009 04:40 PM
Priviledge problem for Firefox Freestone Fedora 3 09-07-2006 10:54 PM
User priviledge???? Iptables_NEWBIE Linux - Newbie 3 09-09-2005 04:27 AM
Disk priviledge woes! galliar SUSE / openSUSE 6 04-09-2005 05:29 PM
My processes with root priviledge SiLiCoN Linux - General 2 10-04-2004 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:12 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