in reply to what is $uid and $gid?
All Unix files have protection bits, which are set when the file is created, and can be changed by chmod().
Protection bits include 3 3-bit fields. The bits represent "can read", "can write", and "can execute". The first field represents protections that apply to the owner of the file. The second field represents protections that apply to other users in the same group, and the third field represents the protections for "everyone else" (AKA "world"). Hence, a protection of 0750 (protections are almost always writen in octal) means that the owner can read, write, and execute the file (the 0700 part); members of the group and read and execute the file(the 050 part), and the rest of the world can do nothing (the 0 part at the end).
There's more to it than that, but that's the basics.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: what is $uid and $gid?
by Abigail-II (Bishop) on Apr 22, 2003 at 07:04 UTC |