Date: Mon, 01 Feb 1999 17:08:06 +0100 From: "Jose M. Alcaide" <jose@we.lc.ehu.es> To: freebsd-stable@FreeBSD.ORG Subject: mount: .: Permission denied ???? Message-ID: <36B5D166.9CE4A52B@we.lc.ehu.es>
next in thread | raw e-mail | index | archive | help
I am looking for an explanation to this phenomenom. If, as root, I have no permission to read or write my working directory (because it is being NFS-mounted), and I try to run "mount", I get a "mount: .: Permission denied" message. Why? A syscall trace is not very helpful: # truss mount -t null /usr/ports /mnt syscall readlink("/etc/malloc.conf",0xefbfdac8,63) errno 2 'No such file or directory' syscall mmap(0x0,4096,0x3,0x1002,-1,0x0) returns 671555584 (0x28072000) syscall break(0x807e000) returns 0 (0x0) syscall break(0x807f000) returns 0 (0x0) syscall open(".",0,00) errno 13 'Permission denied' mount: syscall write(2,0xefbfc90c,7) returns 7 (0x7) .syscall write(2,0xefbfc920,1) returns 1 (0x1) : syscall write(2,0xefbfc904,2) returns 2 (0x2) Permission denied syscall write(2,0xefbfc908,18) returns 18 (0x12) syscall exit(0x1) process exit, rval = 256 At the very beginning, mount tries to open() the working directory. The code that makes this syscall does not belong to main(). I think that there is an explanation to this behaviour... -- JMA ----------------------------------------------------------------------- José Mª Alcaide | mailto:jose@we.lc.ehu.es Universidad del País Vasco | http://www.we.lc.ehu.es/~jose Dpto. de Electricidad y Electrónica | Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-944858139 ----------------------------------------------------------------------- "Go ahead... make my day." - H. Callahan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36B5D166.9CE4A52B>