image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 23rd, 2001, 05:14 AM
In debt medical student
 
Join Date: Sep 2001
Location: In a chair
Posts: 270
Thanks: 0
Thanked 0 Times in 0 Posts
Lazarus18 is on a distinguished road
Angry W2K not sending pw for Samba

I just installed W2K on my formerly 98 box. I had Dave installed which seemed to preclude the use of Samba, but since doing a clean install of 10.1 I wanted to get Samba up and running again. I've set up shares and all that without issue. The problem is connecting to them. I've got the password encryption option set to on, which I thought would resolve any communication problems, but it seems that either W2K isn't sending the username/pw or samba doesn't realize it's a valid name. What happens is:

I connect to the server using w2k. My username and password is the same on both the OSX and W2K boxes. I see the shares. I click on one, it says something about invalid username or name not recognized or some such nonsense. If I set the shares to allow guest access then of course everything is grand. But that's not what I want to do.

How do I make sure that samba is looking at the list of users in netinfo? If that's OK, how do I make sure that W2K is sending it properly?

Thanks,
-Rob
Reply With Quote
  #2  
Old October 23rd, 2001, 06:50 AM
rharder's Avatar
Do not read this sign.
 
Join Date: Mar 2001
Location: Virginia, USA
Posts: 1,186
Thanks: 0
Thanked 0 Times in 0 Posts
rharder is on a distinguished road
I'm having a similar problem (the IPC$ problem) with my Win98 box.

I found some Common Samba Errors pages, and they discussed this. 'Seems that after you configure Samba to use encrypted passwords (I use SWAT) you have to manually add "users" to the samba user database, of sorts, with the smbpasswd -a user command.

Problem: the smbpasswd command on my system doesn't support the -a flag, so I don't know what's up.

-Rob
__________________
There are only 10 kinds of people in the world:
Those who understand binary, and those who don't.
Reply With Quote
  #3  
Old October 23rd, 2001, 07:15 PM
In debt medical student
 
Join Date: Sep 2001
Location: In a chair
Posts: 270
Thanks: 0
Thanked 0 Times in 0 Posts
Lazarus18 is on a distinguished road
Well, that's my problem too. You can add users through SWAP. But I have a new set of problems....

Actually I think it's the explanation for the one problem, not new. I can't change my passwd with smbpasswd. When I try it says something to the effect of password not recognized. I think that's why samba won't accept the connections from W2K. When I try to add a user through SWAP it just kind of sits there, but never returns a new page. Any thoughts? Not sure how to get samba playing nice here.

-Rob
Reply With Quote
  #4  
Old November 2nd, 2001, 04:22 AM
In debt medical student
 
Join Date: Sep 2001
Location: In a chair
Posts: 270
Thanks: 0
Thanked 0 Times in 0 Posts
Lazarus18 is on a distinguished road
I fianlly got this to work, so I thought I'd post the answer for anyone else's benefit.

Once you turn on encrypted passwords samba will look to its password file to verify the user. Problem is that the default install has no password file. This explains my problem. So you must add the file. Doing this requires logging in as root. I think this explains rharder's problem. so it's:
% su
Password:
# cd /usr/local/samba/bin
# smbpasswd -a usernameyouwanttocreate

You get a bunch of error messages, but ignore them. It does create the user and ask you for the passwords you want assigned to it. It looks like this:
[localhost:local/samba/bin] root# smbpasswd -a test
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was No such file or directory
unable to open passdb database.
startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was No such file or directory
Added user test.

The passwd file will now be in /usr/local/samba/private for future reference. Theoretically you can do nifty tricks to update this file with the system passwd file automatically, but as I'm the sole user of my machine changing passwords doesn't really happen, so I didn't look into it. Hope this helped someone.
__________________
-Rob


-iMac 20" 2.4Ghz C2D, 1GB RAM, 500GB HD
-iBook G4 1.2 GHz, 756 MB RAM, 60GB HD, Superdrive
Reply With Quote
  #5  
Old November 28th, 2001, 01:30 AM
Registered User
 
Join Date: Sep 2001
Location: Tokyo, Japan
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
legacyb4 is on a distinguished road
OS X & Samba in an NT Domain

Rob,

Thanks for the tips; definitely easier than the SSCT page instructions.

However, I still have the following problem(s) with my OS X machine in a proper NT domain environment:

Samba 2.2.2 is configured to a T (I think) using SSCT

GLOBAL:
Servername: OS X server name according to NT requirements
Workgroup: NT domain name
WINS: NT domain WINS server IP address

SECURITY:
Security Type: NT Domain
Guest acount: Guest
Map unknown users to guest: ON
Encrypt passwords: ON
Allow Hosts: IP address of machine I'm connecting from

SHARES:
Name: Share name in Brackets
Path: mapped to desired folder on OS X server
Permissions: Writeable

I can browse the server under My Network Places (on a Windows 2000 box) but when I click on the actual shared folder, I get the following message:

\\server_name\share_name is not accessible
The credentials supplied conflict with an existing set of credentials

The killer thing is that I cannot create accounts under smbpasswd unless those exist in the system password file (message I get is: User USER does not exist in system password file (usually /etc/passwd). Cannot add account without a valid local system user.)

What am I missing now?

Cheers.
__________________
Macbook (Black) C2D/120GB/2GB | G5/1.6 250GBx2/1.25GB
Free Mobile Phone Ringtone, Application, & Screensaver Uploader
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem sending attachments with Entourage PowerBookDude Mac OS X System & Mac Software 2 May 17th, 2005 05:41 PM
sending messages avatar_000 Unix & X11 7 May 8th, 2003 09:01 AM
Mail.app not sending mail tobes Mac OS X System & Mac Software 2 April 30th, 2003 06:39 PM
Ideas on sending keystrokes to Classic? bbloke Mac OS X System & Mac Software 2 February 7th, 2003 05:16 AM
error sending mail with mutt alligatorTim Unix & X11 0 December 3rd, 2002 05:37 PM


All times are GMT -5. The time now is 10:00 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.