GNU bug report logs - #6302
24.0.50; Unable to use su in term.

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Sat, 29 May 2010 15:54:01 UTC

Severity: normal

Merged with 5300

Found in version 24.0.50

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6302 <at> debbugs.gnu.org
Subject: bug#6302: 24.0.50; Unable to use su in term.
Date: Fri, 04 Jun 2010 09:33:23 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> merge 5300 6302
> stop
>
> Thierry Volpiatto wrote:
>
>> i am unable to log to root account with su in term or ansi-term.
>
> Sounds like it might be the same issue as
>
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5300

Yes it is the same

> (I still cannot reproduce it.)

I found what is not working.

I use an alias in my .bashrc to force emacs shell using the word Password
as prompt for su command:

,----
| alias su="LC_ALL=C su -l"
`----

Emacs shell support that but term doesn't.
Without that alias or when running sh instead of bash term work as expected.

1) Running term with the alias:

,----
| thierry <at> tux ~ $ echo $UID
| 1000
| thierry <at> tux ~ $ su
| Password: 
| thierry <at> tux ~ $ echo $UID
| 1000
`----

2) Running term without alias:

,----
| thierry <at> tux ~ $ echo $UID
| 1000
| thierry <at> tux ~ $ su
| Mot de passe : 
| tux thierry # echo $UID
| 0
`----

3) Running Emacs shell with the alias (M-x shell):

,----
| thierry <at> tux ~ $ echo $UID
| 1000
| thierry <at> tux ~ $ su
| Password: 
| tux ~ # echo $UID
| 0
`----


-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/




This bug report was last modified 13 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.