You are not logged in.

#1 2014-07-12 12:25:04

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

[SOLVED] Not able to save anymore to world-writable directory

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

#2 2014-07-12 12:29:03

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [SOLVED] Not able to save anymore to world-writable directory

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

#3 2014-07-12 12:30:22

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

Re: [SOLVED] Not able to save anymore to world-writable directory

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

Board footer

Powered by FluxBB