I have a fresh installation of CentOS. I created a user and added it to wheel group (to add it to sudoers list).
I logged in with the credentials of new user. I then run the command cat useradd
. Ideally, I should get a permission denied response. But the command worked and I got the details. I looked at the permissions with ls -al
. Here is the screenshot :
It shows the owner is root, but it still showed the details to other user. Can anyone kindly explain what is going on here? Thank you.
(I am not that familiar with Linux. I have used it in past but it was a long time ago.)
useradd
./etc/passwd
nothing will work right!)