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: Stefan Monnier <monnier <at> iro.umontreal.ca>, 6302 <at> debbugs.gnu.org
Subject: bug#6302: 24.0.50; Unable to use su in term.
Date: Thu, 10 Jun 2010 09:17:37 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Thierry Volpiatto wrote:
>
>>>    thierry <at> tux ~ $ su -l
>> Fail. (same with --login and -)
>>
>> So it's clear that come from the -l option of su.
>
> Is there anything odd in root's ~/.bash_profile (or whatever the
> appropriate config file for root login shells is)?
I have no .bash* files in /root.

> Does it work to su -l to a non-root user?
I have not such user, only me and root, so i can't test.
I could create a new user just for test purpose, but i think it's not
useful, if it was a problem related to general config of my system,
other shell would not work, but it is not the case, M-x shell and eshell
can su ==> root without problems.

> One with no shell config files?
>
> Can you put some debug statements in the shell config files to find
> out if they get sourced at all? If so, where do things go wrong?
Yes, .bashrc and .bash_profile are sourced.

>>> Also, can you M-x trace-function-background RET term-emulate-terminal
>>> RET, reproduce the problem and then show us the *trace-output*?
>> I can't find function `term-emulate-terminal'.
>
> ? It's in term.el.
Ok i have it now.

,----
| ======================================================================
| 1 -> term-emulate-terminal: proc=#<process *ansi-term*> str="Password: "
| 1 <- term-emulate-terminal: t
| ======================================================================
| 1 -> term-emulate-terminal: proc=#<process *ansi-term*> str="
| "
| 1 <- term-emulate-terminal: t
| ======================================================================
| 1 -> term-emulate-terminal: proc=#<process *ansi-term*> str="//home/thierry
| thierry <at> tux ~ $ "
| 1 <- term-emulate-terminal: t
| ======================================================================
`----


-- 
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.