Bug 1377264

Summary: Default User not added to sudoers file after installing Fedora 24 LXDE
Product: [Fedora] Fedora Reporter: Damon Harris <TheDcoder>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 24CC: anaconda-maint-list, dkopecek, g.kaviyarasu, jonathan, kzak, mkolman, rsroka, TheDcoder, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-28 08:28:36 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:
Attachments:
Description Flags
Screenshot of the "Actual Result" none

Description Damon Harris 2016-09-19 10:44:03 UTC
Created attachment 1202427 [details]
Screenshot of the "Actual Result"

Description of problem:
The user created via the installer's (anaconda's) screen (while the installation is in progress) is not being added to the sudo group or the sudoers file after the completion of the installation.

How reproducible:
Always. 

Steps to Reproduce:
1. Boot Fedora 24 LXDE (Spin) edition in a computer.
2. Start the installation process in Fedora into your computer.
3. While installing create an user using the option provided in the install screen, make sure that the "Make this user Administrator" checkbox is unchecked.
4. Set a root password.
5. Wait for the installation to complete.
6. Reboot into the freshly installed OS
7. Open terminal and run this command (without quotes): "sudo echo foobar"

Actual results:
"<user> is not in the sudoers file. This incident will be reported." as the output to the command. NOTE: <user> is a place holder for the username of the User created during Step 3.

Expected results:
"foobar" as the output to the command.

Additional info:
This test was done in a Virtual Machine created in Virtual Box.

Comment 1 Daniel Kopeček 2016-09-19 12:19:02 UTC
Could you please verify, that <user> is a member of the wheel group? The installer should add users that should have "Administrator" privileges to the wheel group.

You can use the id command to inspect group membership. Alternatively, you can use "getent group wheel" to list only member of the wheel group.

Comment 2 Damon Harris 2016-09-19 12:25:27 UTC
Hello, Sorry but I am new here on bugzilla, I see that I have been issued a "needinfo". I have no clue about what should I clarify...

Comment 3 Daniel Kopeček 2016-09-19 12:27:22 UTC
Sorry, I marked my comment as private by mistake. See comment #1.

Comment 4 Damon Harris 2016-09-19 12:31:53 UTC
(In reply to Daniel Kopeček from comment #3)
> Sorry, I marked my comment as private by mistake. See comment #1.

Ah, no problem :)

I just ran the command "getent group wheel" and I got this as output: "wheel:x:10:". Looks like I am not in the wheel group!

Comment 5 Daniel Kopeček 2016-09-19 12:39:47 UTC
Ok, then you should reassign this bug to a the LXDE installer component (not sure about the correct package name) as it probably failed to setup the user correctly (it did not add him to the wheel group).

Comment 6 Damon Harris 2016-09-19 12:41:24 UTC
Isn't it anaconda?

Comment 7 Damon Harris 2016-09-28 08:28:36 UTC
I think I made a major mistake here... In the 3rd step for reproducing the issue, I told to uncheck the administrator box. At the time of reporting, I was not aware but I think this is expected behaviour, if the user is not an administrator, he should not get added to the wheel group!

Sorry again :(