ssh + su bug???

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I halted my PC with the command ssh PC “su - -c halt”, I use ssh
key to access the PC so it ask for the root password, but echo it on the
shell

[vampird@Sharwyn]:~$ ssh shinobu “su - -c halt”
Password: ROOTPASSWD
[vampird@Sharwyn]:~$


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkwUTJsACgkQJQ+0ABWtaVmZiQCggGsNcDKcVZP05+c6VgzzH+tM
jFIAnjS3vf+EB+4bGpRTJcC6Yu4ZZqRe
=jrc1
-----END PGP SIGNATURE-----

On Sun, 13 Jun 2010 03:09:35 +0000, VampirD wrote:

> Hi, I halted my PC with the command ssh PC “su - -c halt”, I use ssh
> key to access the PC so it ask for the root password, but echo it on the
> shell

I can confirm that this is apparently a bug - I’d suggest opening an
issue in Bugzilla for it so it can be tracked and fixed.

Jim


Jim Henderson
openSUSE Forums Administrator

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I’m not sure this is a bug because of how the terminal works. It is also
easily worked-around by adding a ‘-t’ to the SSH command:

ssh -t PC ‘su - -c halt’

Another option may be to let your user run this command via sudo
(/etc/sudoers for configuration) without a password at all but in any case
the ‘-t’ should help with the password echoing to the screen. See the ssh
command’s manpage for details. This parameter is also needed to run some
other applications such as ‘top’ in this same non-interactive mode.

Good luck.

On 06/12/2010 11:32 PM, Jim Henderson wrote:
> On Sun, 13 Jun 2010 03:09:35 +0000, VampirD wrote:
>
>> Hi, I halted my PC with the command ssh PC “su - -c halt”, I use ssh
>> key to access the PC so it ask for the root password, but echo it on the
>> shell
>
> I can confirm that this is apparently a bug - I’d suggest opening an
> issue in Bugzilla for it so it can be tracked and fixed.
>
> Jim
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMFHUQAAoJEF+XTK08PnB5//cP/iMSBATVJG/QuNtZ6G+4m7CN
XCnvz5HVaMmfkeW6FEBfsW70vuT2XK4hxqAcE/A3gbUgd3WyL56ZzZ/ZmjtqEeOI
xVuisqwUTLl880r8ld7f8/fCel/MjpYdg1QLd/SBqyA7qwos6AHzYmcmqCB5w+Zy
TZ5jZA+ZoN+IBwaLet6QriwLsfWkY0mlMcgLiKE1Eg7up7k8PVNtW4Nd1nX8nQ1g
4cSDkYjH7XsDhWP+2bm1+Q2KubtoCUBdEaqBhFERtLl/0rwx0BrBjQafkp21ewu2
dZQdXI/i3yom+VG8Xp5SyfBE4oiJ0/7ail+NfCajJTF6cnZH0iad+2Zdk3EpIiff
oXqP/01+DYPbVPhnkDDP2sOp9vP1tR6Tg5HflLl1fQaLyjaoCcniKVuJzvLsRB2b
KVHOYdSfmViLh6xARBokgR9JgxBa1xgaPaUZ8Z47ey5pQmLyvsuuwBOAbzLit8oz
rTMRUatqv6QeA6p1/7afVcpCkDvj3R6c0BjfyLKrfEo69SPYqqf7GIOXzMDszdXu
ylzY+IucgOUdsxZylOPSCs7yT+H6RfejHyED/tVPtGVYo2gsq/RaRd9nlCmbU6rA
B5Y3S9sZRbj4c1JMR3qMPR5Ty4kHD1r/tpY/fS0wT/stb12/q4/z4JIhEjhUqlk9
ziFJgJwu4QdTZ0e5EI8z
=eo3L
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

but I see as a bug on openssh that if I run one app remotely the program
output isn’t the same as if I run it localy


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkwVOFUACgkQJQ+0ABWtaVneUACfVLf49+C3iqxhW2GnYZytSCTj
SMkAoNiFUgRud0XXvP/UPkllq4O6fYS7
=XVw2
-----END PGP SIGNATURE-----