samba Problem

Mario St-Gelais legrimpeur at sympatico.ca
Fri Mar 12 05:04:29 UTC 2004


Eric Diamond wrote:

>Hate to tell you this, but this feels like a case of
>trying too hard. I've been using Samba since very early
>in the 2.x series and have never had problems like this.
>Most of the default settings work just fine on most
>networks. You may have managed to tweak a little too
>much.
>
>Please post your current smb.conf and 'ls -al' listings
>of the parent directories of the directories you're
>trying to share. Also, your smbpasswd file. I'll be glad
>to see what I can find.
>
>One thing that came to mind just now. In order for samba
>to work correctly, smb user IDs and passwords must have
>matching linux IDs and passwords. SMB network visibility
>to the resources you're sharing is controlled by samba,
>but directory and file access is handled by PAM.
>
>If you have users that exist in the smbpasswd file that
>don't exist in the linux passwd file then you have only
>half the security context defined. That could lead to
>the kind of messages you've posted above.
>
>HTH!
>BTW, Great quote!
>
>Eric Diamond
>eDiamond Networking & Security
>303-246-9555
>eric at ediamond.net
>
>
>  
>
You are probably right, I am probably trying too hard.  So tonoght, been reading about Jakarta Struts.  And I also calmed down by the way :-).  And yes I probalby tweaked too much because I swear it worked before.

So for I guess the third time, and with a different look each time here is the smb.conf file

[global]
        workgroup = localdomain
        server string = samba server
        hosts allow = 192.168.0. 127.
        printcap name = /etc/printcap
        load printers = yes
        log file = /var/log/samba/%m.log
        max log size = 50
  encrypt passwords = yes
  smb passwd file = /etc/samba/smbpasswd
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   local master = no
   os level = 20
   domain master = no
   preferred master = no
    password server = None
    security = USER
    dns proxy = no
[homes]
        comment = Home Directories
        browseable = no
        writeable = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        printable = yes
[var]
        hosts allow = 192.168.0.176 192.168.0.177 192.168.0.141 127.
        writeable = yes
        path = /var
[opt]
        hosts allow = 192.168.0.176 192.168.0.177 192.168.0.141 127.
        writeable = yes
        path = /opt
[marst]
        hosts allow = 192.168.0.176 192.168.0.177 192.168.0.141 127.
        comment = root directory
        path = /home
        writeable = yes

-------------
Directories
-------------
drwxr-xr-x   21 root     root         4096 Feb  5 00:52 var
drwxrwx--x    3 root     root         4096 Feb  5 00:51 opt
drwx------   17 marst    marst        4096 Mar 11 16:11 marst

Now here I can see the problem with opt.  But again, I used to be able to map the directories (you know, right click on My Computer, bla bla bla...) and if providing wrong password when trying to access then I was refused access.  But the problem is it just won't find the path.

And what else did you want... oh yeah the smbpasswd file.

marst:500:9FA7E5D1DAF48641C2265B23734E0DAC:24F68DFDE2497774D95E278567267B0D:[U          ]:LCT-4051000B:
mastg7:501:234D029F23BE01ED7CA65F36030673DD:B8AAAC6FC9707554D67EBC56D97A69BD:[U          ]:LCT-4050F4C1:

Have fun!!

_________________
Mario St-Gelais
"Good judgment comes from
experience- usually experience
which was the result of poor judgment"
Bill Putnam






More information about the fedora-list mailing list