Re: how to run django with fastcgi, but not run as user "root" on linux

2009-11-19 Thread Carl Zmola
OOPS, sudo -u nobody (rest of the command line) but you have to be set up with appropriate privledges. check sudo -l to see what commands you are allowed to sudo. Carl Carl Zmola wrote: > su -u nobody (rest of the command line) works for me. > > Fm wrote: > >> I know how to solve it . >>

Re: how to run django with fastcgi, but not run as user "root" on linux

2009-11-19 Thread Carl Zmola
su -u nobody (rest of the command line) works for me. Fm wrote: > I know how to solve it . > su nobody -c cmdline -s /bin/sh > Thanks > > On Nov 19, 11:12 am, Fm wrote: > >> Hi, >> I'm am green-hand to linux. >> When I use /usr/bin/su nobody -c /usr/local/bin/python

Re: how to run django with fastcgi, but not run as user "root" on linux

2009-11-19 Thread Fm
I know how to solve it . su nobody -c cmdline -s /bin/sh Thanks On Nov 19, 11:12 am, Fm wrote: > Hi, > I'm am green-hand to linux. > When I use /usr/bin/su nobody -c /usr/local/bin/python /home/admin/cc/ > manage.py runfcgi > method=threaded host=127.0.0.1 port=12345 > it say

Re: how to run django with fastcgi, but not run as user "root" on linux

2009-11-18 Thread Fm
Hi, I'm am green-hand to linux. When I use /usr/bin/su nobody -c /usr/local/bin/python /home/admin/cc/ manage.py runfcgi method=threaded host=127.0.0.1 port=12345 it say "This account is currently not available." Because nobody's shell is /sbin/nologin,I could not use su? what is the normal way

Re: how to run django with fastcgi, but not run as user "root" on linux

2009-11-18 Thread Tom Evans
On Wed, Nov 18, 2009 at 8:25 AM, Fm wrote: > Hi all, > I have write a script in /etc/rc.d/init.d so that Django can start > with my server. > It may look like > start () { >echo -n $"Starting $prog: " > /usr/local/bin/python /home/admin/cc/manage.py runfcgi

how to run django with fastcgi, but not run as user "root" on linux

2009-11-18 Thread Fm
Hi all, I have write a script in /etc/rc.d/init.d so that Django can start with my server. It may look like start () { echo -n $"Starting $prog: " /usr/local/bin/python /home/admin/cc/manage.py runfcgi method=threaded host=127.0.0.1 port=12345 } Then I can see ps aux|grep manage root