Hi
I want to create a website where an admin user can specify permissions for certain users on certain UNIX directories using my web interface instead of doing it on the command line with the chmod command. How will I go about to accomplish this? I know a script file must be created containing the actual chmod command followed by the permission attributes (send as parameters), but I don't know how to create this script file in UNIX and also how to execute it with php code. I don't know Unix that well. Any help will be appreciated.
Thanks
Change Unix permissions using a web interface
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You can use the chmod() function in PHP. chmod is explained here: http://cs-www.bu.edu/help/unix/using_chmod.html
Mac
Mac