Re: Users/permissions/files - LAMP
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 10:11:40 -0500
Balazs Wellisch wrote:
"Jerry Stuckle" <jstucklex@xxxxxxxxxxxxx> wrote in message news:ScednZbsacb1NSnenZ2dnUVZ_sCdnZ2d@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxx ================== .
- References:
- Users/permissions/files - LAMP
- From: jab3
- Re: Users/permissions/files - LAMP
- From: Jerry Stuckle
- Re: Users/permissions/files - LAMP
- From: Balazs Wellisch
- Users/permissions/files - LAMP
- Prev by Date: Re: Listing objects
- Next by Date: Re: _COOKIE[] unique?
- Previous by thread: Re: Users/permissions/files - LAMP
- Next by thread: Re: Users/permissions/files - LAMP
- Index(es):
Relevant Pages
|