Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bug#5300: su command does not elevate user privilege to root when run inside term/ansi-term mode

1 view
Skip to first unread message

Praveen A

unread,
Jan 3, 2010, 2:24:47 PM1/3/10
to bug-gn...@gnu.org
Hi,

su command does not a make a normal user root when run inside term
mode. A full terminal emulator is expected to work with su.

Thanks
Praveen
--
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
Join The DRM Elimination Crew Now!
http://fci.wikia.com/wiki/Anti-DRM-Campaign

Glenn Morris

unread,
Jan 7, 2010, 4:30:32 PM1/7/10
to Praveen A, 53...@debbugs.gnu.org
Praveen A wrote:

> su command does not a make a normal user root when run inside term
> mode.

So what does happen then?

emacs -Q -f term
bash RET
bash> su
password RET

works fine for me. So does ssh.


Praveen A

unread,
Jan 11, 2010, 10:52:11 AM1/11/10
to Glenn Morris, 53...@debbugs.gnu.org
2010/1/8 Glenn Morris <r...@gnu.org>:

> Praveen A wrote:
>
>> su command does not a make a normal user root when run inside term
>> mode.
>
> So what does happen then?

It just gives you the normal user shell prompt (both for ssh and su)

pravi@savannah:~$ ssh localhost
pravi@localhost's password:
Linux savannah 2.6.30-2-amd64 #1 SMP Fri Sep 25 22:16:56 UTC 2009 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have mail.
Last login: Mon Jan 11 13:46:53 2010 from localhost
Connection to localhost closed.
pravi@savannah:~$

>
> emacs -Q -f term
> bash RET
> bash> su
> password RET
>
> works fine for me. So does ssh.
>

I'm using emacs 23.1+1-5 from debian testing, it is also failing with
a trunk built emacs too.

It just

Glenn Morris

unread,
Jan 13, 2010, 10:12:22 PM1/13/10
to Praveen A, 53...@debbugs.gnu.org
Praveen A wrote:

> pravi@savannah:~$ ssh localhost
> pravi@localhost's password:
> Linux savannah 2.6.30-2-amd64 #1 SMP Fri Sep 25 22:16:56 UTC 2009 x86_64
>
> The programs included with the Debian GNU/Linux system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> You have mail.
> Last login: Mon Jan 11 13:46:53 2010 from localhost
> Connection to localhost closed.

So, it seems to work fine, but when the shell finishes initializing it
logs out? Is there anything odd going on in your shell configuration
files (bashrc, profile, etc?)


Praveen A

unread,
Jan 14, 2010, 3:57:06 AM1/14/10
to Glenn Morris, 53...@debbugs.gnu.org
2010/1/14 Glenn Morris <r...@gnu.org>:

> So, it seems to work fine, but when the shell finishes initializing it
> logs out? Is there anything odd going on in your shell configuration
> files (bashrc, profile, etc?)
>

All the configurations are default ones. Moreover both su and ssh are
working with gnome-terminal. I tried these commands in trunk compiled
emacs and packaged emacs both on fedora 12 and debian squeeze/testing,
it is failing every where.

I will try if the same problem is there on my colleagues' systems tomorrow.

0 new messages