[Bug 1414959] Re: sudo script from user to admin w/sudo account provides root prompt
Marc Deslauriers
marc.deslauriers at canonical.com
Tue Jan 27 12:26:25 UTC 2015
It's perfectly normal for the "script" command to give you an
interactive shell prompt, that's what it was designed for.
This behaviour is perfectly normal, and works as expected.
** Changed in: shadow (Ubuntu)
Status: New => Invalid
** Information type changed from Private Security to Public Security
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shadow in Ubuntu.
https://bugs.launchpad.net/bugs/1414959
Title:
sudo script from user to admin w/sudo account provides root prompt
Status in shadow package in Ubuntu:
Invalid
Bug description:
Script started on Tue 27 Jan 2015 01:29:17 AM PST
^[]0;b21an at ai7: ~^Gb21an at ai7:~$ ^M
^[]0;b21an at ai7: ~^Gb21an at ai7:~$ whoami^M
b21an^M
^[]0;b21an at ai7: ~^Gb21an at ai7:~$ ^M
^[]0;b21an at ai7: ~^Gb21an at ai7:~$ su admin^M
Password: ^M
^[]0;admin at ai7: /home/b21an^Gadmin at ai7:/home/b21an$ cd^M
^[]0;admin at ai7: ~^Gadmin at ai7:~$ ^M
^[]0;admin at ai7: ~^Gadmin at ai7:~$ whoami^M
admin^M
^[]0;admin at ai7: ~^Gadmin at ai7:~$ sudo script another ^H^[[K=^H^[[K-typescript-`sh ~/bin/date.sh`^M
[sudo] password for admin: ^M
Script started, file is another-typescript-20150127-1422351055^M
^[]0;root at ai7: ~^Groot at ai7:~# ^M
^[]0;root at ai7: ~^Groot at ai7:~# whoami^M
root^M
^[]0;root at ai7: ~^Groot at ai7:~# exit^M
exit^M
Script done, file is another-typescript-20150127-1422351055^M
exit^M
Script done on Tue 27 Jan 2015 01:31:03 AM PST^M
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: login 1:4.1.5.1-1ubuntu9
ProcVersionSignature: Ubuntu 3.2.0-68.102-generic 3.2.62
Uname: Linux 3.2.0-68-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
Date: Tue Jan 27 01:24:36 2015
SourcePackage: shadow
UpgradeStatus: Upgraded to trusty on 2014-11-01 (87 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1414959/+subscriptions
More information about the foundations-bugs
mailing list