Re: Users/permissions/files - LAMP
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Users/permissions/files - LAMP

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Fri Dec 30 2005 - 16:11:40 CET

Balazs Wellisch wrote:
> "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
>
>

That's one way to do it.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Tue Jan 3 03:50:25 2006