From owner-freebsd-questions Thu Oct 17 13:29:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF8B337B401 for ; Thu, 17 Oct 2002 13:29:51 -0700 (PDT) Received: from ns.museum.rain.com (gw-ipinc.museum.rain.com [206.29.169.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C55B43E4A for ; Thu, 17 Oct 2002 13:29:51 -0700 (PDT) (envelope-from list@museum.rain.com) Received: from ns.museum.rain.com (localhost [127.0.0.1]) by ns.museum.rain.com (8.12.6/8.12.6) with ESMTP id g9HKTo13008176 for ; Thu, 17 Oct 2002 13:29:50 -0700 (PDT) (envelope-from list@ns.museum.rain.com) Received: (from list@localhost) by ns.museum.rain.com (8.12.6/8.12.6/Submit) id g9HKToj1008175 for freebsd-questions@freebsd.org; Thu, 17 Oct 2002 13:29:50 -0700 (PDT) (envelope-from list) Date: Thu, 17 Oct 2002 13:29:50 -0700 From: James Long To: freebsd-questions@freebsd.org Subject: sudo and mount_smbfs authentication problem Message-ID: <20021017132950.A8125@ns.museum.rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am setting up some scripts which need to mount an unmount SMB shares. I want to do this as an unprivileged user. I have installed sudo, and am operating it manually to ascertain the manner in which I will incor- porate it into my scripts. As root, I have no problem with: /root# mkdir mnt /root# mount_smbfs //photocd@pdx-james/pub mnt Password: /root# ls mnt and sure enough, /root/mnt has the share mounted. Clearly I know and can accurately type the password for login "photocd". But as an ordinary user (actually, a wheel user, and I [think I] have sudo set up to allow wheel users to do anything), I get: First without sudo, to see what error I get if sudo isn't doing it's thing: /usr/home/joeblow> mount_smbfs //photocd@pdx-james/pub mnt Warning: no cfg file(s) found. mount_smbfs: can not setup kernel iconv table (default:tolower): syserr = Operation not permitted Using sudo, I get: /usr/home/joeblow> sudo mount_smbfs //photocd@pdx-james/pub mnt Password: Password: mount_smbfs: unable to open connection: syserr = Authentication error Here is the meat of my sudoers file: # User privilege specification root ALL=(ALL) ALL # Uncomment to allow people in group wheel to run all commands %wheel ALL=(ALL) ALL What is preventing joeblow from using mount_smbfs? The "photocd" login is authenticated by a Windows NT 4.0 Server domain, if that is relevant. Thanks in advance! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message