View previous topic :: View next topic |
Author |
Message |
h4jo n00b
Joined: 05 Nov 2007 Posts: 7 Location: Hösel
|
Posted: Wed Sep 11, 2013 7:45 am Post subject: emerge --sync -> rsync: ERROR: cannot stat destination |
|
|
All of a sudden I got the following error when trying to emerge --sync:
rsync: ERROR: cannot stat destination "/var/tmp/tmp7QWkJ5": Permission denied (13)
strace -fp emerge --sync reveals:
...
open("/var/tmp/tmpSaIEJs", O_RDWR|O_CREAT|O_EXCL|O_NOFOLLOW, 0600) = 3
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
close(3) = 0
stat("/var/tmp/tmpSaIEJs", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
chown("/var/tmp/tmpSaIEJs", 250, 4294967295) = 0 /* 250 is portage */
...
[pid 31338] stat("/var/tmp/tmpSaIEJs", 0x7fffade5ad10) = -1 EACCES (Permission denied)
[pid 31338] write(2, "rsync: ERROR: cannot stat destin"..., 82rsync: ERROR: cannot stat destination "/var/tmp/tmpSaIEJs": Permission denied (13)) = 82
...
It seems (I believe) that tmpdir creation is done by root and accessing it is done by user portage running rsync.
I'm somewhat clueless how to find the culprit.
Am I alone with this problem? Hints anybody?
Cheers
Hajo |
|
Back to top |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Wed Sep 11, 2013 11:00 am Post subject: |
|
|
Maybe the sticky bit got lost. Check ls -la /var/tmp/ . _________________ Hello 911? How are you? |
|
Back to top |
|
|
Nonno Cicala n00b
Joined: 11 Sep 2013 Posts: 1 Location: Rome, Italy
|
Posted: Wed Sep 11, 2013 11:44 am Post subject: |
|
|
Thank you, when I moved my /var/tmp to a separate partition I forgot to set the permissions to the default 1777. |
|
Back to top |
|
|
h4jo n00b
Joined: 05 Nov 2007 Posts: 7 Location: Hösel
|
Posted: Wed Sep 11, 2013 12:41 pm Post subject: |
|
|
Thanks massimo - chmod 1777 did the trick |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|