On Fri, Jul 15, 2005 at 07:36:16PM +0200, Dom wrote:
> I want to know is there a way to set permissions for all files and
> subfolders down the hierarchy - equivalent in Windows would be "Apply
> to all files and folders" option when you set options of one folder
> that has other files and subfolders.
In general, Linux programs handle this via a 'recursive'
option. The command to change permissions on a given file is
'chmod' -- e.g.,
chmod u+r filename
makes 'filename' readable by its owner. See the man page for
chmod -- by typing 'man 1 chmod' -- for details on all the
syntax for chmod.
To change the owner on a file, use chown:
chown newowner:newgroup filename
See 'man 1 chown' for documentation.
In both cases -- chown and chmod -- you can use the '-R'
option to apply recursively. To give the owner of the file
read and execute permissions, and to make this change apply
across all subdirectories of the current directory, do
chmod u+rx -R .
where the trailing dot ('.') means 'the current directory.'
I hope that helps. Let us know if you have more questions.
--
Stephen R. Laniel
steve@laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
Attachment:
signature.asc
Description: Digital signature