[sudo-users] php edit of sudoer file

Patrick Spinler spinler.patrick at mayo.edu
Sat Dec 15 17:28:36 EST 2012

I suggest checking into existing web based management tools, instead of
trying to role your own.

In this instance, I think the tool 'webmin' will likely meet the needs
you mention.

-- Pat

On 12/14/12 4:39 PM, Robert Lefebvre wrote:
> I had started building a php script that would have enabled logged in
> teachers to use a php script that would modify the etc/shadow file to
> temporarily deactive errant students as users. I couldn't get my script to
> write to the file until I realized it was a permissions issue. I don't want
> to leave the permissions changed so another approach would be to make php a
> user in the sudo group so it could write to the shadow file. Some warned
> that php was not that secure, that I shouldn't give it sudo rights and, so,
> instead should create an LDAP server.
> Does this group have any thoughts on this idea of making php a sudo user?
> Thanks

More information about the sudo-users mailing list