Date: Tue, 14 May 2002 14:28:51 +0200 From: "Chris J. Mutter" <cjm@terminal.sil.at> To: freebsd-questions@FreeBSD.ORG Subject: su and the ``-c'' option. Message-ID: <200205141228.OAA19282@terminal.sil.at>
next in thread | raw e-mail | index | archive | help
hi, why is the ``-c'' (execute command) option of the ``su'' needed when i want to execute a command as a different user? and why is this option not in the manpage (its only found in the EXAMPLES section of su(1)): su [-] [-Kflm] [-c class] [login [args]] i find it a bit confusing that there is also a ``-c'' for the class. it then says in su(1): If the optional args are provided on the command line, they are passed to the login shell of the target login. so this porobably means that the ``-c command'' is then passed to the login shell which might be i.e. /bin/sh. thus it ends up in: /bin/sh -c command. but why do i needs this? it could also be /bin/sh command, or? regards, cjm -- SILVER SERVER \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\ \\ \ cjm@sil.at, cjm@enemy.org, neo@bsdger.org www.sil.at | www.enemy.org ** PGP-Key-ID: 0xA941452D | "Why are we hiding from the police, dad?" - --------------------------| "Because we use vi, son. They use Emacs". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205141228.OAA19282>