WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline aug

  • Jr. Member
  • **
  • Posts: 74
SMB/CIFS installation
« on: October 22, 2016, 01:09:17 PM »
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, 01:23:35 PM »
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, 02:28:38 PM »
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, 02:56:08 PM »
Maybe you need:

public = yes

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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: SMB/CIFS installation
« Reply #4 on: October 30, 2016, 12:09:37 AM »
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, 07:41:38 AM »
@paul_123 : no luck, exactly the same error message

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: SMB/CIFS installation
« Reply #6 on: October 30, 2016, 08: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, 08: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).