Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Im new to the whole server/networking realm. I currently managed to setup apache2 and mod_wsgi to serve my django site. I have created the project within /svr/ directory.

The problem is that when i try to upload new files or make a new directory i get a permission denied error. As far as i am aware i havent changed any permissions.

Using

ls -l

I get the following permission levels, is this correct?

drwxr-xr-x 4  998  998 4096 Jul 11 15:31 .
drwxr-xr-x 4 root root 4096 Jul 11 14:26 ..
drwxr-xr-x 2  998  998 4096 Jul 11 14:23 folder2
drwxr-xr-x 2  998  998 4096 Jul 11 14:18 folder
-rw-r--r-- 1  998  998  248 Jul 11 14:18 manage.py

I connect via sftp using firezilla using the default username. I have not setup anything else (im sure this is a security risk but for now i just want to work things out one step at a time).

Why can i not upload to this folder?

Thanks

share|improve this question

1 Answer 1

why user 998 has not a name? Maybe you just need to actually change the permissions: chown apache:apache /where/apache/writes/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.