[Bug 1082376] Re: command not found handler logs user out in some cases
Logan Rosen
1082376 at bugs.launchpad.net
Sat Nov 24 02:56:46 UTC 2012
** Package changed: ubuntu => command-not-found (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to command-not-found in Ubuntu.
https://bugs.launchpad.net/bugs/1082376
Title:
command not found handler logs user out in some cases
Status in “command-not-found” package in Ubuntu:
New
Bug description:
Hiho,
Ubuntu 12.04, up to date as of mid-day on Nov 23rd 2012...
Summary: when running an unknown command in the background while one
is "su'd" to another user, the current user is logged out. This is
best shown with an example:
[stephan at host:~]$ sudo su -
[sudo] password for stephan:
root at host:~ # cd /etc/openvpn/clients/xyz/
root at host:/etc/openvpn/clients/xyz # emasc sbeal.conf & # NOTE THE MIS-TYPED emasc AND THE &
[1] 24330
root at host:/etc/openvpn/clients/xyz # logout
# ^^^^ THIS LOGOUT IS EXECUTED BY THE COMMAND-NOT-FOUND HANDLER.
[stephan at host:~]$ No command 'emasc' found, did you mean:
Command 'emacs' from package 'emacs23-lucid' (universe)
Command 'emacs' from package 'e3' (universe)
Command 'emacs' from package 'emacs23-nox' (main)
Command 'emacs' from package 'jove' (universe)
Command 'emacs' from package 'emacs23' (main)
emasc: command not found
[stephan at host:~]$
Curiously, this does NOT happen if the command is run in the
foreground:
[stephan at host:~]$ sudo su -
[sudo] password for stephan:
root at host:~ # cd /etc/openvpn/clients/xyz/
root at host:/etc/openvpn/clients/xyz # emasc sbeal.conf
No command 'emasc' found, did you mean:
Command 'emacs' from package 'emacs23-lucid' (universe)
Command 'emacs' from package 'e3' (universe)
Command 'emacs' from package 'emacs23-nox' (main)
Command 'emacs' from package 'jove' (universe)
Command 'emacs' from package 'emacs23' (main)
emasc: command not found
root at host:/etc/openvpn/clients/xyz #
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1082376/+subscriptions
More information about the foundations-bugs
mailing list