I've been using linux for a while, but I always had root access, so permission problems were no big deal. But now I don't have root access and it's driving me mad.
I have a ssh access to a web server. This means I have access to my user
gabitoptalentro, and also to the
apache user through PHP backticks. I have problems with some
tmp folder (not
ls -l says this:
drwxrwxrwx 2 gabitoptalentro toptalentro 4096 Jun 15 19:15 tmp
When I try to
touch a file (
touch tmp/QQ) to create it in this folder it works (the file is created), but it doesn't show up in
ls -l. Here is the entry from my ssh account:
-rw-r--r-- 1 apache apache 0 Jun 15 19:37 QQ
So the file actually belongs to
apache can't read it.
I also tried to
chown the whole folder to
apache, but it won't let me (
chown: changing ownership of ...: Operation not permitted). Wtf, it doesn't let me give my own folders to someone else?
So, do you have any idea how I can get myself out of this mess and help
apache read it's own files?