Hello,
I need to change the permission, group and owner of a file dynamically using php in a linux platform. Please let me know what is the best solution. Whether to use chmod(), chgrp() functions or the php_exec() and directly give unix commands in it.
Thanks in advance,
Ajay
Changing the Permission of the file
Moderator: General Moderators
-
ajaymallaya
- Forum Newbie
- Posts: 4
- Joined: Fri Jul 27, 2007 5:22 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
ajaymallaya
- Forum Newbie
- Posts: 4
- Joined: Fri Jul 27, 2007 5:22 am
Is chmod secure enough????
hi,
Thanks for the reply. My userID is having enough permission to change the permission of the files.
But one questions... Is there any security risk / concrens for using this methods?
Or I will put it in this way, what are the things which we should keep in mind while using these functions/ methods?
Thanks again for you reply,
regards,
Ajay
Thanks for the reply. My userID is having enough permission to change the permission of the files.
But one questions... Is there any security risk / concrens for using this methods?
Or I will put it in this way, what are the things which we should keep in mind while using these functions/ methods?
Thanks again for you reply,
regards,
Ajay