You are here: Re: Users/permissions/files - LAMP « PHP Programming Language « IT news, forums, messages
Re: Users/permissions/files - LAMP

Posted by jab3 on 12/30/05 06:16

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.
>

Yeah, as I told Jerry, I've done this before with a C program I wrote.
Was wondering if there was a better way as far as this option is
concerned. It's really the managing of the user's files when they log
onto the website that I've got problems figuring out. Uploading and
moving to appropriate directory (e.g., /home/'user'/files), then
browsing them for downloading again, etc.


Thanks for help,
jab3

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация