Bug 1443253 - add user to mock group to how to guide
Summary: add user to mock group to how to guide
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lorax
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-18 21:54 UTC by fulminemizzega
Modified: 2017-04-18 22:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-18 22:18:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description fulminemizzega 2017-04-18 21:54:57 UTC
Description of problem:
I was following the how to here:
https://fedoraproject.org/wiki/Livemedia-creator-_How_to_create_and_use_a_Live_CD
when mock asked for a password none would work (my user does not have a password), so I ran mock with sudo. This led to a failure with livemedia-creator. Looking at the mock manpage I found that
"To use mock, a user should become a member of the mock group", so I added my user to the mock group and everything worked fine.
I think the documentation should say after "dnf install mock" something like
"usermod -a -G mock <user>" or tell the user to add himself to the mock group.

Also here: http://lorax.readthedocs.io/en/latest/livemedia-creator.html#anaconda-image-install-no-virt
N.2 says to set SElinux to permissive, if this is still required, this should be added to the how to.


How reproducible:
Follow the example running every mock command with sudo

Comment 1 Brian Lane 2017-04-18 22:18:41 UTC
Updated the wiki, thanks!


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