

Usually programs execute as/with the permission of whomever user executed the program. The exception to this was executables that had to run as root - they had to be owned by the root-user. For example, the binaries (the executable programs) usually had bin-user and/or bin-group as ownership (eg. Although, traditionally various system-users and system-groups - like bin, sys, proc, operator - owned many files rather than root. Many files on a Linux-system got root-user as it's owner and root-group as it's group.

(Since it's a text-file, it's probably little point of executing it anyway.) Other users can neither read, write nor execute the file. And that members of the root-group are allowed to read it. It means that it's the root-user who owns the file and got permission to both read and write it - the owner (root) may also change the file's permission. The editor is running as you, and as you own the file and can change its permissions, the editor can remove write-protection and allow you to save the file. permission r-r-), some editors will allow you to write to them anyway (usually after a confirmation). For example, if you got a write-protected file (eg. The owner of a file can always add more permission to himself if he needs to - and sometimes a program may do it for you. Other (non-owner) members of the group, will be allowed to both read-and-write the file. So if the group got both read-and-write-permission, but the owner only got read-permission then the owner will only be allowed to read the file - even though his group-membership ought to let him write to it too. So in your example, if the user is both the owner and a member of the group, it's the owner-triplet that's used (not the group-triplet). So for root it doesn't matter much anyway - but for other users, it's the most specific permission-triplet that applies. It the user is neither the owner nor member of the group, use the other-triplet as permission.If the user isn't the owner but belong to the group, use the group-triplet as permission.If the user is the owner, use the owner-triplet as permission.
#LINUX LIST ALL PROCESSES OWNED BY ME NO PERMISSIONS FULL#
If the user is the root-user (UID=0) grant full access.
