How can i change "user" and "group" permissions to many files?

Discussion in 'Site & Server Administration' started by diego018, Mar 18, 2009.

  1. #1
    i have 10 sites, and each one has a different ftp access (Example: user01, user02)
    but the files that are in the server are assigned to "user - master" "group - master" because of a mistake, so i cant change stuff with my ftp program.

    i have simple control panel, and i can change the permissions of user and group to the folders and files but just one by one.
    what can i do? i want to be able to change a folder permissions of user and group, and with just one click change all the permissions from the entire folder.
     
    diego018, Mar 18, 2009 IP
  2. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #2
    by command line it would be easier.

    chown for change of owner/user
    or
    chgrp to change the group.
     
    Camay123, Mar 18, 2009 IP
  3. grk519

    grk519 Peon

    Messages:
    293
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To change the permissions of all files inside of a folder you can do this;

    Login via SSH to your command line.
    Navigate to the folder you want to set permissions
    chmod -fR user:group foldername

    All items inside that folder will be changed.
     
    grk519, Mar 18, 2009 IP
  4. zeromaster

    zeromaster Peon

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    zeromaster, Mar 19, 2009 IP