I guess I wasn’t clear. I was wondering how to add a user with smbpasswd located on a remote computer, and not a user located on the server computer.
Anyway, here is the latest. I added the force user = PMG in the [global] section.
linux-idxo:/var/log/samba # cat /etc/samba/smb.conf
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: 2011-03-01
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
netbios name = linux-idxo
name resolve order = bcast host lmhosts wins
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
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
wins support = No
log level = 1 auth:3
ldap suffix =
wins server =
force user = PMG
[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
[PMG]
comment = Physical Medicine Group Records
inherit acls = Yes
path = /home/PMG/share
read only = No
guest ok = Yes
Share disabled by YaST
[netlogon]
accessing the share folder from the computer linux-idxo, from the user PMG. Note linux-idxo hosts the samba server. Also note, I used smbpasswd to remove and add PMG thinking I had a password problem. I made sure the password was tbdsam.
linux-idxo:/var/log/samba # cat log.smbd
[2011/09/21 19:12:03.386123, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][PMG]@[LINUX-IDXO] with the new password interface
[2011/09/21 19:12:03.386246, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][PMG]@[LINUX-IDXO]
[2011/09/21 19:12:03.390170, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [PMG] -> [PMG] FAILED with error NT_STATUS_WRONG_PASSWORD
[2011/09/21 19:12:03.390671, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user ]]@] with the new password interface
[2011/09/21 19:12:03.390723, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: ]]@]
[2011/09/21 19:12:03.391092, 3] auth/auth.c:265(check_ntlm_password)
check_ntlm_password: guest authentication for user ] succeeded
[2011/09/21 19:12:03.434613, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][PMG]@[LINUX-IDXO] with the new password interface
[2011/09/21 19:12:03.434642, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][PMG]@[LINUX-IDXO]
[2011/09/21 19:12:03.435042, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [PMG] -> [PMG] FAILED with error NT_STATUS_WRONG_PASSWORD
[2011/09/21 19:12:03.435154, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user ]]@] with the new password interface
[2011/09/21 19:12:03.435167, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: ]]@]
[2011/09/21 19:12:03.435256, 3] auth/auth.c:265(check_ntlm_password)
check_ntlm_password: guest authentication for user ] succeeded
[2011/09/21 19:12:05.294501, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-IDXO] with the new password interface
[2011/09/21 19:12:05.294528, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-IDXO]
[2011/09/21 19:12:05.294558, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:12:05.294568, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:12:09.665051, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-IDXO] with the new password interface
[2011/09/21 19:12:09.665079, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-IDXO]
[2011/09/21 19:12:09.665110, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:12:09.665120, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:12:12.225990, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-IDXO] with the new password interface
[2011/09/21 19:12:12.226019, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-IDXO]
[2011/09/21 19:12:12.226049, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:12:12.226058, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:12:12.228429, 1] smbd/service.c:1070(make_connection_snum)
linux-idxo (::ffff:192.168.1.40) connect to service PMG initially as user PMG (uid=1000, gid=100) (pid 28754)
[2011/09/21 19:12:12.788633, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:12:12.788750, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:12:12.788864, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:12:12.788906, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:12:12.799124, 1] smbd/service.c:1070(make_connection_snum)
linux-90yq (::ffff:192.168.1.15) connect to service PMG initially as user PMG (uid=1000, gid=100) (pid 28759)
[2011/09/21 19:12:22.275942, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:12:22.275973, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:12:22.276006, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:12:22.276015, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:12:22.283324, 1] smbd/service.c:1070(make_connection_snum)
linux-90yq (::ffff:192.168.1.15) connect to service PMG initially as user PMG (uid=1000, gid=100) (pid 28761)
deleted the log, and accessed the share folder on the computer linux-90yp from the user “reception”. linux-90yp is on a local area network with linux-idxo.
linux-idxo:/var/log/samba # cat log.smbd
[2011/09/21 19:18:13.219712, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][reception]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:18:13.219821, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][reception]@[LINUX-90YQ]
[2011/09/21 19:18:13.219934, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘reception’ in passdb.
[2011/09/21 19:18:13.219975, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [reception] -> [reception] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:18:13.245242, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][reception]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:18:13.245277, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][reception]@[LINUX-90YQ]
[2011/09/21 19:18:13.245317, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘reception’ in passdb.
[2011/09/21 19:18:13.245332, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [reception] -> [reception] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:18:14.975006, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:18:14.975097, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:18:14.975250, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:18:14.975293, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:18:18.931573, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:18:18.931677, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:18:18.931788, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:18:18.931828, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:18:22.574887, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:18:22.574919, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:18:22.574949, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:18:22.574959, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:18:22.583403, 1] smbd/service.c:1070(make_connection_snum)
linux-90yq (::ffff:192.168.1.15) connect to service PMG initially as user PMG (uid=1000, gid=100) (pid 28869)
deleted the log. Made a test appointment in the kontact calendar located on linux-90yp. The calendar is uploaded every 5 minutes and downloaded on changes to/from the samba share folder on linux-idxo.
The change causes an error window to pop up stating “Error while saving PMG”. Note however, the test appointment shows in kontact calendar on linux-idxo, which loads its calendar from the same share file, without using Samba.
linux-idxo:/var/log/samba # cat log.smbd
[2011/09/21 19:25:23.889502, 1] smbd/service.c:1251(close_cnum)
linux-90yq (::ffff:192.168.1.15) closed connection to service PMG
[2011/09/21 19:27:22.310829, 3] auth/auth.c:216(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[LINUX-90YQ] with the new password interface
[2011/09/21 19:27:22.310930, 3] auth/auth.c:219(check_ntlm_password)
check_ntlm_password: mapped user is: [LINUX-IDXO][anonymous]@[LINUX-90YQ]
[2011/09/21 19:27:22.311061, 3] auth/auth_sam.c:399(check_sam_security)
check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
[2011/09/21 19:27:22.311105, 2] auth/auth.c:314(check_ntlm_password)
check_ntlm_password: Authentication for user [anonymous] -> [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/09/21 19:27:22.333236, 1] smbd/service.c:1070(make_connection_snum)
linux-90yq (::ffff:192.168.1.15) connect to service PMG initially as user PMG (uid=1000, gid=100) (pid 28999)
This is really close. If I could just eliminate the error window it would be perfect.