From owner-freebsd-stable@FreeBSD.ORG Thu Oct 18 17:15:28 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C076816A4A0 for ; Thu, 18 Oct 2007 17:15:27 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7DB13C510 for ; Thu, 18 Oct 2007 17:15:27 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id l9IHFPhd066077; Thu, 18 Oct 2007 19:15:26 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 58577B869; Thu, 18 Oct 2007 19:15:25 +0200 (CEST) Date: Thu, 18 Oct 2007 19:15:25 +0200 From: Roland Smith To: Ivan Voras Message-ID: <20071018171525.GA61376@slackbox.xs4all.nl> Mail-Followup-To: Ivan Voras , freebsd-stable@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org Subject: Re: Mounting smbfs as user? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2007 17:15:28 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 18, 2007 at 04:08:09PM +0200, Ivan Voras wrote: > Hi, >=20 > I'm trying to implement smbfs mounting by regular non-root users and I > can't make any progress. vfs.usermount is set to 1. >=20 > When I try mounting a remote file system, this is what I get: >=20 > > mount_smbfs -I server //user@server/pre mt > Warning: no cfg file(s) found. > mount_smbfs: can not setup kernel iconv table (ISO8859-1:tolower): > syserr =3D Operation not permitted >=20 > The same command works under root, and the appropriate klds are loaded: > Any ideas? The user in question probably needs read/write access to the /dev/smbX device in question. An elagant solution is to create a group called e.g. smbusers. All the users who need to mount an smb share should be added to this group. Then you have to add the following rule to your /etc/devfs.rules file; [local_ruleset=3D10] add path 'smb*' mode 0660 group smbusers The following then needs to be set in /etc/rc.conf. devfs_system_ruleset=3D"local_ruleset" Then reboot or re-start devfs and try again. Normally when mounting a drive as a normal user, the user in question needs to _own_ the mount point. I'm not sure if this applies to smb devices, but try it. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHF5StEnfvsMMhpyURAqG+AJ9PwB9UYZxgAr5WltKDhpNiG+FDpQCfbzIL CDxdLDW4c7fjV8cjM1Tg2Do= =IujG -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--