GNU bug report logs -
#6302
24.0.50; Unable to use su in term.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6302 in the body.
You can then email your comments to 6302 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Sat, 29 May 2010 15:54:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 29 May 2010 15:54:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
i am unable to log to root account with su in term or ansi-term.
No problem in eshell and shell, so that is specific to term.
,----
| thierry <at> tux ~ $ su
| Password:
| thierry <at> tux ~ $ echo $UID
| 1000
| thierry <at> tux ~ $ groups
| wheel cron audio cdrom video usb users portage thierry plugdev \
| cdburners shutdown vboxusers games hibernate fuzzyocr
`----
In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9)
of 2010-05-25 on tux
Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-24' '--infodir=/usr/share/info/emacs-24' '--with-crt-dir=/usr/lib' '--with-sound' '--with-x' '--without-gconf' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: C
value of $LC_CTYPE: fr_FR.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: fr_FR.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Dired by name
Minor modes in effect:
global-undo-tree-mode: t
undo-tree-mode: t
minibuffer-depth-indicate-mode: t
auto-image-file-mode: t
shell-dirtrack-mode: t
show-paren-mode: t
display-battery-mode: t
display-time-mode: t
diff-auto-refine-mode: t
savehist-mode: t
desktop-save-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<return> e c h o SPC $ U I D <return> C-d C-d C-x k
<return> M-x r e p o r t <return>
Recent messages:
Loading em-cmpl...done
Loading em-dirs...done
Loading em-glob...done
Loading em-hist...done
Loading em-ls...done
Loading em-prompt...done
Loading em-script...done
Loading em-unix...done
The mark is not set now, so there is no region
Load-path shadows:
/home/thierry/elisp/lua-mode/lua-mode hides /usr/share/emacs/site-lisp/lua-mode/lua-mode
~/elisp/g-client/json hides /usr/share/emacs/24.0.50/lisp/json
/usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/24.0.50/lisp/hex-util
/usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/24.0.50/lisp/sha1
/usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/24.0.50/lisp/md4
/usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/24.0.50/lisp/net/ntlm
/usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/24.0.50/lisp/net/hmac-def
/usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.0.50/lisp/net/sasl-digest
/usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/24.0.50/lisp/net/sasl
/usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.0.50/lisp/net/hmac-md5
/usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.0.50/lisp/net/sasl-cram
/usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.0.50/lisp/net/sasl-ntlm
/home/thierry/elisp/emms/lisp/tq hides /usr/share/emacs/24.0.50/lisp/emacs-lisp/tq
Features:
(shadow gnus-cite gnus-demon gnus-namazu gnus-dired nnshimbun shimbun
luna eword-encode eword-decode std11 mel path-util mime-def mcharset
mcs-20 mcs-e20 pces pces-e20 pces-20 broken pcustom poe gnus-bcklg spam
spam-stat gnus-uu yenc gnus-alias mail-extr gnus-msg emacsbug em-unix
em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl
em-basic esh-opt em-banner em-alias esh-var esh-io esh-cmd esh-ext
esh-proc esh-groups eshell esh-module esh-mode w3m-antenna w3m-rss
w3m-form w3m-cookie w3m-tabmenu w3m-session imenu tabify org-table
vc-rcs conf-mode newcomment xhg-dvc xhg xhg-annotate xhg-mq xhg-log
bzr-core cg-core xdarcs-core xgit-core xhg-core xmtn-minimal tla
smerge-mode dvc-state dvc-config dvc-diff dvc-fileinfo diff dvc-cmenu
dvc-about dvc-version dvc-revlist uniquify align-let server
el-expectations el-mock csv2org iedit eieio zop-to-char netrc wave-list
wave-display wave-client json elscreen-server elscreen-dired
elscreen-w3m mule-util alist pym static apel-ver product elscreen
undo-tree smallurl mm-url xml-weather rectangle-utils windmove sdcv eiv
tv-utils eldoc pcvs pcvs-parse pcvs-info pcvs-defs showtip
init-anything-thierry descbinds-anything anything-ipython ipython
executable anything-grep grep anything-dabbrev-expand dabbrev
shell-history anything-complete anything-show-completion anything-etags
anything-match-plugin etags anything-traverse anything-delicious
anything-mercurial anything-config w3m-bookmark rx anything
firefox-protocol bookmark-firefox-handler bookmark-extensions bookmark
install-elisp find-func mb-depth autodoc ioccur traverselisp thumb-page
moz stumpwm-mode cl-info slime-banner slime-tramp slime-asdf slime-fancy
slime-fontifying-fu slime-package-fu slime-references slime-xref-browser
slime-scratch slime-presentations slime-highlight-edits slime-fuzzy
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
slime-parse slime-repl slime apropos hideshow hyperspec thingatpt
slime-autoloads bbdb-autoloads bbdb-gui bbdb-com bbdb boxquote rect
image-file tramp-imap tramp-gw tramp-fish tramp-smb tramp-cache
tramp-ftp tramp-cmds tramp shell tramp-compat trampver newsticker
newst-treeview tree-widget newst-plainview newst-reader newst-ticker
newst-backend ledger pcomplete esh-arg esh-util extview lpr woman man
assoc two-column shell-command em-term term ehelp electric esh-toggle
em-xtra flymake pdbtrack pycomplete python-mode info-look ansi-color
pymacs no-word regex-tool whitespace htmlfontify text-translator-load
paren battery time dired-tar compile comint dired-extension image-dired
dired-details yaoddmuse skeleton sgml-mode emms-mpd-config
emms-playlist-limit emms-volume emms-volume-amixer emms-i18n
emms-history emms-score emms-stream-info emms-metaplaylist-mode
emms-bookmarks emms-lastfm-client emms-cue emms-mode-line-icon
emms-browser sort emms-playlist-sort emms-last-played emms-player-xine
emms-player-mpd tq emms-playing-time emms-lyrics emms-url
emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo
emms-info-mp3info emms-playlist-mode emms-player-vlc emms-player-mplayer
emms-info emms-streams later-do emms-source-playlist emms-source-file
emms-player-simple emms-setup emms emms-compat winner dvc-init bzr-gnus
tla-gnus xgit-gnus xhg-gnus gnus-art mm-uu mml2015 mm-view smime
password-cache dig dvc-gnus tla-core pp tla-autoconf tla-defs dvc-log vc
vc-dispatcher dvc-unified dvc-tips dired-x dired-aux ffap ediff-merg
ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff
dvc-autoloads dvc-core dvc-lisp dvc-buffers dvc-ui dvc-register
dvc-utils dvc-emacs ewoc dvc-defs dvc-site psvn log-edit ring pcvs-util
add-log diff-mode lisppaste-extension lisppaste xml-rpc url-http tls
url-auth url-gw xml htmlize-hack htmlize muse-colors muse-docbook
muse-texinfo texnfo-upd texinfo muse-latex muse-html muse-xml-common
muse-wiki cus-edit cus-start cus-load muse-publish muse-project
muse-protocols muse-regexps muse muse-nested-tags muse-mode
muse-autoloads org-config-thierry cal-china lunar solar cal-dst
cal-bahai cal-islam cal-hebrew holidays hol-loaddefs vc-hg org-wl
org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs
org-html org-exp org-exp-blocks org-info org-gnus org-docview org-bibtex
org-bbdb org-agenda appt diary-lib diary-loaddefs cal-menu calendar
cal-loaddefs org-annotation-helper url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util url-parse url-vars mailcap
remember org-remember org-datetree org byte-opt bytecomp byte-compile
org-footnote org-src org-list org-faces org-compat org-entities org-macs
noutline outline config-w3m w3m browse-url doc-view jka-compr image-mode
timezone w3m-hist w3m-fb w3m-ems w3m-ccl ccl w3m-favicon w3m-image
w3m-proc w3m-util mime-w3m w3m-load savehist epa-file epa derived epg
epg-config auth-source dired gnus-async nntp gnus-sum nnoo gnus-group
time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec
gnus-int gnus-range message sendmail regexp-opt rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems
nnheader gnus-util mail-utils mm-util mail-prsvr wid-edit info easymenu
usage-memo desktop midnight punycode idna mybest-theme edmacro kmacro
eev-thierry iterator eev-all eev-mini-steps eev-browse-url eev-langs
eev-compose eev-glyphs disp-table eev-insert eev-steps eev-bounded eev
easy-mmode advice help-fns advice-preload cl cl-19 site-gentoo w3m-wget
preview-latex tex-site auto-loads tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev loaddefs button minibuffer faces cus-face files text-properties
overlay md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting font-render-setting gtk x-toolkit x multi-tty emacs)
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Thu, 03 Jun 2010 22:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6302 <at> debbugs.gnu.org (full text, mbox):
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
(I still cannot reproduce it.)
Merged 5300 6302.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 03 Jun 2010 22:47:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Fri, 04 Jun 2010 07:37:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 6302 <at> debbugs.gnu.org (full text, mbox):
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/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Fri, 04 Jun 2010 13:36:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 6302 <at> debbugs.gnu.org (full text, mbox):
> 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.
How 'bout taking the alias out of the question and try
thierry <at> tux ~ $ LC_ALL=C su -l
and
thierry <at> tux ~ $ LC_ALL=C su
and
thierry <at> tux ~ $ su -l
> Without that alias or when running sh instead of bash term work as expected.
What do you mean by "running sh instead of bash"?
Do you mean the shell from which you execute "su" or the shell of the
user to which you're su-ing?
Also, can you M-x trace-function-background RET term-emulate-terminal
RET, reproduce the problem and then show us the *trace-output*?
Stefan
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Fri, 04 Jun 2010 14:58:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 6302 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>> 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.
>
> How 'bout taking the alias out of the question and try
Alias is disabled and i start with a new M-x term:
> thierry <at> tux ~ $ LC_ALL=C su -l
Fail.
> and
> thierry <at> tux ~ $ LC_ALL=C su
Yes it is working.
> and
> thierry <at> tux ~ $ su -l
Fail. (same with --login and -)
So it's clear that come from the -l option of su.
>> Without that alias or when running sh instead of bash term work as expected.
>
> What do you mean by "running sh instead of bash"?
M-x term ==> Run program: /bin/sh
(same doesn't work with su -l)
> Do you mean the shell from which you execute "su" or the shell of the
> user to which you're su-ing?
The first.
> 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'.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Thu, 10 Jun 2010 05:09:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 6302 <at> debbugs.gnu.org (full text, mbox):
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)?
Does it work to su -l to a non-root user?
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?
>> 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.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Thu, 10 Jun 2010 07:21:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 6302 <at> debbugs.gnu.org (full text, mbox):
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
| [01;32mthierry <at> tux[01;34m ~ $[00m "
| 1 <- term-emulate-terminal: t
| ======================================================================
`----
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Thu, 10 Jun 2010 09:10:03 GMT)
Full text and
rfc822 format available.
Message #28 received at 6302 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Does it work to su -l to a non-root user?
From root:
su thierry ==> ok
su -l thierry ==> fail
From $user to root, su work but su -l don't.
--
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Sun, 18 Sep 2011 10:36:03 GMT)
Full text and
rfc822 format available.
Message #31 received at 6302 <at> debbugs.gnu.org (full text, mbox):
Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
> Alias is disabled and i start with a new M-x term:
>
>> thierry <at> tux ~ $ LC_ALL=C su -l
> Fail.
I'm unable to reproduce this in the current bzr Emacs. Do you still see
this problem?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#6302
; Package
emacs
.
(Sun, 18 Sep 2011 17:59:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 6302 <at> debbugs.gnu.org (full text, mbox):
Lars Magne Ingebrigtsen <larsi <at> gnus.org> writes:
> Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
>
>> Alias is disabled and i start with a new M-x term:
>>
>>> thierry <at> tux ~ $ LC_ALL=C su -l
>> Fail.
>
> I'm unable to reproduce this in the current bzr Emacs. Do you still see
> this problem?
IIRC this have been fixed long time ago now, even in emacs-23 branch.
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
bug closed, send any further explanations to
6302 <at> debbugs.gnu.org and Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 18 Sep 2011 18:43:12 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 17 Oct 2011 11:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.