Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Its clear to me that the

chmod 777

command will make any file, theoretically, accessible/readable/writeable/executable/ by any user.

But are there instances where, even with a world writable/readable file, we still need to implement CHOWN in order for the file to be used by system processes?

Or can we assume that, as long as permissions are wide open, the chown command has no impact on the access pattern behaviour of a file.

I ask this in relevance to some multithreaded/cluster processes which seem to fail when running as the wrong user due to ENOENT errors which appear to occur on a file which has wide open (777) permissions.

share|improve this question

With a script which is setuid/setgid, meaning it executes as the user or group that owns the file this may be an issue.

Theoretically a program may check ownerships of a file before using them, secured tools such a ssh refuse to execute with global permissions, but afaik don't check ownerships. And it could also potentially be an issue with programs which set their own ownership, such as mail servers which also usually check for permissions before dropping to the mail user id.

Security wise it is considered very bad practice.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .