I know that this is an old topic that hasn't been discussed in about a year, but it is stumping me in this case.
I have a perl script which recompiles a library in my home directory then copies it to /usr/local/<location>/<version>. Then I try to change ownership and permissions. That is what fails, giving this message.
Here is what happpens when I run the script under sudo:
Note that I can copy as root, but I can't chown or chmod (tried before).
But then I thought I could really become root if I did "sudo konsole" and then run the script from the konsole window. This is what happened when I did that:
Note, I am now root in this case. But I still can chown, and get the same error.
Does anybody know how to fix this?
TIA
Bear
I have a perl script which recompiles a library in my home directory then copies it to /usr/local/<location>/<version>. Then I try to change ownership and permissions. That is what fails, giving this message.
Here is what happpens when I run the script under sudo:
bear@nomad:~/MCperl$ sudo ./apibuild -c -P 7A -v test1
info>Building MC7A version test1 API library by developer bear >:apibuild[49]
info>API directories cleaned >:apibuild[53]
info>API Build Version test1 Successful. >:apibuild[62]
info>libdfc.a copied to /usr/local/MC7Abin/test1/libdfc.a >:MClib.pm[109] >>:MClib.pm[107] >>>:apibuild[63]
info>chown -f root:root /usr/local/MC7Abin/test1/libdfc.a failed >:MClib.pm[119] >>:apibuild[64]
debug>PUNT >:MClib.pm[120] >>:apibuild[64] >:MClib.pm[196] >>:MClib.pm[120] >>>:apibuild[64]
bear@nomad:~/MCperl$ Error: "/var/tmp/kdecache-bear" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-bear" is owned by uid 1000 instead of uid 0.
info>Building MC7A version test1 API library by developer bear >:apibuild[49]
info>API directories cleaned >:apibuild[53]
info>API Build Version test1 Successful. >:apibuild[62]
info>libdfc.a copied to /usr/local/MC7Abin/test1/libdfc.a >:MClib.pm[109] >>:MClib.pm[107] >>>:apibuild[63]
info>chown -f root:root /usr/local/MC7Abin/test1/libdfc.a failed >:MClib.pm[119] >>:apibuild[64]
debug>PUNT >:MClib.pm[120] >>:apibuild[64] >:MClib.pm[196] >>:MClib.pm[120] >>>:apibuild[64]
bear@nomad:~/MCperl$ Error: "/var/tmp/kdecache-bear" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-bear" is owned by uid 1000 instead of uid 0.
But then I thought I could really become root if I did "sudo konsole" and then run the script from the konsole window. This is what happened when I did that:
root@nomad:~/MCperl# ./apibuild -c -P 7A -v test1
info>Building MC7A version test1 API library by developer bear >:apibuild[49]
info>API directories cleaned >:apibuild[53]
info>API Build Version test1 Successful. >:apibuild[62]
info>libdfc.a copied to /usr/local/MC7Abin/test1/libdfc.a >:MClib.pm[109] >>:MClib.pm[107] >>>:apibuild[63]
info>chown -f root:root /usr/local/MC7Abin/test1/libdfc.a failed >:MClib.pm[119] >>:apibuild[64]
debug>PUNT >:MClib.pm[120] >>:apibuild[64] >:MClib.pm[196] >>:MClib.pm[120] >>>:apibuild[64]
root@nomad:~/MCperl# Error: "/var/tmp/kdecache-bear" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-bear" is owned by uid 1000 instead of uid 0.
info>Building MC7A version test1 API library by developer bear >:apibuild[49]
info>API directories cleaned >:apibuild[53]
info>API Build Version test1 Successful. >:apibuild[62]
info>libdfc.a copied to /usr/local/MC7Abin/test1/libdfc.a >:MClib.pm[109] >>:MClib.pm[107] >>>:apibuild[63]
info>chown -f root:root /usr/local/MC7Abin/test1/libdfc.a failed >:MClib.pm[119] >>:apibuild[64]
debug>PUNT >:MClib.pm[120] >>:apibuild[64] >:MClib.pm[196] >>:MClib.pm[120] >>>:apibuild[64]
root@nomad:~/MCperl# Error: "/var/tmp/kdecache-bear" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-bear" is owned by uid 1000 instead of uid 0.
Does anybody know how to fix this?
TIA
Bear
Comment