[nSLUG] Startup scripts
dapayne12 at gmail.com
Sun Jan 7 13:21:35 AST 2007
Ok, that could be it, but I find it strange that the script works when
I log in as root and run the startup script myself. Or does it
default to the shell that I am logged into where as when the startup
script is run at startup there would be no shell?
On 1/7/07, Dop Ganger <nslug at fop.ns.ca> wrote:
> On Sat, 6 Jan 2007, David Payne wrote:
> > The user tsd does have a non-executable shell, /bin/false to be exact.
> That's the problem, you're using -c with a non-executable shell. From the
> man page for su:
> "Additional arguments may be provided after the username, in which case
> they are supplied to the user's login shell. In particular, an argument of
> -c will cause the next argument to be treated as a command by most command
> interpreters. The command will be executed by the shell specified in
> /etc/passwd for the target user."
> The command "su tsd -m -c ./teamspeak2-server_startupscript $1" means it's
> trying to run /bin/false ./teamspeak2-server_startupscript, and /bin/false
> simply returns a failure.
> Cheers... Dop.
> nSLUG mailing list
> nSLUG at nslug.ns.ca
More information about the nSLUG