WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: SMB/CIFS installation  (Read 3650 times)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
SMB/CIFS installation
« on: October 22, 2016, 10:09:17 AM »
Which packages do i need to install
- client (like mount.cifs)
- server

Thanks.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: SMB/CIFS installation
« Reply #1 on: October 22, 2016, 10:23:35 AM »
I'd try

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

Server:
samba4.tcz
Download a copy and keep it handy: Core book ;)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: SMB/CIFS installation
« Reply #2 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: SMB/CIFS installation
« Reply #3 on: October 29, 2016, 11:56:08 AM »
Maybe you need:

public = yes

to allow guests?
Download a copy and keep it handy: Core book ;)

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: SMB/CIFS installation
« Reply #4 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

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: SMB/CIFS installation
« Reply #5 on: October 30, 2016, 04:41:38 AM »
@paul_123 : no luck, exactly the same error message

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: SMB/CIFS installation
« Reply #6 on: October 30, 2016, 05:26:07 AM »
Where are you putting smb.conf?   Are you sure that it is reading your config file

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: SMB/CIFS installation
« Reply #7 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).