-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 27 May 2003 12:57:50 -0500, Eric Chevalier wrote:
> I've just noticed that the su command in RedHat 9 does not seem to
> process the shell option the same way as earlier RH Linux versions.
> Specifically, the presence of the shell ("-s") argument seems to cause
> the User-ID to be ignored.
>
> For example, in Red Hat 8:
>
> [EMAIL PROTECTED] root]# su - news
> -sh-2.05b$ whoami
> news
> -sh-2.05b$ exit
> logout
> [EMAIL PROTECTED] root]# su -s /bin/bash - news
> -bash-2.05b$ whoami
> news
> -bash-2.05b$ exit
> logout
> [EMAIL PROTECTED] root]# whoami
> root
> [EMAIL PROTECTED] root]#
>
> Notice that both invocations of su shown above cause the shell to be run
> as user "news".
>
> On the other hand, here's what's happening on my RH9 system:
>
> [EMAIL PROTECTED] root]# su - news
> -sh-2.05b$ whoami
> news
> -sh-2.05b$ exit
> logout
> [EMAIL PROTECTED] root]# su -s /bin/bash - news
> [EMAIL PROTECTED] root]# whoami
> root
> [EMAIL PROTECTED] root]# exit
> exit
> [EMAIL PROTECTED] root]# whoami
> root
> [EMAIL PROTECTED] root]#
>
> In this case, adding the -s argument to su seems to cause the user-id
> "news" to be ignored.
Must be more involved at your end. How often have you tried it?
# su -s /bin/bash - news
- -bash-2.05b$ whoami
news
- -bash-2.05b$ exit
logout
# su -s /bin/bash -l news
- -bash-2.05b$ whoami
news
- -bash-2.05b$ exit
logout
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+07HS0iMVcrivHFQRAmLqAJ41VqVzGLqr76A/NNVlZQWfh12mJwCff0u8
5Zsk1Pv7JHxLODj4eWWQFcQ=
=xrfj
-----END PGP SIGNATURE-----
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list