Author Topic: Samba Config  (Read 607 times)

Offline Sparky

  • Full Member
  • ***
  • Posts: 146
Samba Config
« on: September 07, 2012, 06:05:35 PM »
So I have been having issues configuring samba. I can see the share on my home network but cannot connect to it. Here is the output of the command I was told to run:

[earl@localhost ~]$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[pdf-gen]"
Processing section "[homes]"
Loaded services file OK.
Warning: Service printers defines a print command, but rameter is ignored when using CUPS libraries.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        workgroup = MYHOME
        netbios name = SAMBA-SERVER
        server string = %h
        security = SHARE
        map to guest = Bad User
        log file = /var/log/samba/%m.log
        max log size = 50
        printcap cache time = 60
        printcap name = cups
        dns proxy = No
        hosts allow = 192.168.5

[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        guest ok = Yes
        printable = Yes
        print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
        use client driver = Yes
        browseable = No

[print$]
        path = /var/lib/samba/printers
        write list = @adm, root
        inherit permissions = Yes
        guest ok = Yes

[pdf-gen]
        comment = PDF Generator (only valid users)
        path = /var/tmp
        printable = Yes
        printing = bsd
        print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
        lpq command = /bin/true
        lprm command = lprm -P'%p' %j

[homes]
        comment = Home Directories
        path = /home/earl/Downloads
        read only = No
        guest ok = Yes
[earl@localhost ~]$ smbtree -d2 -N
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
added interface wlan0 ip=fe80::218:deff:fe19:f48a%wlan0 bcast=fe80::ffff:ffff:ffff:ffff%wlan0 netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.5.107 bcast=192.168.5.255 netmask=255.255.255.0
tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied
Got a positive name query response from 192.168.5.107 ( 192.168.5.107 )
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE
failed negprot: NT_STATUS_INVALID_NETWORK_RESPONSE
[earl@localhost ~]$

Thanks!  ;D
“It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change.”
~Charles Darwin~

Online muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: Samba Config
« Reply #1 on: September 07, 2012, 07:29:21 PM »

Quote
        hosts allow = 192.168.5

That address is typed wrong,its incomplete, can you correct it and try to run the second command again
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Sparky

  • Full Member
  • ***
  • Posts: 146
Re: Samba Config
« Reply #2 on: September 09, 2012, 07:29:39 PM »
So this address has to be that of the local machine or the machine that would be connecting to the shared drive??
“It is not the strongest of the species that survives, nor the most intelligent that survives. It is the one that is the most adaptable to change.”
~Charles Darwin~

Online muungwana

  • Hero Member
  • *****
  • Posts: 6252
Re: Samba Config
« Reply #3 on: September 09, 2012, 09:21:59 PM »

The address of the computer that will be connecting to access shared shares.

Its best not to have such options set while configuring things because it causes too many variables to be considered at once.

Let everybody in while you are configuring it, when you are done and everything is working then start adding such properties like who is allowed and who is not.

Do one thing at a time and it will be easier to troubleshoot problems.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..