Bug 1384568

Summary: gnome-initial-setup will create a new user
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: gnome-initial-setupAssignee: Rui Matos <tiagomatos>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: jstpierr, mclasen, tiagomatos
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 15:24:04 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 Zbigniew Jędrzejewski-Szmek 2016-10-13 14:46:56 UTC
Description of problem:
As part of the wayland test day, I run /usr/libexec/gnome-initial-setup under the user liveuser. It allowed me to create a new user. This is really surprising. If it allowed me to adjust my own user data instead, that'd be understandable.

$ getent passwd foobar
foobar:x:1001:1001:Foo Bar:/home/foobar:/bin/bash

Version-Release number of selected component (if applicable):
gnome-initial-setup-3.22.0-1.fc25.x86_64

Comment 1 Matthias Clasen 2016-10-13 16:58:59 UTC
If you run it manually, you are the one who decides what the tool does.

Try gnome-initial-setup --existing-user

Comment 2 Zbigniew Jędrzejewski-Szmek 2016-10-13 17:13:37 UTC
g-i-s has been around for a while, and people know they can run it to enable/disable privacy settings and such. And g-i-s currently says "Tell us more about yourself". At least, it seems that this choice should be reversed: anaconda/first-boot/whatever-special-thing should use some switch (--create-user), and the default thing should be to do nothing surprising.

Comment 3 Matthias Clasen 2016-10-14 15:24:04 UTC
it is in libexec for a reason. This is not a tool you are supposed to run by yourself.