Mijn vraag
Thuis heb ik een Raspberry Pi met een externe hdd en Samba. De hdd wordt automatisch gemount op /mnt/NAS1 en mijn Samba-share is ingesteld op dat punt.
In het lokale netwerk moet de Samba share voor alle apparaten toegankelijk zijn zonder login. Apparaten zijn: R-Pi met Volumio, Windows 10 Home, Windows 7 Enterprise (werk), Ubuntu 16.04, en Android smartphone. Het lukt me echter niet om de authenticatie uit te zetten. De Linux-devices blijven vragen om een gebruikersnaam en wachtwoord, en onder Windows krijg ik de melding dat de map niet toegankelijk is.
Om alles op te zetten heb ik deze tutorial gebruikt: https://www.raspberrypi.org/magpi/samba-file-server/
Mijn kennis van Linux en Samba is beperkt, maar ik wil het graag leren!
Relevante software en hardware die ik gebruik
Raspberry Pi Model B met Raspbian Jessie Lite
Samba 4.2.6-Debian
Seagate Slim 500 Gb externe HDD, via ModMyPi usb-hub en 5V 3A power supply.
Wat ik al gevonden of geprobeerd heb
Ik heb mijn share toegevoegd aan de automatisch gegenereerde smb.conf. Zoals ik het kan zien, staat de guest access aan op de share. Dit is de smb.conf (minus een hoop commentaren om het leesbaar te houden):
Elders heb ik gevonden dat ik "security = share" moet gebruiken, maar dan start de Samba-server niet meer op met foutmelding:
Aangezien ik er met andere bronnen niet meer uit kom, hoop ik dat hier iemand een slim antwoord heeft.
Thuis heb ik een Raspberry Pi met een externe hdd en Samba. De hdd wordt automatisch gemount op /mnt/NAS1 en mijn Samba-share is ingesteld op dat punt.
In het lokale netwerk moet de Samba share voor alle apparaten toegankelijk zijn zonder login. Apparaten zijn: R-Pi met Volumio, Windows 10 Home, Windows 7 Enterprise (werk), Ubuntu 16.04, en Android smartphone. Het lukt me echter niet om de authenticatie uit te zetten. De Linux-devices blijven vragen om een gebruikersnaam en wachtwoord, en onder Windows krijg ik de melding dat de map niet toegankelijk is.
Om alles op te zetten heb ik deze tutorial gebruikt: https://www.raspberrypi.org/magpi/samba-file-server/
Mijn kennis van Linux en Samba is beperkt, maar ik wil het graag leren!
Relevante software en hardware die ik gebruik
Raspberry Pi Model B met Raspbian Jessie Lite
Samba 4.2.6-Debian
Seagate Slim 500 Gb externe HDD, via ModMyPi usb-hub en 5V 3A power supply.
Wat ik al gevonden of geprobeerd heb
Ik heb mijn share toegevoegd aan de automatisch gegenereerde smb.conf. Zoals ik het kan zien, staat de guest access aan op de share. Dit is de smb.conf (minus een hoop commentaren om het leesbaar te houden):
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
| #======================= Global Settings ======================= [global] ## Browsing/Identification ### workgroup = WORKGROUP netbios name = PISERVER # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server # wins support = no # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no #### Debugging/Accounting #### log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ####### Authentication ####### server role = standalone server passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes # This option controls how unsuccessful authentication attempts are mapped # to anonymous connections security = user map to guest = Bad User ########## Domains ########### # Allow users who've been granted usershare privileges to create # public shares, not just authenticated ones usershare allow guests = yes #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no # By default, the home directories are exported read-only. Change the # next parameter to 'no' if you want to be able to write to them. read only = yes # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0700 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0700 # By default, \\server\username shares can be connected to by anyone # with access to the samba server. # The following parameter makes sure that only "username" can connect # to \\server\username # This might need tweaking when using external authentication schemes valid users = %S # Un-comment the following and create the netlogon directory for Domain Logons # (you need to configure Samba to act as a domain controller too.) ;[netlogon] ; comment = Network Logon Service ; path = /home/samba/netlogon ; guest ok = yes ; read only = yes # Un-comment the following and create the profiles directory to store # users profiles (see the "logon path" option above) # (you need to configure Samba to act as a domain controller too.) # The path below should be writable by all users so that their # profile directory may be created the first time they log on ;[profiles] ; comment = Users profiles ; path = /home/samba/profiles ; guest ok = no ; browseable = no ; create mask = 0600 ; directory mask = 0700 [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no # Uncomment to allow remote administration of Windows print drivers. # You may need to replace 'lpadmin' with the name of the group your # admin users are members of. # Please note that you also need to set appropriate Unix permissions # to the drivers directory for these users to have write rights in it ; write list = root, @lpadmin # NAS Directories [NAS1] comment = NAS1 path = /mnt/NAS1 create mask = 0777 directory mask = 0777 browseable = yes writeable = yes public = yes guest ok = yes guest only = yes |
Elders heb ik gevonden dat ik "security = share" moet gebruiken, maar dan start de Samba-server niet meer op met foutmelding:
code:
1
2
| [....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details. failed! |
Aangezien ik er met andere bronnen niet meer uit kom, hoop ik dat hier iemand een slim antwoord heeft.