LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-11-2008, 12:23 AM   #1
raghuvamsi
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, 12:30 AM   #2
jtshaw
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, 12:37 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
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, 12:38 AM   #4
jschiwal
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 12:40 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 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 11:03 AM
enable a command that requires root access for a normal user marsguy Linux - General 2 10-08-2006 09:43 AM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration