01-13-2004
Have you turned on the sudo logging facility?
- F
10 More Discussions You Might Find Interesting
1. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
2. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
3. UNIX for Dummies Questions & Answers
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
4. Solaris
what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies
5. AIX
Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run?
sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have few doubts regarding "sudo" command. It acutally allows access to other commands as a different user. It stands for "superuser do".
Now, we execute a command as
sudo su - oracle
Can you please tell me what does it do actually, thank you. (6 Replies)
Discussion started by: Dev_Dev
6 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
Hi All,
I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing
"sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
9 Replies
9. Shell Programming and Scripting
Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error.
Command:
sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh
Error:
sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies
10. Red Hat
We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies
LEARN ABOUT REDHAT
initlog
initlog(8) System Manager's Manual initlog(8)
NAME
initlog - log messages and events to the system logger
SYNOPSIS
initlog [-cefnpqrs] [--cmd=ARG] [--event=ARG] [--facility=ARG] [--name=ARG] [--priority=ARG] [--run=ARG] [--string=ARG]
DESCRIPTION
initlog logs messages and events to the system logger. It is mainly designed for use in init scripts. initlog reads a configuration file
/etc/initlog.conf by default, to determine its settings. Any line preceded with a # is a comment, and the following configuration direc-
tives are recognized:
facility <logging facility>
Sets the default logging facility
priority <logging priority>
Sets the default logging priority
ignore <regexp>
Messages that match the regular expression will not be logged.
initlog behavior can also be configured by command-line options.
OPTIONS
-c, --cmd=[program]
Execute the specified program, logging anything output to stdout or stderr.
-e, --event=[number]
Logs that the specified event happened. Used in conjuction with --name. Currently specified events are:
1 the action completed successfully
2 the action failed
3 the action was cancelled at user request
4 the action failed due to the failure of a dependent action
-f, --facility=[facility]
Log at the specified syslog facility. The default is daemon (see syslog(3)).
-n, --name=[string]
Log the event under the specified string, such as "inetd".
-p, --priority=[priority]
Log at the specified syslog priority. The default is notice (see syslog(3)).
-q Do not print the program's output, unless it exits with a non-zero exit code.
-r, --run=[program]
Execute the specified program, with an open file descriptor so that the program can pass back commands to initlog.
-s, --string=[string]
Log the specified string to the logger.
--conf=[file]
Specifies an alternate configuration file.
FILES
/etc/initlog.conf
SEE ALSO
syslog(3), logger(1)
Sun Jan 24 1999 initlog(8)