Via experimentation, I ended up as a regular user inside /root under these conditions:
- /home/andreas is for some reason unreachable (I used 0000 for /home/andreas to see what would happen)
- /root is 0700, owned by root:root
The script I asked to run as andreas is:
id
echo "pwd = $(pwd)"
ls -lad /home/andreas /root
And this is the response:
uid=1000(andreas) gid=1000(andreas) groups=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),107(fuse),111(lpadmin),112(admin),1000(andreas)
pwd = /home/andreas
d--------- 2 andreas andreas 4096 Jun 11 11:47 /home/andreas
drwx------ 4 root root 4096 Jun 13 12:05 /root
The desired response would be to run the script in "/" in this case.
- self.process_ factory. spawnProcess( pp, filename, uid=uid, gid=gid) factory. spawnProcess( pp, filename, uid=uid, gid=gid,
+ self.process_
+ path=path)
Via experimentation, I ended up as a regular user inside /root under these conditions:
- /home/andreas is for some reason unreachable (I used 0000 for /home/andreas to see what would happen)
- /root is 0700, owned by root:root
The script I asked to run as andreas is:
id
echo "pwd = $(pwd)"
ls -lad /home/andreas /root
And this is the response: 4(adm), 20(dialout) ,24(cdrom) ,25(floppy) ,29(audio) ,30(dip) ,44(video) ,46(plugdev) ,107(fuse) ,111(lpadmin) ,112(admin) ,1000(andreas)
uid=1000(andreas) gid=1000(andreas) groups=
pwd = /home/andreas
d--------- 2 andreas andreas 4096 Jun 11 11:47 /home/andreas
drwx------ 4 root root 4096 Jun 13 12:05 /root
The desired response would be to run the script in "/" in this case.