Permissions with GBDE.
Poul-Henning Kamp
phk at phk.freebsd.dk
Wed Feb 11 05:34:03 PST 2004
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.
More information about the freebsd-current
mailing list