Writing permission to /var/www/
Hi,
I use Ubuntu8. I have a folder in /var/www/Project1. When i try to save a php file into /var/www/Project1/ it generates error(writing permition).
This is what i do but doesn't solve my problem:
root@ubuntu:/home/ubuntu# sudo useradd myuser
root@ubuntu:/home/ubuntu# sudo chown myuser /var/www/Project1/
OR
root@ubuntu:/home/ubuntu# sudo chown root /var/www/Project1/
What is missing?
Thanks
Related Article: var/www/ permissions
is a Linux and Unix discussion thread by rom. that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: permissions, server, ubuntu, www-data, apache.
veledrom
Practically a Posting Shark
822 posts since Apr 2008
Reputation Points: 42
Solved Threads: 1
Skill Endorsements: 0
If you're root, you won't need sudo. If under root you get permission errors, then you have some other issues. Perhaps check how your filesystem(s) are mounted.
John A
Vampirical Lurker
7,633 posts since Apr 2006
Reputation Points: 2,233
Solved Threads: 340
Skill Endorsements: 7
Ho do we check "filesystem(s) are mounted" ?
veledrom
Practically a Posting Shark
822 posts since Apr 2008
Reputation Points: 42
Solved Threads: 1
Skill Endorsements: 0
Run mount with no arguments.
John A
Vampirical Lurker
7,633 posts since Apr 2006
Reputation Points: 2,233
Solved Threads: 340
Skill Endorsements: 7
-> Alt F2
-> gksu nautilus /directory
->paste there
deepugtm
Junior Poster in Training
96 posts since Aug 2008
Reputation Points: 2
Solved Threads: 2
Skill Endorsements: 0
Isn't it (chmod 777) security hole, if i have more than 1 user?
veledrom
Practically a Posting Shark
822 posts since Apr 2008
Reputation Points: 42
Solved Threads: 1
Skill Endorsements: 0
veledrom
Practically a Posting Shark
822 posts since Apr 2008
Reputation Points: 42
Solved Threads: 1
Skill Endorsements: 0