[nSLUG] Startup scripts

Dop Ganger nslug at fop.ns.ca
Sun Jan 7 06:31:48 AST 2007


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.

!DSPAM:45a0cc20243881378514564!




More information about the nSLUG mailing list