Posted by Balazs Wellisch on 12/30/05 05:48
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:ScednZbsacb1NSnenZ2dnUVZ_sCdnZ2d@comcast.com...
> jab3 wrote:
>> So I'm considering a small project that involves online file storage.
>> Let's say I wanted to set up a site that allows people to log-on,
>> create an account, and then have space to upload files. The problem
>> I'm having concerns permissions, basically.
>>
>> 1) How do I automatically create users in Linux from a PHP script
>> running under Apache's uid/gid?
>
> You can't. You need to be running as root.
>>
What about exec( some_script )? Where some_script could be run as root
through sudo? It could be a Perl script or shell script that runs the
appropriate commands to set up the user.
Balazs
Navigation:
[Reply to this message]
|