WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: technical problems configuring samba  (Read 4377 times)

Offline trembb22

  • Newbie
  • *
  • Posts: 28
technical problems configuring samba
« on: August 06, 2009, 03:17:34 PM »
I configured other linux computer with samba and it worked but it doesn't work with TC, I dont know what I am doing wrong, I setup smb.conf correctly and still have "The password is incorrect, Try again" messages under windows when acceding the share. I see the computer name "box" under windows "Network Neighborhood".

here the "testparm" output

Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[trembb]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MANBEN
        server string = Samba Server tinycore
        passdb backend = tdbsam
        log file = /usr/local/samba/var/log.%m
        max log size = 50
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes
        dns proxy = No
        hosts allow = 192.168.1., 127.
        printing = bsd
        print command = lpr -r -P'%p' %s
        lpq command = lpq -P'%p'
        lprm command = lprm -P'%p' %j

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        guest ok = Yes

[trembb]
        path = /home/trembb
        read only = No
        guest ok = Yes

--------
here the samba logs after trying to access de share: \\box\trembb under windows

trembb@box:/usr/local/samba/var$ ls -l
-rw-r--r--    1 root     root            0 Aug  7 02:31 log.192.168.1.200
-rw-r--r--    1 root     root            0 Aug  7 02:21 log.smbd
-rw-r--r--    1 root     root            0 Aug  7 02:31 log.trembb
trembb@box:/usr/local/samba/var$

thanks for your help

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: technical problems configuring samba
« Reply #1 on: August 06, 2009, 04:30:52 PM »
Here's what I did. Perhaps it will help. It's a very simple installation.

Setting Up The Samba User Name & Password - Samba makes use of the Linux user name and password authentication system including the user permissions assigned to files and folders. So the Samba user must first be established as a Linux user before it can be used for shared folder access. Since I wanted limited access to my “BOX host” I decided to use the already present Linux user “nobody”. The user “nobody” has restricted system access because it is configured to not have any login shell assignment. Using the user “nobody” requires no specific command or action. The Samba password command will identify the user name I used.
Next I created a password for Samba user “nobody”. I used the “smbpasswd ” command located in the “/usr/local/bin” directory. The “-a” option specifies that this is a new Samba user. The dialog is shown below. The account policy errors can be ignored.

Code: [Select]
tc@box2:/etc/samba$ sudo –a smbpasswd nobody
New SMB password:
Retype new SMB password:
startsmbfilepwent_internal: file /etc/samba/private/smbpasswd did not exist. File successfully created.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age),returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age),returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
 Added user nobody.

Code: [Select]
Contents of my “smb.conf” file

[Global]
workgroup = MYWORKGRP
server string = Samba Server
security = user
log file = /usr/local/samba/var/log.%m
max log size = 50
load printers = no
printcap name = /device/null

[homes]
comment = Home Directories
path = /mnt/sdc1/nobody
browseable = yes
writeable = yes
create mask = 0664
directory mask = 0774
force group = +staff
printable = no

[webserver]
comment = web server
path = /mnt/sdc1/opt/lampp/htdocs
valid users = nobody
browseable = yes
writeable = yes
create mask = 0664
directory mask = 0775
force group = +staff
printable = no

The host IP address or the host name along with the folder name can be entered in the folder location field at the top of the Windows Explorer window to access a shared folder. For instance in this example:
"\\192.168.0.100\webserver" or "\\box\webserver" can be used to access the shared folder. The user is nobody and the password is the one I entered.
« Last Edit: August 06, 2009, 04:34:38 PM by bigpcman »
big pc man

Offline trembb22

  • Newbie
  • *
  • Posts: 28
Re: technical problems configuring samba
« Reply #2 on: August 06, 2009, 05:34:28 PM »
thanks for the infos, I did try nobody but I still have the same problem..

Well I must add an important information: It didn't work with my windows 98 computer.

But IT WORK FINE with my windows XP computer.

so the kind of windows make a difference. Curiously, I have another linux computer with samba v3 and it work fine under windows 98.

there is something I don't catch. The problem is that my main computer is a window 98 computer, so I will like to succeed under window 98 not XP

if it work for XP, it is because my smb.conf file is ok, so the problem witth windows 98 is somewhere else.

thanks for you help

Offline trembb22

  • Newbie
  • *
  • Posts: 28
Re: technical problems configuring samba
« Reply #3 on: August 06, 2009, 05:57:55 PM »
Found a solution when reading the following:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/163194
http://kubuntuforums.net/forums/index.php?topic=3102034.0

I modified the samba auth method by adding the following into smb.conf:

lanman auth = Yes
lm announce = Yes

after that it didn't work but I add to reset the samba user password by doing the following:
smbpasswd - x trembb
smbpasswd  -a trembb
     entered here my password again
smbpasswd -e trembb

than I restarted samba and it worked after under windows 98

thanks for your help, this finding may help other peoples