Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ubuntu lamp permissions

  • 04-09-2009 12:51AM
    #1
    Closed Accounts Posts: 40


    I cannot save nor edit anything in my www folder, could anyone tell me the terminal commands to change the permission to the administrator? thanks


Comments

  • Registered Users, Registered Users 2 Posts: 1,922 ✭✭✭ronivek


    Belongs in the Unix forum methinks; but check out chown and chmod. Below is an example for pulling up the man document for chown; you can also to the same for chmod and subsequently decide which one suits your needs.

    Alternatively you can google for examples.
    man chown
    


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Moved from programming.


  • Registered Users, Registered Users 2 Posts: 5,112 ✭✭✭Blowfish


    I cannot save nor edit anything in my www folder, could anyone tell me the terminal commands to change the permission to the administrator? thanks
    Do you mean you can't save/edit as root (the administrator), or you need to know how to edit files owned by root?

    If it's the former, use chown/chmod as mentioned, if it's the latter use sudo.


  • Closed Accounts Posts: 40 Marina-anseo2


    After much googling i managed it:D i changed the directory to /var and i used chown to change the ownership of /www to the my account name so i could edit and save files to in the www folder... chmod didnt seem to do anything but perhaps i didnt use it correctly.. lamp works perfect now though:) thank you for your help


Advertisement