- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
11-04-2020 02:16 PM
Hi,
We have a requirement to modify the sudo passwd reconcile command on Solaris hosts so that it uses the "-r files" argument. I modified unixprocess file with the following:
RecSudo=$sudo passwd -r files <username>
When I attempt to reconcile after this change, it fails to find sudo. The console log shows the following:
send: sending "find /bin /usr/bin /usr/local/bin -name sudo -o -name pimsu -o -name pbrun | cat\r" to { exp4 }
find /bin /usr/bin /usr/local/bin -name sudo -o -name pimsu -o -name
pbrun | cat
find: stat() error /usr/local/bin:
When RecSudo is set to the default of "$sudo passwd <username> " with sudo being found and reconcile working , the console log shows this:
send: sending "find /bin /usr/bin /usr/local/bin -name sudo -o -name pimsu -o -name pbrun | cat\r" to { exp4 }
find /bin /usr/bin /usr/local/bin -name sudo -o -name pimsu -o -name
pbrun | cat
find: stat() error /usr/local/bin: No such file or directory
/usr/bin/sudo
I can't understand why it is showing the same find command return different results. Is there something else that is affected and that must be taken into account when modifying recsudo in the UnixProcess file?
Thank you
Fred
11-05-2020 02:13 AM
I don't think the messages you posted are the root cause. They just indicate that the CPM plugin is designed to look for the sudo executable in multiple directories and doesnt find it in some of the directories. What happens in the logs *after* the errors you posted?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

