The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Executing script with root privilages from a user login checkpro SCO 1 03-11-2008 02:03 PM
Can't login root account due to can't find root shell neikel AIX 2 01-30-2008 07:07 PM
how to access root priveliges if root password is lost wojtyla Linux 1 02-18-2005 02:24 AM
How can l create a user that as all the Attribute & Privilages of root kayode Linux 6 02-16-2005 02:24 AM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-02-2004 08:39 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 102
Root privilages

I maintain the root password so the other sysadmins cannot have it due to security. They have a script that is used to shutdown and reboot multiple clients. but it needs to be run as root. they mentioned sticky bit and another type of setting called RBAC. I want them to be able to run this script but not have root nor give them any type of access with root if i do this.

Last edited by deaconf19; 11-13-2007 at 08:05 PM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-13-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 102
chown root script.sh
chmod u+s script.sh

would this work or is it creating a big security hole?
Reply With Quote
  #3 (permalink)  
Old 11-13-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,314
Whether or not that would work depends on the os. And if it works, it is not best practice from a security standpoint. A better solution is to use sudo. There are many sudo threads on this site. Use our search feature and read some of them.
Reply With Quote
  #4 (permalink)  
Old 11-13-2007
Registered User
 

Join Date: Sep 2007
Location: EX-PAT in Taipei, Taiwan
Posts: 102
yes i just talked to our Solaris expert he pointed me towards sudo or RBAC. i am trying RBAC right now. thanks
Reply With Quote
  #5 (permalink)  
Old 11-13-2007
Read Only
 

Join Date: Nov 2007
Posts: 165
The advantage of sudo is that is is available cross-platform, whereas Sun's RBAC is specific to Solaris 10.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0