Description of problem: When passing a username to id, it prints the message id: cannot print security context when user specified and exits with status 1. Version-Release number of selected component (if applicable): coreutils-5.97-15.fc7 How reproducible: Always Steps to Reproduce: 1. run: id root 2. 3. Actual results: id: cannot print security context when user specified Expected results: No error Additional info:
Hi, Running id with both a user name and -Z doesn't make sense. And that's why id now fails -- this recent change addressed BZ#211089. The problem is not with coreutils, but rather with the code that invokes "id" that way.
I am not passing -Z to id. The problem occurs with a straight $ id root and with $ id -g root There is no -Z being passed on the command-line.
Oh! That makes all the difference. Obviously a bug. I should have tried your "How to reproduce" command.
Created attachment 142084 [details] fix for the above FYI, here's the obvious (albeit untested) patch.
Sorry!