Re: Setting permissions, changing the owner...

From: Stephen R Laniel (steve_at_laniels.org)
Date: 07/15/05

  • Next message: Martin Lorenz: "Re: OOo install, architecture mismatch?"
    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
    


  • Next message: Martin Lorenz: "Re: OOo install, architecture mismatch?"

    Relevant Pages

    • Re: Setting permissions, changing the owner...
      ... >I want to know is there a way to set permissions for all files and ... >to all files and folders" option when you set options of one folder ... You are looking commands like chmod, chown. ...
      (Debian-User)
    • RE: Folder security (basic question)
      ... the folders or drivers. ... set proper permissions to the user account. ... If you want to set permissions to several users, ... This posting is provided "AS IS" with no warranties, ...
      (microsoft.public.windows.server.sbs)
    • Re: Driving Me Nuts
      ... I still have 2 folders ... Download pfdavadmin and set the desired permissions from ... rid of the entire PF tree but cannot set permissions on any folders or ... I fear deleting the entire PF store ...
      (microsoft.public.exchange.admin)
    • Re: Stupid Permissions Question
      ... you could set permissions to hide folders. ... to do what you want within Windows Server. ...
      (microsoft.public.backoffice.smallbiz2000)
    • Re: quick file sharing question
      ... Have you set permissions on the "Share" in addition to the files?? ... > users to access folders or files on the server. ...
      (microsoft.public.windows.server.general)