Bug 872787 - su: COMMAND not specified.
Summary: su: COMMAND not specified.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-03 04:44 UTC by Pete Zaitcev
Modified: 2012-11-19 19:02 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-16 12:23:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.