From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 6302@debbugs.gnu.org
Subject: bug#6302: 24.0.50; Unable to use su in term.
Date: Fri, 04 Jun 2010 09:33:23 +0200 [thread overview]
Message-ID: <87aarbb6bg.fsf@tux.homenetwork> (raw)
In-Reply-To: <1taarbd9av.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 03 Jun 2010 18:46:00 -0400")
Glenn Morris <rgm@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@tux ~ $ echo $UID
| 1000
| thierry@tux ~ $ su
| Password:
| thierry@tux ~ $ echo $UID
| 1000
`----
2) Running term without alias:
,----
| thierry@tux ~ $ echo $UID
| 1000
| thierry@tux ~ $ su
| Mot de passe :
| tux thierry # echo $UID
| 0
`----
3) Running Emacs shell with the alias (M-x shell):
,----
| thierry@tux ~ $ echo $UID
| 1000
| thierry@tux ~ $ su
| Password:
| tux ~ # echo $UID
| 0
`----
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
next prev parent reply other threads:[~2010-06-04 7:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-29 5:24 bug#6302: 24.0.50; Unable to use su in term Thierry Volpiatto
2010-06-03 22:46 ` Glenn Morris
2010-06-04 7:33 ` Thierry Volpiatto [this message]
2010-06-04 13:35 ` Stefan Monnier
2010-06-04 14:53 ` Thierry Volpiatto
2010-06-10 5:08 ` Glenn Morris
2010-06-10 7:17 ` Thierry Volpiatto
2010-06-10 9:05 ` Thierry Volpiatto
2011-09-18 10:20 ` bug#5300: " Lars Magne Ingebrigtsen
2011-09-18 17:53 ` Thierry Volpiatto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aarbb6bg.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--cc=6302@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.