Page 1 of 1

premission problems

Posted: Thu Oct 16, 2003 9:14 am
by bossebo
When I was developing a administration application (based on php) for my site (on a university server), I managed to upload several files with another owner. This happened because I did not explicitly state the file permissions of the files (this is fixed now), I think.
My problem is that I cannot remove this files because I am not the owner. Have you any idea what has happend. Who could be the owner(='33') of this files I uploaded remote on my site? Is the only way to get rid of them to contact the root admin?
Thax! /Anders

Posted: Thu Oct 16, 2003 9:22 am
by volka
33 is the uid of the owner?
Usually it's the uid of the account you've logged in with via ftp (unless configured/administered otherwise). If the filepermissions grant only the owner to delete the file there's nothing you can do anymore (except loggin in with the same uid or calling the admin or finding the user with this uid)

if you have access to the posix-extension you might use posix_getpwuid ( int uid) to see who the new owner is.