I've installed Samba 2.2.3a on a Debian Linux machine and am trying to mount a file directory from an NT machine. When I use smbclient as in smbclient //etbodnyk/work -U fciam/bbodnyk it prompts me for a password and I can get to my work directory. When I try to mount the directory using mount -t smbfs -o username=fciam/bbodnyk //etbodnyk/work /mnt I again get prompted for a password but the mount fails with the following error messages: 4854: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed mount: backgrounding "//etbodnyk/work" etlinux1:/usr/local/samba/bin# Password: Anonymous login successful 4856: tree connect failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed. My Linux box is in the same domain as the NT box however on the NT side my user account in registered in the fciam domain. Also what is interesting is I can mount directories successfully from my Windows 2000 laptop. Why is smbclient working but not the mount? Any help would be appreciated! Thanks! Bruce Bruce W. Bodnyk Staff Engineer, CAE Development FCI Electronics 825 Old Trail Road Etters, PA 17319-9351 Phone: (717) 938-7543 Fax: (717) 938-7224 E-Mail: bbodnyk@fciconnect.com
On Fri, 1 Mar 2002, Bodnyk, Bruce W wrote:> When I try to mount the directory using > > mount -t smbfs -o username=fciam/bbodnyk //etbodnyk/work /mntDoes it work if you do "username=bbodnyk,workgroup=fciam" ?> Why is smbclient working but not the mount?Because they are different programs doing different things? :) Lots of code is shared, but some isn't. It is possible to compare them and copy code from smbclient to smbmount. The source files to start with are: source/client/client.c source/client/smbmount.c Another reason might be if the programs are from different samba versions. /Urban