Bug 872787

Summary: su: COMMAND not specified.
Product: [Fedora] Fedora Reporter: Pete Zaitcev <zaitcev>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: alekcejk, bruno, eblake, jonathan, kzak, mluscon, shawn.starr
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-16 12:23:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pete Zaitcev 2012-11-03 04:44:18 UTC
Description of problem:

$ su
su: COMMAND not specified.
$ 

Version-Release number of selected component (if applicable):

util-linux-2.22.1-3.fc19.x86_64

How reproducible:

synchronous

Steps to Reproduce:
1. su
  
Actual results:

error

Expected results:

root shell

Additional info:

Regression in 2.22.1-2 or -3, both pushed on the same day.

Karel discussed some kind of compatibility on the mailing list a month
ago, so the "upstream" may have some fixes. However, Rawhide is broken
as described above.

Comment 1 Bruno Wolff III 2012-11-03 14:10:01 UTC
Note you can work around this by using 'su root'.
The man page still says the argument is optional, so I am guessing that this is likely a bug rather than a deliberate change.

Comment 2 Shawn Starr 2012-11-06 01:24:19 UTC
This is util-linux su not GNU coreutils su, unless one wants to change to util-linux's su command (why do they even bother when coreutils has had su for so long)?

Comment 3 Pete Zaitcev 2012-11-06 01:40:59 UTC
This is how it looks at the affected Rawhide system:

[zaitcev@kvm-rei ~]$ which su
/usr/bin/su
[zaitcev@kvm-rei ~]$ rpm -qf /usr/bin/su
util-linux-2.22.1-3.fc19.x86_64
[zaitcev@kvm-rei ~]$ rpm -ql coreutils | grep bin/su
/usr/bin/sum
[zaitcev@kvm-rei ~]$ 

It appears that coreutils RPM does not provide su(1), but util-linux does.

Comment 4 Shawn Starr 2012-11-06 01:52:35 UTC
http://lists.gnu.org/archive/html/coreutils/2012-05/msg00101.html

Its been removed... but, this would have been tested beforehand?

Comment 5 Pete Zaitcev 2012-11-06 02:36:23 UTC
Well, I trust Jim and Karel to consider the implications, and it's not like
I cannot type "su root" from now on. I only wanted this issue to be registered.
Maybe it's easy to fix.

Comment 6 Karel Zak 2012-11-07 14:24:17 UTC
Thanks for your report. It's stupid bug in the runuser patch. Fixed by upstream commit 360e088738aa792bf6c52e777d64b5163b45362a.

Fedora package will be updated ASAP.

Comment 7 Pete Zaitcev 2012-11-19 19:02:56 UTC
Come on, you could've let me verify and close :-)
Fixed in util-linux-2.22.1-4.fc19.