Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: aug on October 22, 2016, 10:09:17 AM

Title: SMB/CIFS installation
Post by: aug on October 22, 2016, 10:09:17 AM
Which packages do i need to install
- client (like mount.cifs)
- server

Thanks.
Title: Re: SMB/CIFS installation
Post by: Misalf on October 22, 2016, 10:23:35 AM
I'd try

Client:
cifs-utils.tcz
samba4-lib.tcz

Server:
samba4.tcz
Title: Re: SMB/CIFS installation
Post by: aug on October 29, 2016, 11:28:38 AM
Ok the client mode ist working and i can access shares on other devices.
But the sever gives me a strange problem. Target is to share a folder (/mnt/mmcblk0p2/extern) for all users in the network rw without password. No windows clients in the network - only linux and android. I created a smb.conf file with the entries:
[data]
path = /mnt/mmcblk0p2/extern
read only = no
guest ok = yes

The folder has 777 and samba reporting misconfigured "server role" and exits.
Title: Re: SMB/CIFS installation
Post by: Misalf on October 29, 2016, 11:56:08 AM
Maybe you need:

public = yes

to allow guests?
Title: Re: SMB/CIFS installation
Post by: Paul_123 on October 29, 2016, 09:09:37 PM
I found you have to spell it all out.   Try this.  Not sure about Android devices.

[global]
    netbios name = SERVER
    workgroup = WORKGROUP
    log file = /var/log/%m.log
    max log size = 1000
    security = user
    map to guest = bad user

[data]
    path = /mnt/mmcblk0p2/extern
    create mask = 0664
    guest ok = yes
    guest only = yes
    browseable = yes
    writeable = yes
Title: Re: SMB/CIFS installation
Post by: aug on October 30, 2016, 04:41:38 AM
@paul_123 : no luck, exactly the same error message
Title: Re: SMB/CIFS installation
Post by: Paul_123 on October 30, 2016, 05:26:07 AM
Where are you putting smb.conf?   Are you sure that it is reading your config file
Title: Re: SMB/CIFS installation
Post by: aug on October 30, 2016, 05:30:54 AM
@paul_123 i have defined the config file by --configfile=  the file is found and readed (i made a typing error and get a complaint about that - so the file is read).