Hello all,
I I have a project that demands me to create folders and mount cifs shares to them dynamically thru a web page. I have no problem designing or coding the page (very little problem). I am using the sheell_exec function to mount a cif share the command is <== mount -t cifs -o username=user,password=pwd //10.1.0.151/music /hotsparez/shares/living-room/music ==> and it is being executed but it does not mount the share. I run the same command as root it works. Additionally if I run the php script from the command prompt <== php index.php ==> it works fine. So i am pretty sure that my code is right I think it has to do the wwwrun account is a non priv user.
I guess the options are.
change the wwwrun user to root (not good)
making the wwwrun user a super user (not good)
or some how allowing the wwwrun user to be able to mount share (the best answer I guess)
thanks in advance for your help
|