Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-27-2004, 01:15 PM
|
#1
|
LQ Newbie
Registered: Sep 2004
Posts: 2
Rep:
|
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!!!
|
|
|
09-27-2004, 01:21 PM
|
#2
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Rep:
|
i think you probably need the same username (i.e., audiotron) on winxp. then log in as audiotron and try it.
|
|
|
09-27-2004, 02:19 PM
|
#3
|
LQ Newbie
Registered: Sep 2004
Location: Virginia
Distribution: (Multiple)
Posts: 2
Rep:
|
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!
|
|
|
09-27-2004, 02:29 PM
|
#4
|
LQ Newbie
Registered: Sep 2004
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
09-27-2004, 02:58 PM
|
#5
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Rep:
|
you already have encrypted passwords = yes in your smb.conf, so why would you need to do that?
|
|
|
09-28-2004, 04:32 PM
|
#6
|
LQ Newbie
Registered: Sep 2004
Location: Virginia
Distribution: (Multiple)
Posts: 2
Rep:
|
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.
|
|
|
09-28-2004, 04:44 PM
|
#7
|
Member
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273
Rep:
|
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
|
|
|
09-28-2004, 05:57 PM
|
#8
|
Senior Member
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|