Re: setting permissions
On Thu, 30 Oct 2003 23:43:15 +0000, john wrote:
> need to know what command i can use so i can write to all files and folders
> under any folder which is shared on a network
The command is called "chmod". To use it you have to understand unix file
Every file has an owner and a group.
The file permissions contains three parts: user (owner), group (members of
the group) and other (everybody else).
If you do a "ls -l" you will see perhaps the following permissions for a
The first three are the permissions for the user (he may read, write and
execute), the second three are for group (same permissions), the last
triple for other (may read and execute but not write).
You use chmod like this:
chmod o+w file
That means that other (last triple) get write permissions.
Or you might say
chmod u+rwx file
so user gets all permissions (he normally already has)
and so on...
chmod (u|g|o)+(r|w|x) file.
To change permissions recursively add the -R parameter.