5

What is the effect of chown nobody:nogroup on a single file or directory and what is the effect on files within a directory?

1 Answer 1

6

chown is used to change the ownership of files and folders.

Your command just changes the owner user and group to nobody and nogroup. Both of these entities are normal objects within the system.

You can verify this by running cat /etc/group | grep nogroup and cat /etc/passwd | grep nobody respectively.

It probably doesn't make a lot of sense without also using chmod to change the actual permissions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.