From owner-freebsd-current Thu Oct 3 10:40:48 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65CA337B401 for ; Thu, 3 Oct 2002 10:40:46 -0700 (PDT) Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19E5443E6A for ; Thu, 3 Oct 2002 10:40:45 -0700 (PDT) (envelope-from maxim@macomnet.ru) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id g93HeYl216523; Thu, 3 Oct 2002 21:40:34 +0400 (MSD) Date: Thu, 3 Oct 2002 21:40:34 +0400 (MSD) From: Maxim Konovalov X-X-Sender: Maxim Konovalov To: Lars Eggert Cc: Poul-Henning Kamp , current Subject: Re: usermount with devfs In-Reply-To: <3D9C79A0.5040100@isi.edu> Message-ID: <20021003213427.W28187-100000@news1.macomnet.ru> References: <7014.1033664619@critter.freebsd.dk> <3D9C79A0.5040100@isi.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=KOI8-R Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 21:08+0400, Oct 3, 2002, Lars Eggert wrote: > Poul-Henning Kamp wrote: > > In message <3D9C776C.1000409@isi.edu>, Lars Eggert writes: > > > > > >>[root@nik: /etc] rm /dev/acd0c > >>[root@nik: /etc] umask 0007 && ln -s /dev/acd0c /dev/acd0 > >>ln: /dev/acd0: File exists > >> > >>Which is really a strange error, since /dev/acd0c is gone: > > > > > > Nothing which the kernel has created in /dev/ is really gone > > when you rm(1) it, it merely gets hidden. > > > > Think of it as "the kernel has priority in selecting names". > > > > Now, if you had > > rm /dev/null > > you could recreate it with > > mknod /dev/null c 0 0 > > (the "c 0 0" arguments have to be there, but are ignored). > > > > I guess it's a flaw that you can't recreate the symlink in > > a similar fashion. > > So there is no more usermount under -current with devfs? Or is there > another way to have the symlinks be created with the different > permissions (since devfs rules don't seem to apply to them)? See no problems with my -current: [maxim@miss maxim]$ uname -a FreeBSD miss 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Aug 11 13:35:56 MSD 2002 maxim@miss:/vol0/obj/usr/src/sys/MISS i386 [maxim@miss maxim]$ id uid=1001(maxim) gid=20(staff) groups=20(staff), 0(wheel), 5(operator), 68(dialer), 69(network) [maxim@miss maxim]$ ls -ld /cdrom drwxr-xr-x 2 maxim wheel 512 13 ΣΕΞ 2001 /cdrom [maxim@miss maxim]$ ls -l /dev/acd0c lrwxr-xr-x 1 root wheel 5 2 ΟΛΤ 01:13 /dev/acd0c -> acd0 [maxim@miss maxim]$ mount /dev/ad0s1a on / (ufs, local, soft-updates) devfs on /dev (devfs, local) /dev/ad0s1e on /usr (ufs, local, soft-updates) /dev/ad0s1f on /vol0 (ufs, local, noatime, soft-updates) procfs on /proc (procfs, local) [maxim@miss maxim]$ ls -l /sbin/mount_cd9660 -r-xr-xr-x 1 root wheel 74004 14 ΣΕΞ 22:10 /sbin/mount_cd9660 [maxim@miss maxim]$ /sbin/mount_cd9660 /dev/acd0c /cdrom [maxim@miss maxim]$ mount | grep cdrom /dev/acd0c on /cdrom (cd9660, local, nodev, nosuid, read-only, mounted by maxim) -- Maxim Konovalov, MAcomnet, Internet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message