Dan wrote:
On 9/4/06, Brandon Peirce <brandon_peirce at hotmail.com> wrote:
>
> One _advantage_ of the coreutils version is that is implements a -c switch
> which the shadow version doesn't.  (More about -c later.)

The shadow version implements -c to pass a command. su would be pretty
crippled without it.

I certainly agree.  Having su -c is essential!


[06:59 AM dan at silky] su -h
Usage: su [options] [login]

Options:
  -c, --command COMMAND         pass COMMAND to the invoked shell
  -h, --help                    display this help message and exit
  -, -l, --login                make the shell a login shell
  -m, -p,
--preserve-environment do not reset environment variables, and keep
                                the same shell
  -s, --shell SHELL             use SHELL instead of the default in passwd
[06:59 AM dan at silky] paco -q `which su`
/bin/su:        shadow-4.0.15


Well, here's my output:
---
22:04 bash$ su-shadow -h
Usage: su [options] [login]

Options:
 -h, --help                    display this help message and exit
 -, -l, --login                make the shell a login shell
 -m, -p,
 --preserve-environment        do not reset environment variables, and keep
                               the same shell
 -s, --shell SHELL             use SHELL instead of the default in passwd
---

Problem is I'm still using 4.0.14 :-(

Extract from NEWS file of a more recent shadow tarball:
---
shadow-4.0.14 -> shadow-4.0.15
[...]
- su: added handle -c,--command option for GNU su compliance (merge
 437_su_-c_option Debian patch),
---

Brandon.


--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to