[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Shell Tools [ADDUSER]
- Subject: Re: [cobalt-users] Shell Tools [ADDUSER]
- From: jens@xxxxxxxxxxxxxxxxxxxx (Jens Kristian Søgaard)
- Date: Fri Nov 17 17:20:04 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"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/