From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 16:43:01 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09FB616A417 for ; Tue, 11 Sep 2007 16:43:01 +0000 (UTC) (envelope-from cblasius@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.freebsd.org (Postfix) with ESMTP id A2E3113C45B for ; Tue, 11 Sep 2007 16:43:00 +0000 (UTC) (envelope-from cblasius@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1250155nfb for ; Tue, 11 Sep 2007 09:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=HaJWEwdKDkr8fJ4mUQSIrj6e/33yfkvErElwXibOzZM=; b=FkpXPLutcRp0878fahxTw7YP4FNN/2kM/tTDwQLLx3NAbT5voUq9eWtluT5BFyzpjj/imZo3Qmrkt+MMJEdHZOvOjaCUujxKg8CPvHHWybW9sdvUWCqjG6f66OnXNxpV9dQipmX+Jq8WX1kdzYWy2HlTrEJ0hDB3n1llTjVRfnA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=swnSKYi+z7cg371h63nUocbeFKOpSJsC28HO47v/QOVtskK1hxIQSFp/0uWA/A3fUoaBQBPM6bvSzmMZKak7FsLBGPs6zH8Dl4tQD+SDJWWQZfXRN8t7hcEO4DmAep2jj0m4J0OCK1YHHovoSacEXcxI20eYexioMb9erFYuNR0= Received: by 10.78.180.16 with SMTP id c16mr2691352huf.1189528978970; Tue, 11 Sep 2007 09:42:58 -0700 (PDT) Received: from xdsl-5405.zgora.dialog.net.pl ( [84.40.169.29]) by mx.google.com with ESMTPS id 4sm2275137hue.2007.09.11.09.42.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2007 09:42:57 -0700 (PDT) From: Zbigniew Komarnicki To: freebsd-questions@freebsd.org Date: Tue, 11 Sep 2007 18:42:53 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709111842.54740.cblasius@gmail.com> Subject: mount_ntfs as normal user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 16:43:01 -0000 Hello, I'd like to ask that this scenario is correct, or my system is compromised or somethin else? I have in /etc/sysctl.conf vfs.usermount=1 The ntfs slice is $ ls -ld /dev/ad0s1 crw-r----- 1 root operator 0, 101 Sep 10 14:06 /dev/ad0s1 Next in my home directory create folder win $ mkdir win $ mount_ntfs /dev/ad0s1 win $ ls win here is the output $AttrDef* MSDOS.SYS* $BadClus* NTDETECT.COM* $Bitmap* Program Files/ $Boot* RECYCLER/ [...] but I am not in group 'operator', and I'm now as normal user (not 'root'). Check it $ id uid=1001(zbigniew) gid=1001(zbigniew) groups=1001(zbigniew),0(wheel),1004 (media) My file /etc/devfs.rules is [localrules=1] add path 'da*' mode 0660 group media add path 'cd*' mode 0660 group media add path 'acd*' mode 0660 group media add path 'pass*' mode 0660 group media add path 'xpt*' mode 0660 group media add path 'fd[0-3]*' mode 0660 group media So it is normal that I can mount ntfs slice as normal user or it is a bug or my system is compromised? Because I read that if I want to mount device I must be in group e.g. operator or create another group e.g. media. From handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/book.html#USB-DISKS in section 18.5.2 Testing the Configuration I must do in /etc/devfs.rules [localrules=1] add path 'da*' mode 0660 group operator and in /etc/rc.conf file: devfs_system_ruleset="localrules" then I can mount USB devices. It is also true for hard disc? If I want to mount ntfs slice as normal user I must do what above but with the following changes [localrules=1] # for hard disc add path 'ad*' mode 0660 group operator Or I something do not understand (?). But as I mention earlier I can mount ntfs slice as normal user even if I'm not in operator group, it's normal, it's ok? Please for help or comments. Thanks in advance for your help. Zbigniew