Find the answer to your Linux question:
Results 1 to 8 of 8
hello i was following the instructions contained here : (not allowed to post this url) the usual htpstuff then the wstuff then wpwebhostdotcom/install-wordpress-in-ubuntu-12-04-lts-localhost-lampp-server/ - i have not made 15 posts ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2013
    Posts
    4

    Red face 755 permssions conflict


    hello
    i was following the instructions contained here: (not allowed to post this url) the usual htpstuff then the wstuff then wpwebhostdotcom/install-wordpress-in-ubuntu-12-04-lts-localhost-lampp-server/ - i have not made 15 posts so i am not permitted to place url's on posts

    for a local host install on a toshiba satelite laptop

    i did the permissions reset - twice as i redid the entire install - i can't save the info.php file in the path /home/ubuntuusername/www

    when i try to save i get the unauthorized to write message

    i can save to /home/ubuntuusername/

    both /guy and /www have same file permissions as per the instructions and tested

    any ideas?
    Last edited by atreyu; 04-23-2013 at 02:23 AM. Reason: added link on behalf of OP

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    You forgot to post the permissions: Use ls -l /home/username/www/ and ls -ld /home/username/www

    What are you referring to with '/guy'?

    Owner group for the directory and files??

  3. #3
    Just Joined!
    Join Date
    Apr 2013
    Posts
    4
    Quote Originally Posted by yancek View Post
    You forgot to post the permissions: Use ls -l /home/username/www/ and ls -ld /home/username/www

    What are you referring to with '/guy'?

    Owner group for the directory and files??
    oops!
    permissions are 755
    'guy' is the ubuntu username - the path was given in the setup instructions from the url that i can't post
    i am the administrator and only user

    thank you for your attention

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    What is the owner/group for the www folder? Use the commands I suggested previously to determine. Usually on Ubuntu the owner/group is www-data and the user needs to be in the www-data grougp.

  5. #5
    Just Joined!
    Join Date
    Apr 2013
    Posts
    4

    Red face

    Quote Originally Posted by yancek View Post
    What is the owner/group for the www folder? Use the commands I suggested previously to determine. Usually on Ubuntu the owner/group is www-data and the user needs to be in the www-data grougp.
    here is the result of the inquiry
    Code:
    guy@mei:~$ ls -l /home/guy/www
    total 0
    guy@mei:~$ ls -ld /home/guy/www
    drwxr-xr-x 2 root root 4096 Apr 19 11:45 /home/guy/www
    Last edited by atreyu; 04-23-2013 at 02:24 AM. Reason: added CODE tags to aid in readability

  6. #6
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Quote Originally Posted by guyhawkins View Post
    here is the result of the inquiry
    Code:
    guy@mei:~$ ls -l /home/guy/www
    total 0
    guy@mei:~$ ls -ld /home/guy/www
    drwxr-xr-x 2 root root 4096 Apr 19 11:45 /home/guy/www
    Hi,

    We can see that "www" directory is under "guy" user, but owner and group is root, It seems you are creating or uploading "info.php" file under "www" by from "guy" user. Please change all directories of guy to its own ownership, to create files and folders.

    or create info.php by login root.

    Thanks,

  7. #7
    Just Joined!
    Join Date
    Apr 2013
    Posts
    4

    Smile

    Quote Originally Posted by NixSavy View Post
    Hi,

    We can see that "www" directory is under "guy" user, but owner and group is root, It seems you are creating or uploading "info.php" file under "www" by from "guy" user. Please change all directories of guy to its own ownership, to create files and folders.

    or create info.php by login root.


    Thanks,
    thank you for your continued attention
    i was following instructions to install a localhost at the root level so that it would be available to all users
    i really don't need this feature as i'm the only user

    could you describe what i need to do to change the ownership?

  8. #8
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    When you are trying to create info.php, with which user you have logged in, is it root or guy. If you have logged in with root, then no need to change ownership, root can create file or directories anywhere but if you logged in with guy then you need to change ownership of www to guy as below:
    Code:
    It will change ownership of all contents contained in guy
    #cd /home
    #chown -R guy.guy guy
    or
    Code:
    It will change ownership only for www and content contained in it.
    #cd /home/guy
    #chown -R guy.guy www
    Thanks,

Posting Permissions

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