Re: Permissions with GBDE.

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 11 Feb 2004 14:34:00 +0100
In message <200402111423.20778.lukas.kaminski_at_web.de>, Lukas Kaminski writes:
>Hi! 
>
>Something strange happens:
>
>after a 'gbde attach /dev/afd0 -l /etc/gbde/afd0'
>the permissions are:
>
>crw-rw----  1 root  operator    4,  12 Feb 11 11:28 afd0
>crw-r-----  1 root  operator    4,  23 Feb 11 11:28 afd0.bde
>        
>so i can't mount the encrypted device as a user.
>I wonder why the ownership is set correctly, but the device permissions are 
>not.
>
>Maybe i misunderstood the whole concept of devfs....
>
>sysctl.conf:
>vfs.usermount=1
>
>devfs.conf:
>own     afd0    root:operator
>perm    afd0    0660
>own     afd0.bde        root:operator
>perm    afd0.bde        0660

I think devfs.conf only applies at boot time, and you really should
make a devfs rule (see devfs(8)) for which there is some support
in RCng too, but I have not quite figured out how to use it myself
yet :-(

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Feb 11 2004 - 04:34:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC