The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudo, or not sudo: that is the question iBot UNIX and Linux RSS News 1 02-07-2008 01:40 PM
sudo and ssh jOOc UNIX for Advanced & Expert Users 3 11-12-2007 04:48 PM
Help with Sudo geomonap UNIX for Advanced & Expert Users 1 03-29-2006 04:50 PM
How to use SUDO syedifti UNIX for Dummies Questions & Answers 1 10-29-2001 01:40 AM
Sudo reddyb UNIX for Dummies Questions & Answers 1 08-23-2001 05:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-27-2008
rainbow_bean rainbow_bean is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 82
Sudo error

I want give a user "sar" permission, so I modify the sudoers file: unix1 is the group for users can use sar command

Cmnd_Alias RUN_SAR = /usr/sbin/sar

User_Alias UNIX1_USERS = %unix1

UNIX1_USERS ALL = NOPASSWD:RUN_SAR

However, when I run sar command, it shows:

$ sar 1 4
sar: The file access permissions do not allow the specified action.
  #2 (permalink)  
Old 02-28-2008
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
  
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Quote:
Originally Posted by rainbow_bean View Post
I want give a user "sar" permission, so I modify the sudoers file: unix1 is the group for users can use sar command

Cmnd_Alias RUN_SAR = /usr/sbin/sar

User_Alias UNIX1_USERS = %unix1

UNIX1_USERS ALL = NOPASSWD:RUN_SAR

However, when I run sar command, it shows:

$ sar 1 4
sar: The file access permissions do not allow the specified action.

Code:
sudo /usr/sbin/sar 1 4

Though, perhaps the use of parameters might still produce errors... Check your sudo manpages for more info...
Regards.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0