[Bug 486944] [NEW] Different permission denied errors
Brian May
brian at microcomaustralia.com.au
Mon Nov 23 03:54:35 UTC 2009
Public bug reported:
Binary package hint: schroot
Hello,
Since I upgraded to Karmic, schroot is giving me permission denied
messages:
brian at sys11:~$ schroot -c sid
E: /dev/sys11/schroot-sid: Failed to stat file: Permission denied
brian at sys11:~$ ls -lad /dev/sys11
drwx------ 2 root root 220 2009-11-23 14:42 /dev/sys11
Quite possibly this is the sole problem here, udev getting the
permissions wrong on the LVM directory.
I tried to work around this however, I changed schroot to use /dev/mapper/sys11-schroot--sid instead, now I get:
brian at sys11:~$ schroot -c sid
E: sid-36aeb265-7fbb-477f-bdf7-a9c241eab597: Failed to lock chroot: /var/lib/schroot/session/sid-36aeb265-7fbb-477f-bdf7-a9c241eab597: Failed to write session file: Permission denied
or with full debugging:
brian at sys11:~$ schroot --debug=info -c sid
D(2): Getting keyfile group=etch, key=type
D(2): Getting keyfile group=etch, key=active
D(2): Getting keyfile group=etch, key=run-setup-scripts
D(2): Getting keyfile group=etch, key=run-session-scripts
D(2): Getting keyfile group=etch, key=run-exec-scripts
D(2): Getting keyfile group=etch, key=script-config
D(2): Getting keyfile group=etch, key=priority
D(2): Getting keyfile group=etch, key=aliases
D(2): Getting keyfile group=etch, key=environment-filter
D(2): Getting keyfile group=etch, key=description
D(2): Getting keyfile group=etch, key=users
D(2): Getting keyfile group=etch, key=groups
D(2): Getting keyfile group=etch, key=root-users
D(2): Getting keyfile group=etch, key=root-groups
D(2): Getting keyfile group=etch, key=mount-location
D(2): Getting keyfile group=etch, key=mount-device
D(2): Getting keyfile group=etch, key=command-prefix
D(2): Getting keyfile group=etch, key=personality
D(2): Getting keyfile group=etch, key=active
D(2): Getting keyfile group=etch, key=run-setup-scripts
D(2): Getting keyfile group=etch, key=run-session-scripts
D(2): Getting keyfile group=etch, key=run-exec-scripts
D(2): Getting keyfile group=etch, key=script-config
D(2): Getting keyfile group=etch, key=priority
D(2): Getting keyfile group=etch, key=aliases
D(2): Getting keyfile group=etch, key=environment-filter
D(2): Getting keyfile group=etch, key=description
D(2): Getting keyfile group=etch, key=users
D(2): Getting keyfile group=etch, key=groups
D(2): Getting keyfile group=etch, key=root-users
D(2): Getting keyfile group=etch, key=root-groups
D(2): Getting keyfile group=etch, key=mount-location
D(2): Getting keyfile group=etch, key=mount-device
D(2): Getting keyfile group=etch, key=command-prefix
D(2): Getting keyfile group=etch, key=personality
D(2): Getting keyfile group=etch, key=mount-options
D(2): Getting keyfile group=etch, key=location
D(2): Getting keyfile group=etch, key=device
D(2): Getting keyfile group=etch, key=source-users
D(2): Getting keyfile group=etch, key=source-groups
D(2): Getting keyfile group=etch, key=source-root-users
D(2): Getting keyfile group=etch, key=source-root-groups
D(2): Getting keyfile group=etch, key=lvm-snapshot-device
D(2): Getting keyfile group=etch, key=lvm-snapshot-options
D(2): Getting keyfile group=intrepid, key=type
D(2): Getting keyfile group=intrepid, key=active
D(2): Getting keyfile group=intrepid, key=run-setup-scripts
D(2): Getting keyfile group=intrepid, key=run-session-scripts
D(2): Getting keyfile group=intrepid, key=run-exec-scripts
D(2): Getting keyfile group=intrepid, key=script-config
D(2): Getting keyfile group=intrepid, key=priority
D(2): Getting keyfile group=intrepid, key=aliases
D(2): Getting keyfile group=intrepid, key=environment-filter
D(2): Getting keyfile group=intrepid, key=description
D(2): Getting keyfile group=intrepid, key=users
D(2): Getting keyfile group=intrepid, key=groups
D(2): Getting keyfile group=intrepid, key=root-users
D(2): Getting keyfile group=intrepid, key=root-groups
D(2): Getting keyfile group=intrepid, key=mount-location
D(2): Getting keyfile group=intrepid, key=mount-device
D(2): Getting keyfile group=intrepid, key=command-prefix
D(2): Getting keyfile group=intrepid, key=personality
D(2): Getting keyfile group=intrepid, key=active
D(2): Getting keyfile group=intrepid, key=run-setup-scripts
D(2): Getting keyfile group=intrepid, key=run-session-scripts
D(2): Getting keyfile group=intrepid, key=run-exec-scripts
D(2): Getting keyfile group=intrepid, key=script-config
D(2): Getting keyfile group=intrepid, key=priority
D(2): Getting keyfile group=intrepid, key=aliases
D(2): Getting keyfile group=intrepid, key=environment-filter
D(2): Getting keyfile group=intrepid, key=description
D(2): Getting keyfile group=intrepid, key=users
D(2): Getting keyfile group=intrepid, key=groups
D(2): Getting keyfile group=intrepid, key=root-users
D(2): Getting keyfile group=intrepid, key=root-groups
D(2): Getting keyfile group=intrepid, key=mount-location
D(2): Getting keyfile group=intrepid, key=mount-device
D(2): Getting keyfile group=intrepid, key=command-prefix
D(2): Getting keyfile group=intrepid, key=personality
D(2): Getting keyfile group=intrepid, key=mount-options
D(2): Getting keyfile group=intrepid, key=location
D(2): Getting keyfile group=intrepid, key=device
D(2): Getting keyfile group=intrepid, key=source-users
D(2): Getting keyfile group=intrepid, key=source-groups
D(2): Getting keyfile group=intrepid, key=source-root-users
D(2): Getting keyfile group=intrepid, key=source-root-groups
D(2): Getting keyfile group=intrepid, key=lvm-snapshot-device
D(2): Getting keyfile group=intrepid, key=lvm-snapshot-options
D(2): Getting keyfile group=lenny, key=type
D(2): Getting keyfile group=lenny, key=active
D(2): Getting keyfile group=lenny, key=run-setup-scripts
D(2): Getting keyfile group=lenny, key=run-session-scripts
D(2): Getting keyfile group=lenny, key=run-exec-scripts
D(2): Getting keyfile group=lenny, key=script-config
D(2): Getting keyfile group=lenny, key=priority
D(2): Getting keyfile group=lenny, key=aliases
D(2): Getting keyfile group=lenny, key=environment-filter
D(2): Getting keyfile group=lenny, key=description
D(2): Getting keyfile group=lenny, key=users
D(2): Getting keyfile group=lenny, key=groups
D(2): Getting keyfile group=lenny, key=root-users
D(2): Getting keyfile group=lenny, key=root-groups
D(2): Getting keyfile group=lenny, key=mount-location
D(2): Getting keyfile group=lenny, key=mount-device
D(2): Getting keyfile group=lenny, key=command-prefix
D(2): Getting keyfile group=lenny, key=personality
D(2): Getting keyfile group=lenny, key=active
D(2): Getting keyfile group=lenny, key=run-setup-scripts
D(2): Getting keyfile group=lenny, key=run-session-scripts
D(2): Getting keyfile group=lenny, key=run-exec-scripts
D(2): Getting keyfile group=lenny, key=script-config
D(2): Getting keyfile group=lenny, key=priority
D(2): Getting keyfile group=lenny, key=aliases
D(2): Getting keyfile group=lenny, key=environment-filter
D(2): Getting keyfile group=lenny, key=description
D(2): Getting keyfile group=lenny, key=users
D(2): Getting keyfile group=lenny, key=groups
D(2): Getting keyfile group=lenny, key=root-users
D(2): Getting keyfile group=lenny, key=root-groups
D(2): Getting keyfile group=lenny, key=mount-location
D(2): Getting keyfile group=lenny, key=mount-device
D(2): Getting keyfile group=lenny, key=command-prefix
D(2): Getting keyfile group=lenny, key=personality
D(2): Getting keyfile group=lenny, key=mount-options
D(2): Getting keyfile group=lenny, key=location
D(2): Getting keyfile group=lenny, key=device
D(2): Getting keyfile group=lenny, key=source-users
D(2): Getting keyfile group=lenny, key=source-groups
D(2): Getting keyfile group=lenny, key=source-root-users
D(2): Getting keyfile group=lenny, key=source-root-groups
D(2): Getting keyfile group=lenny, key=lvm-snapshot-device
D(2): Getting keyfile group=lenny, key=lvm-snapshot-options
D(2): Getting keyfile group=lenny-old, key=type
D(2): Getting keyfile group=lenny-old, key=active
D(2): Getting keyfile group=lenny-old, key=run-setup-scripts
D(2): Getting keyfile group=lenny-old, key=run-session-scripts
D(2): Getting keyfile group=lenny-old, key=run-exec-scripts
D(2): Getting keyfile group=lenny-old, key=script-config
D(2): Getting keyfile group=lenny-old, key=priority
D(2): Getting keyfile group=lenny-old, key=aliases
D(2): Getting keyfile group=lenny-old, key=environment-filter
D(2): Getting keyfile group=lenny-old, key=description
D(2): Getting keyfile group=lenny-old, key=users
D(2): Getting keyfile group=lenny-old, key=groups
D(2): Getting keyfile group=lenny-old, key=root-users
D(2): Getting keyfile group=lenny-old, key=root-groups
D(2): Getting keyfile group=lenny-old, key=mount-location
D(2): Getting keyfile group=lenny-old, key=mount-device
D(2): Getting keyfile group=lenny-old, key=command-prefix
D(2): Getting keyfile group=lenny-old, key=personality
D(2): Getting keyfile group=lenny-old, key=active
D(2): Getting keyfile group=lenny-old, key=run-setup-scripts
D(2): Getting keyfile group=lenny-old, key=run-session-scripts
D(2): Getting keyfile group=lenny-old, key=run-exec-scripts
D(2): Getting keyfile group=lenny-old, key=script-config
D(2): Getting keyfile group=lenny-old, key=priority
D(2): Getting keyfile group=lenny-old, key=aliases
D(2): Getting keyfile group=lenny-old, key=environment-filter
D(2): Getting keyfile group=lenny-old, key=description
D(2): Getting keyfile group=lenny-old, key=users
D(2): Getting keyfile group=lenny-old, key=groups
D(2): Getting keyfile group=lenny-old, key=root-users
D(2): Getting keyfile group=lenny-old, key=root-groups
D(2): Getting keyfile group=lenny-old, key=mount-location
D(2): Getting keyfile group=lenny-old, key=mount-device
D(2): Getting keyfile group=lenny-old, key=command-prefix
D(2): Getting keyfile group=lenny-old, key=personality
D(2): Getting keyfile group=lenny-old, key=mount-options
D(2): Getting keyfile group=lenny-old, key=location
D(2): Getting keyfile group=lenny-old, key=device
D(2): Getting keyfile group=lenny-old, key=source-users
D(2): Getting keyfile group=lenny-old, key=source-groups
D(2): Getting keyfile group=lenny-old, key=source-root-users
D(2): Getting keyfile group=lenny-old, key=source-root-groups
D(2): Getting keyfile group=lenny-old, key=lvm-snapshot-device
D(2): Getting keyfile group=lenny-old, key=lvm-snapshot-options
D(2): Getting keyfile group=sid, key=type
D(2): Getting keyfile group=sid, key=active
D(2): Getting keyfile group=sid, key=run-setup-scripts
D(2): Getting keyfile group=sid, key=run-session-scripts
D(2): Getting keyfile group=sid, key=run-exec-scripts
D(2): Getting keyfile group=sid, key=script-config
D(2): Getting keyfile group=sid, key=priority
D(2): Getting keyfile group=sid, key=aliases
D(2): Getting keyfile group=sid, key=environment-filter
D(2): Getting keyfile group=sid, key=description
D(2): Getting keyfile group=sid, key=users
D(2): Getting keyfile group=sid, key=groups
D(2): Getting keyfile group=sid, key=root-users
D(2): Getting keyfile group=sid, key=root-groups
D(2): Getting keyfile group=sid, key=mount-location
D(2): Getting keyfile group=sid, key=mount-device
D(2): Getting keyfile group=sid, key=command-prefix
D(2): Getting keyfile group=sid, key=personality
D(2): Getting keyfile group=sid, key=active
D(2): Getting keyfile group=sid, key=run-setup-scripts
D(2): Getting keyfile group=sid, key=run-session-scripts
D(2): Getting keyfile group=sid, key=run-exec-scripts
D(2): Getting keyfile group=sid, key=script-config
D(2): Getting keyfile group=sid, key=priority
D(2): Getting keyfile group=sid, key=aliases
D(2): Getting keyfile group=sid, key=environment-filter
D(2): Getting keyfile group=sid, key=description
D(2): Getting keyfile group=sid, key=users
D(2): Getting keyfile group=sid, key=groups
D(2): Getting keyfile group=sid, key=root-users
D(2): Getting keyfile group=sid, key=root-groups
D(2): Getting keyfile group=sid, key=mount-location
D(2): Getting keyfile group=sid, key=mount-device
D(2): Getting keyfile group=sid, key=command-prefix
D(2): Getting keyfile group=sid, key=personality
D(2): Getting keyfile group=sid, key=mount-options
D(2): Getting keyfile group=sid, key=location
D(2): Getting keyfile group=sid, key=device
D(2): Getting keyfile group=sid, key=source-users
D(2): Getting keyfile group=sid, key=source-groups
D(2): Getting keyfile group=sid, key=source-root-users
D(2): Getting keyfile group=sid, key=source-root-groups
D(2): Getting keyfile group=sid, key=lvm-snapshot-device
D(2): Getting keyfile group=sid, key=lvm-snapshot-options
D(2): Creating schroot session
D(2): auth uid = 10,000, gid = 10,003
D(2): In users: 1
In groups: 0
In root-users: 1
In root-groups: 0
D(2): pam_putenv: set HOME=/home/brian
D(2): pam_putenv: set LOGNAME=brian
D(2): pam_putenv: set PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
D(2): pam_putenv: set SHELL=/usr/bin/zsh
D(2): pam_putenv: set TERM=rxvt-unicode
D(2): pam_putenv: set USER=brian
D(2): PAM authentication succeeded for user
D(2): Session ID: sid-4b862782-2097-468f-b6a5-6986a85e0a26
D(2): setup_chroot: chroot=sid-4b862782-2097-468f-b6a5-6986a85e0a26, setup_type=0, chroot_status=1, lock_status=1
D(3): Chroot setup scripts, exec scripts or session failed
D(2): setup_chroot: chroot=sid-4b862782-2097-468f-b6a5-6986a85e0a26, setup_type=2, chroot_status=0, lock_status=0
E: sid-4b862782-2097-468f-b6a5-6986a85e0a26: Failed to lock chroot: /var/lib/schroot/session/sid-4b862782-2097-468f-b6a5-6986a85e0a26: Failed to write session file: Permission denied
If I do it as root instead, I get a different error:
brian at sys11:~$ sudo schroot -c sid
Volume group "mapper" not found
/etc/schroot/setup.d/90passwd: 2: cannot create /var/lib/schroot/mount/sid-7d92b549-39ec-4668-8d04-742e6428eb62/etc/passwd: Directory nonexistent
E: sid-7d92b549-39ec-4668-8d04-742e6428eb62: Chroot setup failed: stage=setup-start
Where 90passwd is a simple script that copies my passwd entry from LDAP, this is failing, presumably because of the
previous error - quite possibly because it didn't like me changing the path to the chroot in step 1.
=== cut ===
#!/bin/sh -e
getent passwd brian >> "${CHROOT_PATH}/etc/passwd"
=== cut ===
I am using schroot 1.2.3-1
Brian May
** Affects: schroot (Ubuntu)
Importance: Undecided
Status: New
--
Different permission denied errors
https://bugs.launchpad.net/bugs/486944
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list