summaryrefslogtreecommitdiff
path: root/doc/todo/userScriptProperty_fails_inside_a_debootstrapped_chroot.mdwn
blob: c4464d0306529908490bd45ef2a0e0d63086a809 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Config snippet to reproduce:

    	& Chroot.provisioned sidChroot
      where
    	sidChroot = Chroot.debootstrapped mempty "/tmp/sid" $ props
    		& osDebian Unstable X86_64
    		& User.accountFor (User "spwhitton")
    		& userScriptProperty (User "spwhitton")
    			[ "echo hello > /home/spwhitton/greeting" ]
    		`assume` MadeChange

During a spin, I see the error `Cannot execute /bin/sh`.

I can obtain the error manually as follows.  My `/tmp` is not mounted `noexec`.

    iris ~ % sudo chroot /tmp/sid /bin/bash       
    [sudo] password for spwhitton:         
    root@iris:/# su --shell /bin/sh -c "echo hello > /home/spwhitton/greeting" spwhitton
    Cannot execute /bin/sh
    root@iris:/# su --shell /bin/sh spwhitton
    Cannot execute /bin/sh: Permission denied

--spwhitton

> [[fixed|done]] --[[Joey]]