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
Post a Comment