From owner-freebsd-stable Mon Feb 1 08:08:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA09079 for freebsd-stable-outgoing; Mon, 1 Feb 1999 08:08:47 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA09071 for ; Mon, 1 Feb 1999 08:08:43 -0800 (PST) (envelope-from jose@we.lc.ehu.es) Received: from we.lc.ehu.es (tiburon [158.227.6.111]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id RAA01896 for ; Mon, 1 Feb 1999 17:08:07 +0100 (MET) Message-ID: <36B5D166.9CE4A52B@we.lc.ehu.es> Date: Mon, 01 Feb 1999 17:08:06 +0100 From: "Jose M. Alcaide" Organization: Universidad del Pais Vasco - Dept. de Electricidad y Electronica X-Mailer: Mozilla 4.07 [en] (X11; U; FreeBSD 3.0-STABLE i386) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Subject: mount: .: Permission denied ???? Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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