LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2004, 01:15 PM   #1
pentax9380
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Samba Is Kicking My Butt!!


Hi all! I'm running Mandrake 9.2 on a media server. All I want to do is set up a samba share to pipe MP3s to my Audiotron. I've got it to the point where the both the Audiotron and Windows XP Pro SP1a can see the server, and the share. I can see the dang share in My Network Places in WinXP, and my audiotron sees the media server (hostname MEDIA). BUT!!! (Isn't there always a but...) When I try to access the share via WinXP, it asks for a user and password. I've got a user called "audiotron" set up in samba. When I put in "audiotron" as the user, and the right password, it says NOPE!! The username box in XP dissappears for a sec, then comes back up with "OMEGAPRIME/audiotron" in the user box (OMEGAPRIME is my WinXP hostname) and it never lets me into the share!! Any help? What follows is the contents of my "smb.conf" file:

# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2004/09/26 01:10:13

# Global parameters
[global]
server string = Samba Server %v
security = USER
encrypt passwords = Yes
map to guest = Bad User
obey pam restrictions = Yes
password server = *
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
winbind uid = 10000-20000
winbind gid = 10000-20000
template shell = /bin/bash
winbind separator = /
winbind use default domain = Yes
printer admin = @"Domain Admins"
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &

[pdf-screen]
comment = PDF Generator - Screen quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[pdf-printer]
comment = PDF Generator - Print quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[pdf-prepress]
comment = PDF Generator - PrePress quality (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
copy = pdf-generator

[music]
comment = Jupiter Network Music Share
path = /music
guest account = audiotron
guest ok = yes
hosts allow = 192.168.*


HELP ME PLEASE!!!
 
Old 09-27-2004, 01:21 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
i think you probably need the same username (i.e., audiotron) on winxp. then log in as audiotron and try it.
 
Old 09-27-2004, 02:19 PM   #3
SyncHost
LQ Newbie
 
Registered: Sep 2004
Location: Virginia
Distribution: (Multiple)
Posts: 2

Rep: Reputation: 0
By default, Windoze always encrypts passwords before sending them over the wire. Samba likes plain text passwords. Try turning off password encryption on your Windoze box and see if that solves the problem. To do this, use the following procedure:

Run Registry Editor (Regedt32.exe).
From the HKEY_LOCAL_MACHINE subtree, go to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters

On the Edit menu, click Add Value.
Add the following: Value Name: EnablePlainTextPassword
Data Type: REG_DWORD
Data: 1

Click OK and then quit Registry Editor.
Shut down and restart Windoze.

To enable unencrypted (plain text) passwords in an automated setup, modify the registry in the following way:

Add the following line to the Product.Add.Reg section of the Update.inf file:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters, "EnablePlainTextPassword", 0x10001, 1

Hope this helps!
 
Old 09-27-2004, 02:29 PM   #4
pentax9380
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the input, I'll give it a try when I get home. Incidently, just for future referance, in XP Pro, which is what I am running, you have to use the following procedure for enabling plain text passwords:

1. Start -> Programs -> Administrative Tools
We have seen some Windows XP systems that did not have Administrative Tools on the Programs menu. If it is not there do:
1a. Start -> Settings -> Control Panel -> Administrative Tools
or
1b. Start -> Control Panel -> Performance and Maintenance -> Administrative Tools
2. On the Administrative Tools Folder, double-click Local Security Policy.
3. On the Security Setting folder, click the plus sign next to Local Policies +to expand it.
4. Double-click Security Options.
5. Scroll down to near the bottom of the list.
6. Double-click -> Microsoft network client: Send unencrypted passwords to connect to third-party SMB servers
7. Click the Enabled radio button.
8. Click OK
9. Close the Local Security Settings Window
10. Shut down Windows XP and reboot.
11. After rebooting, use the above procedure to check that Microsoft network client: Send unencrypted passwords to connect to third-party SMB servers shows the Local Security Setting set to Enabled.

The procedure SyncHost laid out is for XP Home.
 
Old 09-27-2004, 02:58 PM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
you already have encrypted passwords = yes in your smb.conf, so why would you need to do that?
 
Old 09-28-2004, 04:32 PM   #6
SyncHost
LQ Newbie
 
Registered: Sep 2004
Location: Virginia
Distribution: (Multiple)
Posts: 2

Rep: Reputation: 0
Actually, it's not. If you perform the procedure as outline by pentax and then check the registry key, you'll find the same value as outlined in the instructions I provided. Straight from the Microsoft Knowledgebase.
 
Old 09-28-2004, 04:44 PM   #7
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
you need to have whatever username and password you decide to use in samba's password backend. may just be a matter of running smbpasswd -a <username> and going from there
 
Old 09-28-2004, 05:57 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
Quote:
Originally posted by Sutekh
you need to have whatever username and password you decide to use in samba's password backend. may just be a matter of running smbpasswd -a <username> and going from there
i agree, it's some issue with the user on one of the computers. either that, or it's one of the other smb settings like password server, etc. btw, why do you need that? do you even have a password server? i would get rid of things that could cause authentication problems until you have your shares working. then add it later if you decide you want or need to.

samba has always worked fine for me with xp/2k using the encrypt passwords option without ever having to adjust the registry. i would recommend messing with the registry only as a last resort -- and make sure you have a backup.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux saved my butt again. /bin/bash LinuxQuestions.org Member Success Stories 2 10-01-2005 12:20 AM
Linux Scripting Issue Kicking my Butt !!! steve_f60 Linux - General 1 04-29-2005 04:00 PM
Rdesktop kicks butt! Whitehat LinuxQuestions.org Member Success Stories 16 12-11-2004 06:30 PM
Apache is a pain in my butt! richcoosa19 Linux - Networking 5 07-08-2003 06:24 PM
My PC becoming a real sore in the butt qanopus General 2 12-26-2002 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration