Re: Setting permissions, changing the owner...
From: Stephen R Laniel (steve_at_laniels.org)
Date: 07/15/05
- Previous message: Stephen R Laniel: "Re: fetchmail running as a daemon, but can't deliver to user's mail box"
- In reply to: Dom: "Setting permissions, changing the owner..."
- Next in thread: Wu-Kung Sun: "Re: Setting permissions, changing the owner..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 15 Jul 2005 13:50:39 -0400 To: Dom <debian.dom@gmail.com>
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
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- application/pgp-signature attachment: Digital signature
- Previous message: Stephen R Laniel: "Re: fetchmail running as a daemon, but can't deliver to user's mail box"
- In reply to: Dom: "Setting permissions, changing the owner..."
- Next in thread: Wu-Kung Sun: "Re: Setting permissions, changing the owner..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|