LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2008, 01:54 PM   #1
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Rep: Reputation: 30
Unable to edit any file in /var/www


I can't create or edit or delete any file in /var/www, it is owned by www-data:
ls -ld /var/www/
drwxrwxr-x 4 www-data www-data 4096 2008-01-28 21:06 /var/www/

I added my username to the group www-data:
groups user1
user1 : user1 adm dialout cdrom floppy audio dip www-data video plugdev scanner netdev lpadmin powerdev admin

The directory /var/www/ has permissions 775, what is wrong? why I can't write?

Thank you
 
Old 01-28-2008, 02:10 PM   #2
code933k
Member
 
Registered: Aug 2007
Location: Bogotį, Colombia. South America
Distribution: ArchLinux / Source Mage GNU Linux (test branch) / openSUSE
Posts: 130

Rep: Reputation: Disabled
Perhaps it is a different partition and you are trying to write to a R(ead) O(nly).

Check inside the directory whether umask is making impossible your task...

In a third, last and non probable approach you could see whether exchanging to another user allow you a normal access so the problem could be caused by the user definition in whatever weird setup context you could note lately.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to edit any file in OS??? ajeetraina Linux - Server 1 01-01-2008 08:39 AM
allow users to edit /var/www/html/someFile blizunt7 Linux - Server 8 03-20-2007 07:50 AM
Whenever I create a file in /var/www/html/, it is at permission 600 (forbidden) Josh1billion Linux - Software 4 03-18-2006 10:24 PM
File does not exist: /var/www/favicon.ico matarodi Debian 4 01-26-2006 06:53 PM
VSFTPD /var/www mmethe Linux - Software 2 05-10-2005 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration