From owner-freebsd-current@FreeBSD.ORG Wed Feb 11 05:34:03 2004 Return-Path: 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 15DE316A4CE for ; Wed, 11 Feb 2004 05:34:03 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 812D443D1F for ; Wed, 11 Feb 2004 05:34:02 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i1BDY0MW012600; Wed, 11 Feb 2004 14:34:00 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Kaminski From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 11 Feb 2004 14:23:47 GMT." <200402111423.20778.lukas.kaminski@web.de> Date: Wed, 11 Feb 2004 14:34:00 +0100 Message-ID: <12599.1076506440@critter.freebsd.dk> cc: freebsd-current@freebsd.org Subject: Re: Permissions with GBDE. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 13:34:03 -0000 In message <200402111423.20778.lukas.kaminski@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@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.