SAMBA: authentication problem?

Hi,
I had SMB filesharing working fine in 10.1.
I recently reformatted and installed 11.0.
Now I connot open shared folders on the Suse machine from XP or Mac.

From XP, I can see the shared files. I can open the shared printer. But when I try to open a shared folder, a login box pops up and it will not accept any of my user L/P or even root L/P.
Using:
smbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0

I do not get any error in the SMB log when the authentication fails for the folders, but I do get the following message when I first connect to the Suse machine from XP:

[2008/08/16 12:28:54, 0] param/loadparm.c:process_usershare_file(8175)
process_usershare_file: stat of /var/lib/samba/usershares/. failed. Permission denied
[2008/08/16 12:28:54, 0] param/loadparm.c:check_usershare_stat(7934)
check_usershare_stat: file /var/lib/samba/usershares/. owned by uid 0 is not a regular file
[2008/08/16 12:28:54, 0] smbd/service.c:make_connection(1360)
audio (::ffff:192.168.0.108) couldn’t find service .

Can anyone help troubleshoot?
thanks
W

You didn’t just copy over the smb.conf from 10.1 did you?

The Suse box is asking for the credentials of a member of the Samba user database. You can add a user to the samba user database and tell the credentials to the user on the win/mac boxes. Or you can arrange for guest access.

Q1: did you in 10.1 use authentication or did you use guest access (no authentication) to share from 10.1?
Q2: Please post your file smb.conf located at /etc/samba/smb.conf so can see what share/s being used (cuts out a lot of Q and A dialogue).
Q3: Please describe the share that’s being used – what’s the purpose (music, docs, where is it etc)?

Hi,
No, I did not move the conf from the previous version. It was a clean install.

Not sure about Q1. I just started samba and shared some folders with the samba utility.

When it asks for a L/P i am giving it a user and password that is on the Suse box. Basically I want the users who have accounts on this machine to be able to map to the share folder or other folders in their home dir.

The conf file is below (user names changed).
Thanks
-W

smb.conf is the main Samba configuration file. You find a full commented

version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the

samba-doc package is installed.

Date: 2008-06-06

[global]
workgroup = workgroup
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \%L\profiles.msprofile
logon home = \%L%U.9xprofile
logon drive = P:
usershare allow guests = Yes
lanman auth = yes

add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
usershare max shares = 100
idmap gid = 10000-20000
idmap uid = 10000-20000

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

Share disabled by YaST

[netlogon]

comment = Network Logon Service

path = /var/lib/samba/netlogon

write list = root

[share]
comment = share
inherit acls = Yes
path = /home/user/share/
read only = No

[torrent]
comment = bittorrent
inherit acls = Yes
path = /home/user/torrent/
read only = No

I don’t know where this stuff creppt in from:

lanman auth = yes

add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
usershare max shares = 100
idmap gid = 10000-20000
idmap uid = 10000-20000

I suggest you just delete those lines

I think your real problem is a need to add users to the Samba users’ database. The Linux users don’t work on Samba until you add them to the Samba users’ database. To add e.g. user named twiggie to the database or to change twiggie’s password, enter this command in a console:

sudo smbpasswd -a twiggie

wbortz wrote:

>
> Hi,
> I had SMB filesharing working fine in 10.1.
> I recently reformatted and installed 11.0.
> Now I connot open shared folders on the Suse machine from XP or Mac.
>
> From XP, I can see the shared files. I can open the shared printer.
> But when I try to open a shared folder, a login box pops up and it will
> not accept any of my user L/P or even root L/P.
> Using:
> smbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0
>
> I do not get any error in the SMB log when the authentication fails for
> the folders, but I do get the following message when I first connect to
> the Suse machine from XP:
>
> [2008/08/16 12:28:54, 0]
> param/loadparm.c:process_usershare_file(8175)
> process_usershare_file: stat of /var/lib/samba/usershares/. failed.
> Permission denied
> [2008/08/16 12:28:54, 0] param/loadparm.c:check_usershare_stat(7934)
> check_usershare_stat: file /var/lib/samba/usershares/. owned by uid 0
> is not a regular file
> [2008/08/16 12:28:54, 0] smbd/service.c:make_connection(1360)
> audio (::ffff:192.168.0.108) couldn’t find service .
>
> Can anyone help troubleshoot?
> thanks
> W
>
>
wbortz;
Have you added users with “smbpasswd -a <username>” ?
Look at the following web site
http://www.swerdna.net.au/linux.html
and check your configuration against the recommendations there.

If you still are having problems, post the contents of /etc/samba/smb.conf.
You can use place holders for any information that would compromise your
network.

P. V.
Only fools rush in where angels fear to tread.

PV wrote:

<snip>
I see Swerdna has already answered. Those of us using news readers did not see
this post until today. Sorry for the added noise.


P. V.
Only fools rush in where angels fear to tread.

Ok,
Got it. Thanks to Swerdna and the others who helped.
I don’t remember having to add the user separately to the SAMBA db on the older distro, but that did the trick here. Glad it was so simple. Thanks for the help. -W