[EMAIL PROTECTED] wrote:
> Richard,
>
> I'm at work at the moment so can't reply on list.  Shadow's 'su' is
> documented to support the '-c' parameter, at least in man/su/su.1.xml.
> I'm pretty certain I've used 'su -c' before now on my LFS box, and we've
> used shadow's 'su' for as long as I can remember.  Obviously I can't be
> 100% until I get back home and check, though that'll be some time
> tomorrow as I'm off out to watch the footy tonight.  What error message
> do you get when you try to use the '-c' parameter?
>
> Regards,
>
> Matt.
>

Matt,

I rebuilt shadow-4.0.14 using the lfs udev-branch instructions and this
version reprots as follows:

su: invalid option -- c
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

I wonder if it's the version, I looked at the changelog and saw nothing
to indicate this.  Man su suggests that the error message is right and
this version doesn't support -c.

I'll do some more investigation later.

R.

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

Reply via email to