Hi there, after browsing the mailing list archives for several hour I still couldn't find an answer to my problem, although it for sure sounds as if many people posted the same problem. Yet, none of the threads dealing with problems like these matched my problem, so I have to start a new thread on my own. This is my system environment: Linux machine: - Mandrake Linux 8.1 - samba-2.2.1a (installed from rpm packages that came with my distribution) Windows machine: - Windows 2000 SP2 - Member of a domain - NOT primary domain controller (and I can't make it one, so don't ask me to) This is my problem: I want to access a windows share on the win2k machine with smbmount. I found out that smbclient works fine, e.g. with this line: smbclient //brainless/misc -U BRAINLESS/Administrator -N With this command I can access the windows share which doesn't have a password. If I don't give the computer name in front of the username, I get an access denied error, but with this command it works. Unfortunately, the analogy smbmount //brainless/misc /mnt/misc -o username=BRAINLESS/Administrator or mount -t smbfs -o username=BRAINLESS/Administrator //brainless/misc /mnt/misc does not work, I always get the ERRnoaccess (Access denied.) message. I also tried different accounts, other than the admin account on the win2k machine, and it always works fine with smbclient, but never with smbmount. I have an entry in my smb.conf so that the workgroup name matches the domain name of the windows machine (although I don't see what this has to do with my problem, but I've seen this mentioned before and I want to avoid questions about this), I also have the smbfs module loaded. I hope anybody has an idea what is wrong here. If you need more information, just ask me... Thanks in advance, Sascha
On Tue, 23 Oct 2001, Sascha Sertel wrote:> smbmount //brainless/misc /mnt/misc -o > username=BRAINLESS/Administrator > or > mount -t smbfs -o username=BRAINLESS/Administrator //brainless/misc > /mnt/misc > > does not work, I always get the ERRnoaccess (Access denied.) message.Does username=Administrator,workgroup=BRAINLESS work? -N is the same as the 'guest' option to smbmount, you could try adding that. And if that fails, try (and I'm making this up as I type :) password=,username=Administrator,workgroup=BRAINLESS,guest password=,username=,workgroup=BRAINLESS,guest password=,username=,guest I think smbmount parses a username "BRAINLESS/Administrator" into username=BRAINLESS workgroup=Administrator which seems kind of backwards ... smbclient just accepts all of it as username and passes it as-is to the library code. Maybe someone else splits it later for smbclient, in which case smbmount could do that too. To test that get the sources and remove these lines from source/client/smbmount.c:parse_mount_smb if ((lp=strchr_m(username,'/'))) { *lp = 0; pstrcpy(workgroup,lp+1); } Haven't looked at 2.2.2 or the cvs code yet. /Urban
> > Does username=Administrator,workgroup=BRAINLESS work? >YES, IT WORKS! Actually I DID play around with the workgroup parameter, but then there was something else wrong with my network and I think it didn't run then because of the network problem. But I never thought of trying it again like that afterwards. Thank you so much... finally this time consuming and exhausting quest has come to an end! Sascha
Hello, Samba experts. I'm stuck, hope you can help. In the smbmount man page, it says questions should be addressed here, I hope it works. I set up 10 RedHat linux 8.0 systems. As far as I know, they are all the same. The Samba packages have been upgraded to samba-2.2.7-2 in their updates directory. smbmount works on all but 2 of them. On two, which happen to be side by side, incidentally, this happens when a non-root user tried to mount something: $ smbmount //blake01/Pols blake01 -o username=pjohnson Password: mount.smbfs[1103]: ioctl failed, res=-1 1103: Could not umount /home/pjohnson/blake01: Operation not permitted This happens even though the user DOES own the mount point and I've given users permission with chmod +s to use smbmnt $ ls -la /usr/bin/smbmnt -rwsr-sr-x 1 root root 560710 Nov 20 11:18 /usr/bin/smbmnt I have stared at this for a long long time, searched far and wide, but everybody just keeps telling me "chmod +s /usr/bin/smbmnt". I have found the trouble shooting Samba chapter on the Samba site, don't see any help there. And, an even bigger part of the mystery is that I am able to use smbclient to log into the target server (a win2000 system) and I can view directories and such. So, obviously, it is something I've done wrong in configuring this system, possibly something on which Samba depends, but it is only infrequently wrong, so most people don't see it. I've confirmed that on all concerned systems, the permissions are comparable: $ ls -la /bin/mount -rwsr-xr-x 1 root root 81996 Aug 30 2002 /bin/mount $ ls -la /usr/bin/smb* -rwxr-xr-x 1 root root 2036 Nov 20 11:18 /usr/bin/smbadduser -rwxr-xr-x 1 root root 1118147 Nov 20 11:18 /usr/bin/smbcacls -rwxr-xr-x 1 root root 632525 Nov 20 11:18 /usr/bin/smbclient -rwxr-xr-x 1 root root 417621 Nov 20 11:18 /usr/bin/smbcontrol -rwsr-sr-x 1 root root 560710 Nov 20 11:18 /usr/bin/smbmnt -rwxr-xr-x 1 root root 571094 Nov 20 11:18 /usr/bin/smbmount -rwxr-xr-x 1 root root 1078825 Nov 20 11:18 /usr/bin/smbpasswd -rwxr-xr-x 1 root root 2293 Nov 20 11:18 /usr/bin/smbprint -rwxr-xr-x 1 root root 560241 Nov 20 11:18 /usr/bin/smbspool -rwxr-xr-x 1 root root 418346 Nov 20 11:18 /usr/bin/smbstatus -rwxr-xr-x 1 root root 4862 Nov 20 11:18 /usr/bin/smbtar -rwsr-sr-x 1 root root 560384 Nov 20 11:18 /usr/bin/smbumount pj -- Paul E. Johnson email: pauljohn@ukans.edu Dept. of Political Science http://lark.cc.ku.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045 FAX: (785) 864-5700