Find the answer to your Linux question:
Results 1 to 3 of 3
Client computers from LAN and run Windows XP Home, with no domain controller. They need to be able to browse/read/write to the samba share at any time without having to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! uhcafigdc's Avatar
    Join Date
    May 2009
    Location
    East Coast USA
    Posts
    23

    Exclamation Samba 3.10 config for anonymous Windows XP access?


    Client computers from LAN and run Windows XP Home, with no domain controller.

    They need to be able to browse/read/write to the samba share at any time without having to enter some kind of password.

    This is the configuration I used for samba 2.6, and it works like this just fine:
    Code:
    [global]
    
            workgroup = workgroup
            netbios name = files3
            server string = files3
    
            level2 oplocks = no
            oplocks = no
    
            hosts allow = 192.168.1. 127.
            load printers = no
            guest account = aip
            log file = /var/log/samba/%m.log
            max log size = 50
    
            security = share
            encrypt passwords = yes
    
            socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    
    [share]
            path = /home0/share
            writeable = yes
            guest ok = yes
            public = yes
    However, since upgrading to Samba 3.10, this configuration does not work. The Windows XP clients can not access the share because it says they do not have permission.

    What changed? How can I make this work again?

  2. #2
    Just Joined! uhcafigdc's Avatar
    Join Date
    May 2009
    Location
    East Coast USA
    Posts
    23
    Still working on this... here is my smb.conf now:

    Code:
    [global]
         workgroup = WORKGROUP
         security = user
         map to guest = bad user
         guest account = someuser
         restrict anonymous = 0
    
    [share]
         path = /share
         guest ok = yes

    Here is my /etc/sysconfig/iptables:

    Code:
    # Firewall configuration written by system-config-firewall
    # Manual customization of this file is not recommended.
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 5404 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 5405 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 11111 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 21064 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT
    -A INPUT -j REJECT --reject-with icmp-host-prohibited
    -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    COMMIT
    This is a test machine and I set permissions for /share to 777.
    Here is the output of ls -aldZ /share:
    Code:
    drwxrwxrwx. someuser someuser unconfirmed_u:object_r:default_t:s0 /share


    When I click on the share from a Windows XP Home station on the same workgroup, I get the error
    "\\sambashare\share" is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. Access is denied.
    I want to allow any computer on the LAN to read/write to this share, without being prompted for a username/password. There is no domain controller, or any other form of centralized user authentication on this network.
    Last edited by uhcafigdc; 02-14-2012 at 08:43 PM.

  3. #3
    Just Joined! uhcafigdc's Avatar
    Join Date
    May 2009
    Location
    East Coast USA
    Posts
    23
    Problem solved. Turns out the selinux was running, and preventing samba from working.

    Add "read only = no" to the [share] section, and I get the results I want.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •