Sponsored Content
Full Discussion: Sudo command problem
Top Forums UNIX for Advanced & Expert Users Sudo command problem Post 302296883 by pludi on Thursday 12th of March 2009 05:33:49 AM
Old 03-12-2009
The admins probably created a NOPASSWD rule for that specific command (path and all) in the sudoers file. If you change it, that rule no longer catches, and so the password prompt is displayed.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

problem with sudo su and .sh script

here is my script: #!/bin/sh cd /Users/a echo "what is the name of the file u want?" read var1 var1=$var1... (1 Reply)
Discussion started by: cleansing_flame
1 Replies

2. Solaris

Sudo for a command

I am trying to set up sudo for a command, but do not want to specify the arguments that can be passed into it. I want the user who is using sudo to be able to pass in the arguments they want. I am fairly sure I know how to do this with RBAC in Solaris 10, but for reasons I will not get into I... (1 Reply)
Discussion started by: synchro
1 Replies

3. UNIX for Advanced & Expert Users

Sudo command

Hello, What does the below sudo command provide access to, does it allow a user to su to any other user except root. sudo !/usr/bin/su * (1 Reply)
Discussion started by: sophos
1 Replies

4. Shell Programming and Scripting

shell script problem , sudo mount command

cat test.sh sudo mount -t vfat /dev/sda7 /media/Ddrive If i double click the test.sh file and select run in terminal then the terminal prompts for password. How can i avoid typing password? Or if i double click test.sh file and select run then nothing happens. What i'm trying "Double... (3 Replies)
Discussion started by: cola
3 Replies

5. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks! When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error: exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies

6. Linux

Sudo Problem?

Hi I wanted to add a group using 1 id which is not root but has some sudo privileges. test@test>sudo -l gives this (root) NOPASSWD: /usr/bin/passwd, /usr/sbin/useradd, /usr/sbin/usermod, /usr/sbin/userdel, /usr/bin/tee, /usr/bin/grep, /bin/grep, /usr/bin/chmod, /bin/chmod, /usr/bin/echo,... (1 Reply)
Discussion started by: datkan
1 Replies

7. Solaris

Problem with password expire and sudo.

Hi, I have a small problem that I need to address regarding the password expiration for a number of different oracle accounts. Currently I have the MAXWEEKS set to 12 in the /etc/default/passwd file for all accounts. I also have sudo installed on the server and users access the oracle accounts... (2 Replies)
Discussion started by: sparcman
2 Replies

8. UNIX for Dummies Questions & Answers

Problem with Sudo inside a here document

Have a sudo statement inside of a here document. It prompts me for a password, but doesnt wait for me to enter my password. Is there a way I can use the command without sudo or anyway that I can enter the password correctly? Eg : while read remotehost do ssh -t $2@$remotehost ... (0 Replies)
Discussion started by: mnanavati
0 Replies

9. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

10. HP-UX

Problem using sudo with NOPASSWD

I need to configure access for a user in an HP-UX to : 1) use certain commands and 2) login as another user as a sudo. These have to be done WITHOUT the user needing to enter a password. However, after I enter the lines using visudo, there is a prompt for a password when the user... (3 Replies)
Discussion started by: aigini82
3 Replies
PMIECONF(1)						      General Commands Manual						       PMIECONF(1)

PMIECONF(1)						      General Commands Manual						       PMIECONF(1)

NAME
pmieconf - display and set configurable pmie rule variables SYNOPSIS
pmieconf [-cFv] [-f file] [-r rulepath] [command [args...]] DESCRIPTION
pmieconf is a utility for viewing and configuring variables from generalized pmie(1) rules. The set of generalized rules is read in from rulepath, and the output file produced by pmieconf is a valid input file for pmie. A brief description of the pmieconf command line options follows: -c When run from automated pmie setup processes, this option is used to add a specific message and timestamp indicating that this is the case. It is not appropriate when using the tool interactively. -f file Any rule modifications resulting from pmieconf manipulation of variable values will be written to file. The default value of file is dependent on the user ID - for the root user, the file $PCP_VAR_DIR/config/pmieconf/config.pmie is used, for other users the default is $HOME/.pcp/pmie/config.pmie. -F Forces the pmieconf output file to be created (or updated), after which pmieconf immediately exits. -r rulepath Allows the source of generalized pmie rules to be changed - rulepath is a colon-delimited list of pmieconf(5) rule files and/or subdirectories. The default value for rulepath is $PCP_VAR_DIR/config/pmieconf. Use of this option overrides the PMIECONF_PATH environment variable which has a similar function. -v Verbose mode. Additional information associated with each rule and its associated variables will be displayed. This is the com- plete list of variables which affects any given rule (by default, global variables are not displayed with the rule). The pmieconf commands allow information related to the various rules and configurable variables to be displayed or modified. If no pmieconf commands are presented on the command line, pmieconf prompts for commands interactively. The pmieconf command language is described here: help [ { . | all | global | <rule> | <group> } [<variable>] ] Without arguments, the help command displays the syntax for all of the available pmieconf commands. With one argument, a descrip- tion of one or more of the generalized rules is displayed. With two arguments, a description of a specific variable relating to one or more of the generalized rules is displayed. rules [ enabled | disabled ] Display the name and short summary for all of the generalized rules found on rulepath. Each of the rule names can be used in place of the keyword <rule> in this command syntax description. The enabled and disabled options can be used to filter the set of rules displayed to just those which are enabled or disabled respectfully. groups Display the name of all of the rule groups that were found on rulepath. Each of the group names can be used in place of the key- word <group> in this command syntax description, which applies the command to all rules within the rule group. status Display status information relating to the current pmieconf session, including a list of running pmie processes which are currently using file. enable { . | all | <rule> | <group> } Enables the specified rule or group of rules. An enabled rule is one which will be included in the pmie configuration file gener- ated by pmieconf. Any enabled "actions" will be appended to the rule's "predicate", in a manner conforming to the pmie syntax ("actions" can be viewed using the list global command, described below). disable { . | all | <rule> | <group> } Disables the specified rule or group of rules. If the rule was previously enabled, it will be removed from the pmie configuration file generated by pmieconf, and hence no longer evaluated when pmie is restarted (using pmieconf does not affect any existing pmie processes using file). list { . | all | global | <rule> | <group> } [<variable>] Display the values for a specific rule variable; or for all variables of a rule, a rule group, all rules, or the global variables. modify { . | all | global | <rule> | <group> } <variable> <value> Enable, disable, or otherwise change the value for one or more rule variables. This value must be consistent with the type of the variable, which can be inferred from the format of the printed value - e.g. strings will be enclosed in double-quotes, percentages have the ``%'' symbol appended, etc. Note that certain rule variables cannot be modified through pmieconf - "predicate" and "help", for example. undo { . | all | global | <rule> | <group> } [<variable>] Applicable only to a variable whose value has been modified - this command simply reverts to the default value for the given vari- able. quit Save any changes made to file and then exit pmieconf. abort Exit pmieconf immediately without saving any changes to file. Each of the commands above can be shortened by simply using the first character of the command name, and also ``?'' for help. Use of the all keyword causes the command to be applied to all of the rules. The global keyword refers to those variables which are applied to every rule. Such variables can be changed either globally or locally, for example: pmieconf> modify global delta "5 minutes" pmieconf> modify memory delta "1 minute" causes all rules to now be evaluated once every five minutes, except for rules in the "memory" group which are to be evaluated once per minute. The ``.'' character is special to pmieconf - it refers to the last successfully used value of all, global, <rule> or <group>. EXAMPLES
Specify that all of the rules in the "memory" group should be evaluated: pmieconf> modify memory enabled yes Change your mind, and revert to using only the "memory" rules which were enabled by default: pmieconf> undo memory enabled Specify that notification of rules which evaluate to true should be sent to syslogd(1): pmieconf> modify global syslog_action yes Specify that rules in the "per_cpu" group should use a different holdoff value to other rules: pmieconf> help global holdoff rule: global [generic parameters applied to all rules] var: holdoff help: Once the predicate is true and the action is executed, this variable allows suppression of further action execution until the specified interval has elapsed. A value of zero enables execution of the action if the rule predicate is true at the next sample. Default units are seconds and common units are "second", "sec", "minute", "min" and "hour". pmieconf> modify per_cpu holdoff "1 hour" Lower the threshold associated with a particular variable for a specified rule: pmieconf> l cpu.syscall predicate rule: cpu.syscall [High aggregate system call rate] predicate = some_host ( ( kernel.all.syscall $hosts$ ) > $threshold$ count/sec * hinv.ncpu $hosts$ ) pmieconf> m . threshold 7000 pmieconf> l . threshold rule: cpu.syscall [High aggregate system call rate] threshold = 7000 ENVIRONMENT
The environment variable PMIECONF_PATH has a similar function to the -r option described above, and if set will be used provided no -r option is presented. FILES
$PCP_VAR_DIR/config/pmieconf/*/* generalized system resource monitoring rules $PCP_VAR_DIR/config/pmieconf/config.pmie default super-user settings for system resource monitoring rules $HOME/.pcp/pmie/config.pmie default user settings for system resource monitoring rules PCP ENVIRONMENT
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configura- tion file, as described in pcp.conf(5). SEE ALSO
PCPIntro(1), pmie(1), pmie_check(1) and pmieconf(5). Performance Co-Pilot PCP PMIECONF(1)
All times are GMT -4. The time now is 02:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy