[gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread walt
On 07/28/2010 01:20 PM, Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch /tmp/foo = strerror(ENOENT)). However, this is done as root and the dirs are marked 755 root:root. Is the sticky bit set on /tmp? drwxrwxrwt 26 root root 36864 2010-07-29 04:15 tmp/

[gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
Also, echo /tmp/foo = same thing It looks like a problem with open(..., O_CREAT|O_TRUNC, 644), but i'll retry strace'ing the open,write and see where the problem chain starts On 2010-07-29, Andrey Vul andrey@gmail.com wrote: If / was mounted ro, touch would output strerror(EROFS), not

[gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
While /tmp's mode is 1777, it doesnt make a difference since the same error occurs with /etc, /lib32, and /var. On 2010-07-29, Andrey Vul andrey@gmail.com wrote: Also, echo /tmp/foo = same thing It looks like a problem with open(..., O_CREAT|O_TRUNC, 644), but i'll retry strace'ing the

Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Alan McKinnon
On Thursday 29 July 2010 13:24:29 walt wrote: On 07/28/2010 01:20 PM, Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch /tmp/foo = strerror(ENOENT)). However, this is done as root and the dirs are marked 755 root:root. Is the sticky bit set on /tmp?

Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Alex Schuster
walt writes: On 07/28/2010 01:20 PM, Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch /tmp/foo = strerror(ENOENT)). However, this is done as root and the dirs are marked 755 root:root. Are all these directories located on the root file system? Is

Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
On Thu, Jul 29, 2010 at 08:31, Alex Schuster wo...@wonkology.org wrote: walt writes: On 07/28/2010 01:20 PM, Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch /tmp/foo =  strerror(ENOENT)). However, this is done as root and the dirs are marked 755

Re: [gentoo-user] Re: dir is rwx but can't create file

2010-07-29 Thread Andrey Vul
On Fri, Jul 30, 2010 at 01:34, Andrey Vul andrey@gmail.com wrote: On Thu, Jul 29, 2010 at 08:31, Alex Schuster wo...@wonkology.org wrote: walt writes: On 07/28/2010 01:20 PM, Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT (touch /tmp/foo =  

[gentoo-user] Re: dir is rwx but can't create file

2010-07-28 Thread Andrey Vul
If / was mounted ro, touch would output strerror(EROFS), not strerror(ENOENT) On 2010-07-28, Bill Longman bill.long...@gmail.com wrote: On 07/28/2010 01:52 PM, Alan McKinnon wrote: On Wednesday 28 July 2010 22:20:17 Andrey Vul wrote: Creating files in /tmp, /etc, /lib32, and /var return ENOENT