Koozali.org: home of the SME Server

PHP Server Manager user issue....

Keith Tansley

PHP Server Manager user issue....
« on: August 11, 2003, 05:55:36 PM »
Hi all.

Apologies if this is posted wrongly.

I have come across the LAT tools recently and thought it would be a good idea to wrap them up in PHP. I don't know if this has already been done, but it's giving me a bit of a headache.

I seem to be missing something fundamental along the lines of running the scripts as the wrong user. I can get the script to start running but they tend to crash out trying to use bash sghell or perl or something because i'm the wrong [PHP based] user.

Can anyone point me in the direction of running shell / PHP / perl scripts with the right permissions. The commands will all be run in a riduculously secure environment, so I have no real worries about security issues.

Thanks in advance.

Keith Tansley
Web Developer
Agathos Systems
www.agathos.co.uk

Michiel

Re: PHP Server Manager user issue....
« Reply #1 on: August 11, 2003, 07:11:09 PM »
Given the fact that all lat-tools perform sysadmin tasks (create users, groups, etc), they must be run as root. I suppose a workaround would be to use sudo, but I haven't tested this.

Coming to think of it, it's probably much cleaner if non-root users aren't even allowed to start the lat-tools. Now users are confused if the tools don't seem to work because of they're not root. I'll see if I can do something about that for the next release.

Michiel

Keith Tansley

Re: PHP Server Manager user issue....
« Reply #2 on: August 11, 2003, 07:15:35 PM »
Michiel

The thought is to put them into a seperate completely fool proof area so running them as root is assumed.. I may be missing a few PHP / process as user tricks here. Just looking for a bit of inspiration I guess.

All thoughts welcome....

Cheers

KeithT