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 <thefm...@gmail.com> 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 "This account is currently not available." >> >> Because nobody's shell is /sbin/nologin,I could not use su? >> >> what is the normal way of RC system provided to set the user to run? >> >> Thanks a lot >> Fm >> >> On Nov 18, 7:37 pm, Tom Evans <tevans...@googlemail.com> wrote: >> >> >> >> >>> On Wed, Nov 18, 2009 at 8:25 AM, Fm <thefm...@gmail.com> 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 method=threaded >>>> host=127.0.0.1 port=12345 >>>> } >>>> >>> /usr/bin/su nobody -c /usr/local/bin/python /home/admin/cc/manage.py runfcgi >>> method=threaded host=127.0.0.1 port=12345 >>> >>> I'd be surprised if your RC system didn't provide a cleaner way of setting >>> the user to run as though. >>> >>> Cheers >>> >>> Tom >>> > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > >
-- Carl Zmola 301-562-1900 x315 czm...@woti.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.