LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-07-2010, 12:13 PM   #1
nakedlunch
LQ Newbie
 
Registered: May 2007
Location: Memphis
Distribution: Slackware 12.0
Posts: 18

Rep: Reputation: 0
Can't connect to Samba shares after 12.2-->13.1 upgrade (Samba 3.2.x-->3.5.2)


I recently upgraded a fileserver running Slackware 12.2 (Samba 3.2.x) to 13.1 (64 bit) but haven't been able to authenticate or access shares from any of the Windows PCs on the local network post-upgrade. I'm using the same smb.conf as before. All the Windows boxes are running XP SP3; they can see the server within the local network, but can't get past the authentication dialog. I'm sure this is most likely a simple matter of needing a new line in the smb configuration file, but I haven't been able to pin down any changes between the 3.2 and 3.5 Samba series that would require additional parameters. Thanks in advance for your help; my smb.conf is below:
Quote:
[global]
workgroup = WEAVER
server string = slackserver
security = user
max log size = 50
passdb backend = tdbsam
encrypt passwords = yes

[homes]
comment = home directories
browseable = no
writeable = yes

[weaver]
comment = weaver
path = /home/weaver
valid users = @weaver
writeable = yes
public = no
create mask = 0660
directory mask = 0770

[weaveradmin]
comment = weaveradmin
path = /home/weaveradmin
valid users = @weaveradmin
writeable = yes
public = no
create mask = 0660
directory mask = 0770
 
Old 06-07-2010, 02:22 PM   #2
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Since you're using valid users = @weaver, and @weaveradmin, did you setup and add the extra users to those groups?

I always run testparm to validate my smb.conf.
 
Old 06-07-2010, 03:04 PM   #3
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by nakedlunch View Post
I recently upgraded a fileserver running Slackware 12.2 (Samba 3.2.x) to 13.1 (64 bit) but haven't been able to authenticate or access shares from any of the Windows PCs on the local network post-upgrade. I'm using the same smb.conf as before. All the Windows boxes are running XP SP3; they can see the server within the local network, but can't get past the authentication dialog. I'm sure this is most likely a simple matter of needing a new line in the smb configuration file, but I haven't been able to pin down any changes between the 3.2 and 3.5 Samba series that would require additional parameters. Thanks in advance for your help; my smb.conf is below:
I had to recreate the Samba passwords.
 
Old 06-07-2010, 03:45 PM   #4
nakedlunch
LQ Newbie
 
Registered: May 2007
Location: Memphis
Distribution: Slackware 12.0
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Since you're using valid users = @weaver, and @weaveradmin, did you setup and add the extra users to those groups?

I always run testparm to validate my smb.conf.
Yes--all users have been added and made members of appropriate groups. I also ran testparm, which did not raise any alerts.

Quote:
I had to recreate the Samba passwords.
How do you mean? The passdb.tdb and secrets.tbd files stored in /etc/samba/private were created new with this installation. Since I went from a 32bit version of slackware to a 64 bit, I wiped clean the entire filesystem, sans /home, prior to the install.
 
Old 06-07-2010, 04:13 PM   #5
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by nakedlunch View Post
Quote:
Originally Posted by gezley View Post
I had to recreate the Samba passwords.
How do you mean? The passdb.tdb and secrets.tbd files stored in /etc/samba/private were created new with this installation. Since I went from a 32bit version of slackware to a 64 bit, I wiped clean the entire filesystem, sans /home, prior to the install.
smbpasswd
 
Old 06-07-2010, 04:16 PM   #6
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,178

Rep: Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762Reputation: 1762
Quote:
Originally Posted by nakedlunch View Post
Yes--all users have been added and made members of appropriate groups. I also ran testparm, which did not raise any alerts.


How do you mean? The passdb.tdb and secrets.tbd files stored in /etc/samba/private were created new with this installation. Since I went from a 32bit version of slackware to a 64 bit, I wiped clean the entire filesystem, sans /home, prior to the install.
What I meant was that the following solved a similar problem for me:

smbpasswd -a user

I upgraded 64-bit Slackware 13.0 to 13.1 without wiping anything.
 
Old 06-07-2010, 04:24 PM   #7
nakedlunch
LQ Newbie
 
Registered: May 2007
Location: Memphis
Distribution: Slackware 12.0
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks all for the timely replies. Totally forgot that if you add users after Samba creates the .tdb files that you also have to run smbpasswd. D'oh! Problem solved.
 
  


Reply



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
connect to samba shares on startup pepsimachine15 Linux - Software 39 07-01-2008 07:28 AM
Samba error when trying to connect to shares remyforbes777 Linux - Software 10 01-28-2007 04:49 PM
samba shares take an age to connect miner49er Linux - Software 5 09-20-2006 01:38 PM
Samba can't connect to Windows shares soren625 Linux - Software 2 01-22-2005 08:25 AM
Can't connect to Windows shares w/ Samba everythingand2 Slackware 7 01-15-2005 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:19 AM.

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