Bug 816628

Summary: SystemError: could not open configuration file `/etc/default/useradd': Permission denied
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: firstbootAssignee: Martin Gracik <mgracik>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: bcl, dmach, mgracik, ohudlick
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:3cb81d0a2c04855939928fd64f01e648e1b08368d5fb7d6a642647b07bc348ec
Fixed In Version: firstboot-17.3-1.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-19 07:12:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Nowak 2012-04-26 14:33:44 UTC
libreport version: 2.0.10
cmdline:        /usr/bin/python  /usr/sbin/firstboot
executable:     /usr/sbin/firstboot
exnFileName:    /tmp/firstboot-tb-CFvTzM
hashmarkername: firstboot
kernel:         3.3.2-8.fc17.x86_64
other involved packages: 
product:        anaconda
release:        Fedora release 17 (Beefly Miracle)
time:           Thu 26 Apr 2012 04:23:56 PM CEST
version:        bluesky

description:
:The following was filed automatically by firstboot:
:firstboot 17.2 exception report
:Traceback (most recent call last):
:  File "/usr/sbin/firstboot", line 118, in <module>
:    reconfig=opts.reconfig)
:  File "/usr/lib/python2.7/site-packages/firstboot/loader.py", line 78, in load_modules
:    modobj = clsobj()
:  File "/usr/share/firstboot/modules/create_user.py", line 53, in __init__
:    self.admin = libuser.admin()
:SystemError: could not open configuration file `/etc/default/useradd': Permission denied

environ:
:GNOME_DESKTOP_SESSION_ID=this-is-deprecated
:GJS_DEBUG_OUTPUT=stderr
:LESSOPEN=||/usr/bin/lesspipe.sh %s
:QT_IM_MODULE=xim
:LOGNAME=newman
:USER=newman
:GNOME_KEYRING_CONTROL=/run/user/newman/keyring-gYyOxk
:XDG_VTNR=1
:PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/newman/.local/bin:/home/newman/bin
:WINDOWPATH=1
:LANG=en_US.UTF-8
:TERM=xterm
:SHELL=/bin/bash
:XDG_SESSION_COOKIE=c03bc72e0463ecc13950733400000010-1335445580.716462-593345281
:SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1028,unix/unix:/tmp/.ICE-unix/1028
:SHLVL=2
:HISTSIZE=1000
:WINDOWID=35651589
:IMSETTINGS_INTEGRATE_DESKTOP=yes
:GPG_AGENT_INFO=/run/user/newman/keyring-gYyOxk/gpg:0:1
:HOME=/home/newman
:USERNAME=newman
:IMSETTINGS_MODULE=none
:XDG_RUNTIME_DIR=/run/user/newman
:SSH_AUTH_SOCK=/run/user/newman/keyring-gYyOxk/ssh
:GDMSESSION=gnome
:XMODIFIERS=@im=none
:XDG_SESSION_ID=2
:DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XkzKGbQRad,guid=fa82853c1dfd6a43d883e2a80000003e
:_=/usr/sbin/firstboot
:XAUTHORITY=/var/run/gdm/auth-for-newman-tLHIpr/database
:DESKTOP_SESSION=gnome
:DISPLAY=:0
:GNOME_KEYRING_PID=1024
:HOSTNAME=assam
:HISTCONTROL=ignoredups
:PWD=/home/newman
:COLORTERM=gnome-terminal
:MAIL=/var/spool/mail/newman
:LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:*.pdf=00;33:*.ps=00;33:*.ps.gz=00;33:*.txt=00;33:*.patch=00;33:*.diff=00;33:*.log=00;33:*.tex=00;33:*.xls=00;33:*.xlsx=00;33:*.ppt=00;33:*.pptx=00;33:*.rtf=00;33:*.doc=00;33:*.docx=00;33:*.odt=00;33:*.ods=00;33:*.odp=00;33:*.xml=00;33:*.epub=00;33:*.abw=00;33:*.html=00;33:*.wpd=00;33:
:GJS_DEBUG_TOPICS=JS ERROR;JS LOG
:XDG_SEAT=seat0

firstboot-tb-CFvTzM:
:firstboot 17.2 exception report
:Traceback (most recent call last):
:  File "/usr/sbin/firstboot", line 118, in <module>
:    reconfig=opts.reconfig)
:  File "/usr/lib/python2.7/site-packages/firstboot/loader.py", line 78, in load_modules
:    modobj = clsobj()
:  File "/usr/share/firstboot/modules/create_user.py", line 53, in __init__
:    self.admin = libuser.admin()
:SystemError: could not open configuration file `/etc/default/useradd': Permission denied
:
:Local variables in innermost frame:
:self: <create_user.moduleClass instance at 0x1eaff38>
:
:
:Config instance, containing members:
:frontend: None
:moduleDir: None
:needInterface: False
:themeDir: /usr/share/firstboot/themes/fedora-verne
:mode: 1
:interface: Interface instance, containing members:
:  interface._screenshotDir: /root/firstboot-screenshots
:  interface._control: Control instance, containing members:
:    interface._control.currentPage: 0
:    interface._control.moduleList: False
:    interface._control.history: []
:  interface.testing: False
:  interface._x_size: 1024
:  interface._controlStack: [Already dumped (Control instance)
:]
:  interface._screenshotIndex: 0
:  interface.autoscreenshot: False
:  interface._y_size: 768
:defaultThemeDir: /usr/share/firstboot/themes/default/
:moduleList: None

Comment 1 Michal Nowak 2012-04-26 14:35:00 UTC
Run it as user in general environment.

Comment 2 Fedora Update System 2012-05-17 20:07:42 UTC
firstboot-17.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/firstboot-17.3-1.fc17

Comment 3 Fedora Update System 2012-05-17 22:59:00 UTC
Package firstboot-17.3-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing firstboot-17.3-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-7992/firstboot-17.3-1.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-05-19 07:12:20 UTC
firstboot-17.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.