> I'm developing a system for quick provisioning of > zones (actually containers) via a web interface in > PHP. I need to execute the zonecfg and zoneadm > commands from PHP. The web server is running as the > webservd user. How can I do this? Do I just need to > add the "Primary Administrator" role to the webservd > user in /etc/user_attr? I realise this is not a good > idea from a security point of view but I'm just > trying to get it working at this stage - it is an > honours project at uni.
Luckily my OpenSolaris Bible was waiting for me when I got home and it contains pretty much the solution, which in case anyone else wants to know is: # usermod -P Zone Management" webservd then just put pfexec in front of zonecfg and zoneadm when called from PHP - job done! Cheers Andrew. -- This message posted from opensolaris.org _______________________________________________ opensolaris-help mailing list [email protected]
