Root users shell == no existant shell /bin/bash
Simon L. Nielsen
simon at FreeBSD.org
Thu Jul 8 12:52:28 PDT 2004
[Please don't top post...]
On 2004.07.08 12:55:19 -0300, Fernando Schapachnik wrote:
> En un mensaje anterior, Brandon Grace escribió:
> > For some reason su -c relates to "class" not "command" as in linux. I know
> > about the booting into single user mode also. This happends to be the
> > primary dns server and our secondary doesn't have the capacity to handle all
> > the queries. Any other suggestions?
>
> Looks like a bug in the man page:
>
> su - root -c id
> Password: ********
> uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator),
> 20(staff), 31(guest)
No the manual page is correct; what's happening here is that su
handles the "- root" arguments, and "-c id" is being passed to root's
login shell where -c tells the shell to run the rest of the arguments
as run commands. That is, at least the behavior of -c both for sh and
tcsh.
--
Simon L. Nielsen
FreeBSD Documentation Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20040708/0eab962a/attachment.bin
More information about the freebsd-security
mailing list