You are not logged in.

#1 2010-11-07 06:29:20

eskapa
Member
Registered: 2006-06-16
Posts: 4

Share files on LAN without user and password with Samba

Greetings!

My smb.conf file. I can not see anything wrong here.

[global]
   workgroup = home
   netbios name = bok
   security = share 
   guest account = nobody
   map to guest = bad user
   log file = /var/log/samba/%m.log
   max log size = 50
[data]
   comment = Data
   public = yes
   path = /home/esk/smb
   available = yes
   browsable = yes
   read only = yes
   guest ok = yes
   guest only = yes

Trying to mount with no luck.. sad

esk@localbok:~$ sudo mount -t cifs -o guest //192.168.1.11/data /mnt/samba/
retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs

Can see the share on the server with smbclient -L 192.168.1.11 -U%

    ---------       ----      -------
    data            Disk      Data
    IPC$            IPC       IPC Service (Samba 3.5.5)
Domain=[HOME] OS=[Unix] Server=[Samba 3.5.5]

    Server               Comment
    ---------            -------    
    BOK                  Samba 3.5.5

        Workgroup            Master
    ---------            -------
    HOME                 BOK

And finally trying to connect with smbclient //192.168.1.11 -U%

params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.conf":
    No such file or directory
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Domain=[HOME] OS=[Unix] Server=[Samba 3.5.5]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAM

I'm out of ideas, guys. Would really appreciate if someone could have a look. Cheers

Offline

#2 2010-11-07 15:23:34

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Share files on LAN without user and password with Samba

Not sure what is wrong, but you have a lot of options. This is a partial config for what I use and it works great

[global]
        netbios name = server
        workgroup = workgroup
        server string = Server
        security = share
    #hosts allow = 10.20.1. 127.
        guest account = samba
        #log file = /var/log/samba/%m.log
           

[public]
        comment = Public Stuff
        path = /home/public
        create mask = 0660
        directory mask = 0770
        writeable = yes
        guest ok = yes

Website - Blog - arch-home
Arch User since March 2005

Offline

#3 2010-11-11 22:41:59

eskapa
Member
Registered: 2006-06-16
Posts: 4

Re: Share files on LAN without user and password with Samba

Thanks for looking into this, pyther. As you can see from my config file my path to the share is /home/esk/smb. And of course /home/esk has 700 permissions. Noob, I know. Moved the path to /home, working smoothly now.

Offline

Board footer

Powered by FluxBB