Set user in shell access

Discussion in 'Site & Server Administration' started by megdilts, Aug 26, 2008.

  1. #1
    Hi,
    Does anyone know what kind of Linux command I can use to change the user?
    This is what I have currently:
    drwxr-x--- 5 username nobody 4096 August 1 08:39 public_html

    I need to change it to:

    drwxr-x--- 5 username username 4096 August 1 08:39 public_html

    Thanks!!!
     
    megdilts, Aug 26, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    chown username:group filename
     
    The Universes, Aug 26, 2008 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    If you are not using suPHP then public_html folder must have ownership username:nobody. If you change it to username:username then you will get 403 permission denied error.

    Kailash
     
    kailash, Aug 26, 2008 IP
  4. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Hi,

    You may change the group using the command 'chgrp group-name filename'.
     
    maestria, Aug 26, 2008 IP
  5. megdilts

    megdilts Active Member

    Messages:
    448
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Thanks everyone!
     
    megdilts, Aug 27, 2008 IP