From owner-freebsd-current Thu Feb 17 19: 8:55 2000 Delivered-To: freebsd-current@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id AB58137B64D for ; Thu, 17 Feb 2000 19:08:49 -0800 (PST) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12LdmQ-000CDu-00; Fri, 18 Feb 2000 09:08:30 +0600 Date: Fri, 18 Feb 2000 09:08:30 +0600 (ALMT) From: Boris Popov To: Dan Nelson Cc: The Hermit Hacker , freebsd-current@FreeBSD.ORG Subject: Re: [mount_nwfs] Got it!! But ... In-Reply-To: <20000217122919.B11137@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 17 Feb 2000, Dan Nelson wrote: > > I've looked at the man page and the .nwfsrc file, but there is a > > 'flaw' there, and that is what does one do in a multi-user > > environment, where I want to mount n users netware drives to the > > system on reboot? they have to give me their netware passwords? > > This is where Terry joins in, and talks about per-user credentials. > The problem is that the unix mount style (mount as root, and limit > access on the client as users access files) doesn't mesh well with the > Netware/SMB model (one independant mount per user). Yeah, this problem exists. Someone with good design and programming skills really should sit down and write session manager. While this isn't done I've made some workarounds in the ncplib to achieve same goals: Connection to netware server have the same the same attributes as file, eg. access mode, owner id, group id. This allows to make private conections which is not visible to other users. Since there is no way to ask user about password at boot time, there is a 'password' variable which works as persistent password "cache". There is also another way to do that, I'm calling it as "lazy mounts". If mount point is marked as "lazy" then it mounted on boot as normal mount but no netware login is performed and user sees typical SYS:LOGIN files. After that, user can issue an "mount_nwfs /home/fred/nwmount" command and enter password at promt. May be this method will be implemented in the next version of ncplib. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message