file owner id

Tom B. sbabbitt at commspeed.net
Tue Aug 10 00:49:28 CEST 2004


"Ajay" <abra9823 at mail.usyd.edu.au> wrote in message
news:mailman.1380.1092042651.5135.python-list at python.org...
> hi!
>
> i have an application that allows admin users to create template files,
> which are stored on the server.
> currently the file are created with the owner "nobody"
> is it possibly to change the owner to be the same as the owner of the web
> account?
> if yes, are there any security risks with doing so - the script changes to
> the web account's owner, creates the file and then changes back.
>
> thanks
>
> cheers
>
> --
> Ajay Brar,
>
not sure what operating system your on but if your worried about security
you could create some sort of alias dictionary,

ailiasdict = {'nobody':'cfcgf1234','sombodyimportant':'pi3.14159'}

then encrypt it and store it to disk.

you then create the file with the owner ailiasdict["nobody"].

Tom





More information about the Python-list mailing list