[gobolinux-devel] chmod and chown

Carlo Calica ccalica at gmail.com
Fri Oct 21 19:31:17 GMT 2005


On 10/21/05, Jonatan Liljedahl <lijon at kymatica.com> wrote:
> Ok, this is REALLY strange...
> After I have did all these upgrades (kernel, glibc, dbus, hal, etc..)
> now each time I try to chmod a file I get permission denied, becouse
> it's suid root for group fibo. It looks like each time I run Compile
> this is changed and then it's not changed back!
>
> Anyone got a clue? I'm running Scripts 2.1.28 and Compile 1.3.1
>
It's fixed in Scripts 2.2.0  Approximate patch-like snippet for FiboSandbox


sudo -u fibo "$@"
result=$?

c=0
for i in "${fiboprograms[@]}"
do
   chmod ${mod[$c]} "$i"
   chown ${own[$c]} "$i"
   chgrp ${grp[$c]} "$i"
+   c=$[c+1]
done

Log_Verbose "Undoing the sandbox..."


More information about the gobolinux-devel mailing list