I have provided sudo to 10 users to become another user like nsup.
I want to track which users has executed what command after they become nsup.
If there is possible way to put the log files in common file that old be great.
I did check /var/log/secure file but from there i cannot distinguish which user executed what command after they become nsup.
It shows only which user executed command to beco
I have provided sudo to ten users to become another user like nsup.
I want to track which user executes which command after they become nsup.
If there is a way to store the log files in a common file that would be great.
I have tried looking at /var/log/secure, but from there I cannot distinguish which user executed which command after they became nsup.
I want to log the commands executed by all users on the server. Is there any better way than using script command?
I just installed MySQL 5.5 and right after install I was asked to set root password by executing those two commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h linux-opxd password 'new-password'
or
/usr/bin/mysql_secure_installation
I executed first command -- OK.
I would like the shell to warn me for potential errors I'm about to make.
How can I prevent a command cmd2 from being executed after cmd1.
For example:
$ tar tf file.tar
$ rm !$
Here, I just forgot that I listed the file instead of extracting its content.
I'm looking for a generic solution, that makes a choice based on the name and return value of the previous command, and on the current co
I have a list of scripts
./myscript <param> | grep "asd"
./myotherscript <param> <param> > file
...
How can I automaticaly run another script when one of these command in the list is executed and finished?
Well, I like to mark /usr/bin/program.sh as executable using following command:
chmod +x /usr/bin/program.sh
I want the above command to be executed at the end of installation of the Debian package.
Is there a painless way to inject the command into the deb?
Thanks for looking!
Suppose I want to execute pdftk input FilesHighlightedInX out specifiedByUserInX in the following way:
User highlights files in X
User clicks some button, shortcut, right-mouse-button-select, to execute a Bash script with the pdftk command
The output file will appear in the directory where user executed the command (user can specify the name of the output or not, modular functionality)
How can
In Unix based systems, is there a log file that stores user's executed command(s)?