linux - check owners of run control scripts -


to secure computer want sure "root", "sys", "bin" owners of run control scripts..

this far :

find -l /etc/rc* -ls | awk '$5 !="root" { print $0 }' 

is there better way achieve ? thanks

to find files not owned root use:

find -l /etc/rc* ! -user root 

to check 3 user names named in question use:

find -l /etc/rc* ! -user sys -a ! -user sys -a ! -user bin 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -