Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-11-2008, 01:23 AM   #1
LQ Newbie
Registered: May 2008
Posts: 20

Rep: Reputation: 0
providing the root access to normal user

hi guys!!

i have one requirement like, providing the root access to the normal users.

i have tried with su, but it is creating another shell, which is not usefull for me.

through a script i have to provide the root access to the users that are executing it.

i have some script with following statement:
/usr/sbin//usermod -s /bin/bash root

will the above one modifies the normal user to root with root access

please let us know
Old 06-11-2008, 01:30 AM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
What you want is sudo. When setup correctly, sudo can let normal users run programs as if they are the root user.

Checkout the Sudo Manual for more information.
Old 06-11-2008, 01:37 AM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Originally Posted by raghuvamsi View Post
i have some script with following statement:
/usr/sbin//usermod -s /bin/bash root

will the above one modifies the normal user to root with root access
All it does is to change root's shell to /bin/bash.
Old 06-11-2008, 01:38 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Linux doesn't honor suid scripts because they are not secure. Which commands do you want run as root? Commands like mounting cdrom or shutdown, etc. can be added to /etc/sudoers. You edit /etc/sudoers with the visudo program.

You should only run commands as root that need root access. Don't mess with usermod.

Another approach is to use PolicyKit.

Last edited by jschiwal; 06-11-2008 at 01:40 AM.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't su into root as normal user darin3200 Linux - General 13 03-18-2010 12:03 PM
enable a command that requires root access for a normal user marsguy Linux - General 2 10-08-2006 10:43 AM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 10:00 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-08-2004 12:11 AM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 03:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:00 PM.

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