Bug 439031 - fails due to permission errors
fails due to permission errors
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-26 12:13 EDT by Bill Nottingham
Modified: 2014-03-16 23:13 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-03-26 12:28:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Bill Nottingham 2008-03-26 12:13:52 EDT
Description of problem:

[notting@nostromo: ~/prog/rpms/xorg-x11-drv-i810/devel]$ mock -r
fedora-devel-i386 xorg-x11-drv-i810-2.2.1-15.fc9.src.rpm 
INFO: mock.py version 0.9.7 starting...
State Changed: init plugins
State Changed: start
INFO: Start(xorg-x11-drv-i810-2.2.1-15.fc9.src.rpm)  Config(fedora-development-i386)
State Changed: lock buildroot
State Changed: clean
State Changed: init
ERROR: Could not create dir /var/lib/mock//fedora-development-i386/result.
Error: [Errno 13] Permission denied: '/var/lib/mock//fedora-development-i386/result'
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/mock/util.py", line 61, in mkdirIfAbsent
  File "/usr/lib64/python2.5/os.py", line 172, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied:
ERROR: Exception(xorg-x11-drv-i810-2.2.1-15.fc9.src.rpm)
Config(fedora-development-i386) 0 minutes 0 seconds
INFO: Results and/or logs in: /var/lib/mock//fedora-development-i386/result
ERROR: Could not create dir /var/lib/mock//fedora-development-i386/result.
Error: [Errno 13] Permission denied: '/var/lib/mock//fedora-development-i386/result'

Version-Release number of selected component (if applicable):


How reproducible:

Every time.
Comment 1 Bill Nottingham 2008-03-26 12:14:23 EDT
(Yes, I am in the mock group.)
Comment 2 Michael E Brown 2008-03-26 12:24:33 EDT
wrong perms on /var/lib/mock on your machine.

They should be: 

$ ls -la /var/lib/mock
total 24
drwxrwsr-x  3 root mock 4096 2008-03-13 15:11 .
drwxr-xr-x 36 root root 4096 2008-03-20 13:26 ..

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