Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Oct 2002 21:40:34 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Lars Eggert <larse@ISI.EDU>
Cc:        Poul-Henning Kamp <phk@critter.freebsd.dk>, current <current@FreeBSD.ORG>
Subject:   Re: usermount with devfs
Message-ID:  <20021003213427.W28187-100000@news1.macomnet.ru>
In-Reply-To: <3D9C79A0.5040100@isi.edu>
References:  <7014.1033664619@critter.freebsd.dk> <3D9C79A0.5040100@isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021003213427.W28187-100000>