Re: [PHP] Running mount from PHP

2008-07-09 Thread Maxim Antonov
Try to do folowing write shell script #!/bin/sh mount /dev/hdb /home/mountpoint then write C code int main(){ system ("mount.sh"); return 0; } then compile C code gcc main.c -o wrapper then chmod : # chmod a+s wrapper and do from php: system ('wrapper'); Per Jessen пишет: Mário Ga

Re: [PHP] Running mount from PHP

2008-07-09 Thread Per Jessen
Mário Gamito wrote: > Hi, > > I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. > > So, I´ve added this to /etc/sudoers: > > - > Cmnd_AliasCMD_MOUNT = /bin/mount > Cmnd_AliasCMD_CIFS ) = /sbin/mount

[PHP] Running mount from PHP

2008-07-09 Thread Mário Gamito
Hi, I'm trying to run /bin/mount and /sbin/mount.cifs from a PHP page. So, I´ve added this to /etc/sudoers: - Cmnd_AliasCMD_MOUNT = /bin/mount Cmnd_AliasCMD_CIFS ) = /sbin/mount.cifs nobody ALL = NOPASSWD: