You are not logged in.
For local web development, I installed Apache and PHP on my desktop. In order to be able to put files in the web directory as a normal user, I declared /srv/http world-writable (777). For convenience, I symlinked this dir as ~/_server. Perhaps not the best way to accomplish this, but until recently it worked fine.
A few weeks ago, my text editor started complaining it couldn't write a project file to a subdirectory of ~/_server. I thought I hit a bug in this editor and wasn't too worried, until I wanted to edit a file in this subdirectory and noticed I couldn't save the file, it merely created a zero-length file.
My permissions are as follows:
$ ls /srv
total 8.0K
dr-xr-xr-x 2 root ftp 4.0K May 31 2013 ftp/
drwxrwxrwx 6 root root 4.0K Jul 12 14:20 http/
All files in http/ carry default user and group. (Of course) I'm able to save files in this directory as root.
Anyone has a clue what could be wrong? Sorry for this n00b question, but I am clueless. Tips about being able to write to a web directory as normal user are also appreciated.
Last edited by Marcel- (2014-07-12 12:28:21)
Offline
A few weeks ago, my text editor started complaining it couldn't write a project file to a subdirectory of ~/_server.
What's the permissions on the subdirectory you are trying to write to?
The emtpy file creation bit sounds a bit strange.
Offline
Nevermind, I just discovered that my root directory had no free space anymore for other users then root (reserved blocks for the super-user specified with the -m option in mkfs.ext4).
Offline