Changing ownership of folders created via php mkdir

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
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Changing ownership of folders created via php mkdir

Post by Kadanis »

Hi

Basically, the app I'm working on needs to create a directory when a new user is added. I used the mkdir command to do this, and it works fine. But it sets both the User and Group ownership to apache (I'm using Fedora Core 4 btw)

Is there anyway that the User ownership can be changed? It needs to be changed to localftp, which is another user account on the server.

Thanks

D
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

have a look here: you should
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Post by Kadanis »

lol... thanks mate

obviously at this time on a friday after a very stressful week i missed that completely. my bad :)
Post Reply