What shell is news authorized in your /etc/passwd file, if any?
If the passwd file has /sbin/nologin or /bin/false, then it is being denied login at your /etc/passwd file.
This was a "gotcha" that I ran into some months ago on my SuSE 7.1 servers.
HTH, Gregg
At 08:43 PM 5/27/2003 +0200, you wrote:
-----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.
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list