Results 1 to 2 of 2

Thread: File Permissions Command.

  1. #1
    Join Date
    Oct 2007
    Beans
    25
    Distro
    Ubuntu 8.04 Hardy Heron

    File Permissions Command.

    I have a bunch of files that don't have Write permissions for the group they are associated in. They are across a lot of different directories. I want to keep all of their other permissions the same and only add write permissions for group. How can I do this? I'm operating at the CLI.
    David.

  2. #2
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Beans
    157

    Re: File Permissions Command.

    The command you want is:

    Code:
    chmod g+w filename
    If you want to do this across a lot of files with the same group, in different directories, then use:

    Code:
    find . -group groupname -exec chmod g+w '{}' \;
    WARNING! Make sure you know what you're doing before running the command above.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •