> From: Richard Swartz <[EMAIL PROTECTED]> > Date: Wed, 12 Dec 2001 09:04:20 +0100 (MET) > Subject: PCWorks: ATTN: Gerry: Unix file permissions
Brief Explanation: First digit represents the permissions for the owner. Second digit represents persmissions of the owner's group. Third digit represents the permissions of everyone else (namely, anyone else that is not member of the group's owner). The three permissions are "r","w","x". "r" is for "read", "w" is for "write" (and "delete"), "x" is for "execute". [Let's talk just for files and not for directories). Now each permission has an octal value. "r" has 4, "w" has 2 and "x" has 1. We sum up the values of each permission field to find out the correspodent digit. For example: let's say "file.txt" has "rw-" for the owner, "r--" for the group and "---" (no access) for anyone else. We have: 4+2+0=6 for the owner 1+0+0=1 for the group 0+0+0=0 for other so the octal value of the file.txt will be: 610. Hope I helped. -- tnu ============= PCWorks Mailing List ================= Don't see your post? Check our posting guidelines & make sure you've followed proper posting procedures, http://pcworkers.com/rules.htm Contact list owner <[EMAIL PROTECTED]> Unsubscribing and other changes: http://pcworkers.com =====================================================
