The right command the check on all the user and their permission?
Dear All,
We have centos 6 server and would like to know which is the right command which tells us the all the relevant user and their permission? |
To display status of all users:
Code:
sudo passwd -a -S Code:
awk -F\: '{ if ($3 >= 1000 && $3 < 65534) print $1 }' /etc/passwd | xargs groups |
Dear William,
I tried this. Can via the second list of user people hack into our system? Quote:
Quote:
|
It's not entirely clear what you are trying to achieve, but I believe that if you just read the contents of /etc/passwd & /etc/group, that will give you the info you seek.
|
Dear Chrism,
Below is the group. What I am trying to achieve is to look is there any zombie user or group created by external attacks. Code:
kmem:x:9: Code:
root:x:0:0:root:/root:/bin/bash |
Quote:
You can't (usually) just point to a random entry and say that's definitely 'bad' just by the name alone. What you should have is backups going back some time; extracting the same files and looking for changes may give some hints, but ultimately the admin needs to know (ie keep track of) what has been installed, inc users. There's no easy answer... See also the Security forum here and the rkhunter, chkrootkit tools etc . |
Dear Chrism,
Ok thank you I should post in the security forum then. |
Rather than duplicate, use the Report button to ask the Mods to move this over
|
All times are GMT -5. The time now is 04:08 PM. |