Click to See Complete Forum and Search --> : Samba and Win2K SP2


MaxWave
09-07-2001, 03:31 PM
Hey all!

First let me say that I am so hooked on Linux that I might just re-format all the PCs in the office over the weekend! :) Unfortunately, i have rent to pay!

My problem is this. I am using RedHat Linux 7.1 (no RedHat jokes please, I also use Debian) and samba 2.2.1a to connect to a Win2K native domain.

The two required results are to mount all my network shares (H:, G:, etc.) and to be able to create a share with Win2k domain authentication (I.E. \\sambaserver\share).

I tried to acheive the first required result by using the mount command as follows:
mount -t smbfs -o username=user1,password=pa$$1 //domain-pdc/vol1 /mnt/vol1

I now get the following error:
XXXX: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

I tried to acheived the 2nd required result by using the smbpasswd command to join my PC to the DOMAINNAME domain. I also added a computer (LOTR) using Active Directory Users and Computers.
smbpasswd -j DOMAINNAME -D2


I get the following error message:
added interface ip=192.168.0.20 bcast=192.168.0.255 nmask=255.255.255.0
Got a positive name query response from 192.168.0.2 ( 192.168.0.2 )
modify_trust_password: machine DOMAIN-PDC rejected the tconX on the IPC$ share. Error was : ERRDOS - ERRnoaccess (Access denied.).
2001/09/07 15:16:07 : change_trust_account_password: Failed to change password for domain DOMAINNAME.
Unable to join domain DOMAINNAME.

I ran testparm with no errors and I can successfully list the shares of any Win2K PC with the following command:
smbclient -L \\domain-pdc -Uaccountname
I can also find the Samba PC from a Win2K PC.

I don't know what else to think of!? Please help!

Here is my smb.conf file
[global]
workgroup = DOMAINNAME
server string = MaxWave's Linux client
hosts allow = 192.168.0. 192.168.1. 127.
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/log.%m
max log size = 50
security = domain
password server = *
netbios name = LOTR
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=819
wins server = 192.168.0.2
dns proxy = no

Molecule Man
09-09-2001, 03:30 PM
Form www.samba.org (http://www.samba.org) Currently samba does not work with Windows 2000 SP2 or Windows XP. The next version should have support.

Malakin
09-09-2001, 07:42 PM
I've been using samba just fine with win2k since it came out. Had no problems when I upgraded all the boxes here to sp2, I've Never tried XP though.

Try this:

smbmount //1.2.3.4/win2kshare /smb/winc -o username=win2kusername,password=win2kpassword

It will say "session request to 1.2.3.4 failed" when it *works*

[ 09 September 2001: Message edited by: Malakin ]

MaxWave
09-09-2001, 09:01 PM
Malakin thanks. I will try this tomorrow when I get into the office. Thanks again!

MaxWave
09-13-2001, 05:14 PM
Ok, it took me a while but I finally tried Malakin's suggestion to no avail.

/usr/sbin/smbmount //middle-earth/bagend /home/frodo/winshare -o username=frodo,password=theonering

and I got the same thing:
6809: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

I am curious to know whether or not Malakin is running a Win2K "native" domain?

Malakin
09-13-2001, 06:01 PM
Are you running it as root?

MaxWave
09-27-2001, 09:24 AM
I am su'd as root. :confused: