WEB Permissions / Chmod Problem

Discussion in 'OT Technology' started by scotty, Nov 17, 2007.

  1. scotty

    scotty why don't you take a seat right over there? OT Supporter

    Joined:
    May 6, 2007
    Messages:
    11,817
    Likes Received:
    30
    Location:
    Carlsbad, CA
    Ok, so my friend has a dedicated server with CentOS and Plesk. He is letting me host my site off it and gave me a Plesk login along with his root shell login.

    So I tar.gz all my stuff on my previous host and ftp it over. First thing I notice is I get permission denied in the root folder and in httpdocs. I shell in and chmod httpdocs to 755. That works and I ftp the tar file over, untar everythings fine but now when I go back to the ftp to try and edit files I get permission denied. Most of the folders are set to 755.

    This chmod stuff confuses me. I tried one of those chmod calulators with the owner, group, other check boxes and it generates the # for you although it doesn't seem to be helping.
     
  2. Vtec44

    Vtec44 OG!

    Joined:
    Mar 15, 2000
    Messages:
    555
    Likes Received:
    0
    Location:
    So. Cal.
    To edit the files, it has to be set at 777.
     
  3. scotty

    scotty why don't you take a seat right over there? OT Supporter

    Joined:
    May 6, 2007
    Messages:
    11,817
    Likes Received:
    30
    Location:
    Carlsbad, CA
    Setting everything to 777? Are you sure thats what its suppose to be at?
     
  4. Vtec44

    Vtec44 OG!

    Joined:
    Mar 15, 2000
    Messages:
    555
    Likes Received:
    0
    Location:
    So. Cal.
    No, just the folder/file you want to edit. That's the typical full permission to a file/folder. For example, Wordpress requires that you chmod the folder to 777 if you want the script to create the wp-config.php file. You can change it back to 755 once you're done.
     
  5. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    Without setting it to 777 you are not giving permission to edit the file.
     
  6. Swift

    Swift http://www.bounceweb.com

    Joined:
    Apr 22, 2007
    Messages:
    668
    Likes Received:
    0
    chmod 755 should work, because it's user|group|everyone else.
     
  7. Vtec44

    Vtec44 OG!

    Joined:
    Mar 15, 2000
    Messages:
    555
    Likes Received:
    0
    Location:
    So. Cal.
    Group and Everyone else do not have Write permission.
     
  8. scotty

    scotty why don't you take a seat right over there? OT Supporter

    Joined:
    May 6, 2007
    Messages:
    11,817
    Likes Received:
    30
    Location:
    Carlsbad, CA
    I untared the tarball and everything says its owned by root because I did it through shell. Whats the point of me logging into ftp if I can't edit anything besides uploading new files. Is there anyway I can transfer the ownership from root to my user account?
     
  9. MrBrotato

    MrBrotato New Member

    Joined:
    Sep 7, 2005
    Messages:
    5,558
    Likes Received:
    0
    Google "chown command"
     
  10. Zac

    Zac New Member

    Joined:
    Nov 24, 2006
    Messages:
    151
    Likes Received:
    0
    see who the owner/group is set to for any files that are already there and make your stuff the same.

    chown and chgrp are the commands you want. if you've got sub directories and whatnot use -R for recursive.
     
  11. Logik

    Logik Livin la vida broka

    Joined:
    Jun 30, 2000
    Messages:
    20,667
    Likes Received:
    1
    Location:
    The Steel City
    giving who permission to edit the file? :confused:

    chown yourusername folder/filename
     
  12. scotty

    scotty why don't you take a seat right over there? OT Supporter

    Joined:
    May 6, 2007
    Messages:
    11,817
    Likes Received:
    30
    Location:
    Carlsbad, CA
    Perfect. Thanks guys.
     

Share This Page