简体   繁体   中英

Command to find the sudo su jenkins occurences in a RHEL Linux box

My requirement is to review the occurrences of sudo su jenkins command usage in a RHEL VM. I tried the below command and got permission denied error. Is there any other specific command which gives me the output of occurrences of the sudo su jenkins usage. I need to remove the sudo su and see the impact

command:

tail var/log/secure | grep jenkins    

Error:

Permission denied

I tried this command inside Jenkins user only

Permission for /var/log/secure file is: -rw-------. So jenkins user can't access this file. Use sudo cat /var/log/secure | grep jenkins sudo cat /var/log/secure | grep jenkins

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM