Results 1 to 9 of 9

Thread: chmod command

  1. #1
    Join Date
    Dec 2006
    Location
    Cardiff, Wales
    Posts
    802

    chmod command

    Hi. What do i have to type in to ssh to change the permission on all other folders and files within the directory. at the moment i type in

    chmod 777 /home/accountname/public_html

    Thanks,
    Nathaniel
    Wholesale Direct International Sip Termination & UK Numbering (DID's/DDI's)
    Over 250 Direct Interconnects with guarnateed CLI/FAX | SIP & TDM Interconnectivity
    http://wholesale.alohatelecom.co.uk | Instant SIP Trunking at unbeatable rates http://www.voipyonder.com/

  2. #2
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    Be carefull on what you chmod 777.
    You can use wildcard for example
    chmod 777 /home/user/public_html/*
    chmod 777 /home/user/public_html/*.*
    chmod 777 /home/user/public_html/*.php
    etc
    Dave

  3. #3
    Join Date
    Aug 2004
    Location
    France
    Posts
    405
    Just use the recursive option :

    chmod -R 777 /home/accountname/public_html/* >> this will chmod 777 all files and folders under /public_html/ and let this very folder as it is.
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  4. #4
    Join Date
    Dec 2006
    Location
    Cardiff, Wales
    Posts
    802
    I am using cpanel. I have lost all control on of the accounts contents, I need to reset the permissions.

    Thanks,
    Nathaniel
    Wholesale Direct International Sip Termination & UK Numbering (DID's/DDI's)
    Over 250 Direct Interconnects with guarnateed CLI/FAX | SIP & TDM Interconnectivity
    http://wholesale.alohatelecom.co.uk | Instant SIP Trunking at unbeatable rates http://www.voipyonder.com/

  5. #5
    Join Date
    Aug 2004
    Location
    France
    Posts
    405
    With cpanel, /public_html/ should be 750, not 777

    I'm not sure what you mean with "losing all control" ?
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  6. #6
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    Quote Originally Posted by logikstudios
    I am using cpanel. I have lost all control on of the accounts contents, I need to reset the permissions.

    Thanks,
    Nathaniel
    you may need to
    chown user:user files/folders
    Dave

  7. #7
    Join Date
    Dec 2006
    Location
    Cardiff, Wales
    Posts
    802
    We have all accounts on our second hard drive. we had to have our primary hard drive reformated due to a problem

    when we recreate the accounts, The account folders are already there. We can only get in to the root folder of the account. not the sub folders, eg. etc, mail, public_html.

    Is there a way to restore this except from deleting the account and starting again?

    Thanks,
    Nathaniel
    Wholesale Direct International Sip Termination & UK Numbering (DID's/DDI's)
    Over 250 Direct Interconnects with guarnateed CLI/FAX | SIP & TDM Interconnectivity
    http://wholesale.alohatelecom.co.uk | Instant SIP Trunking at unbeatable rates http://www.voipyonder.com/

  8. #8
    Join Date
    Aug 2004
    Location
    France
    Posts
    405
    Are they stored as backup files on your second HD ?
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  9. #9
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    Do not use 777 however for cPanel you can simply run

    /scripts/chownpublichtmls

    -Scott
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

Posting Permissions

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