[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Shell Tools [ADDUSER]



"Bryan - Utopian Web Productions" <bryan@xxxxxxxxxxx> writes:

> Has anyone successfully implemented ADDUSER from a PHP script? I can't seem
> to get it to run outside of a root session.

Sure, no problem.

You have to remember a few things:

        1. The script must have access to the adduser program
           (remember full paths)

        2. The script must have the right privileges (run PHP as root,
           set the adduser program SUID root or (they preferred)
           seperate the program into two layers - unprivileged and
           privileged).


-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/