premission problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bossebo
Forum Newbie
Posts: 3
Joined: Thu Oct 16, 2003 9:14 am
Location: Sweden

premission problems

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply