Andres Tarallo
2016-Jan-21 15:10 UTC
[Samba] Fwd: Can't understand differences between testparm output and smb.conf
I'm running Samba 4.3.3-3.1 on SLES 11. I'm debugging a configuration as Domain member. I've configured some read only shares. This is my configuration in smb.conf [to_company] comment = Tray to company path = /home/company/interfaces/bandejas/to_company browseable = yes guest ok = yes writeable = no force user = company force group = cust_mis When I run testparm I get: [to_company] comment = Tray to company path = /home/company/interfaces/bandejas/to_company force user = company force group = cust_mis group = cust_mis guest ok = Yes Any ideas will be appreciated. Andrés
Rowland penny
2016-Jan-21 15:28 UTC
[Samba] Fwd: Can't understand differences between testparm output and smb.conf
On 21/01/16 15:10, Andres Tarallo wrote:> I'm running Samba 4.3.3-3.1 on SLES 11. I'm debugging a configuration as > Domain member. > > I've configured some read only shares. This is my configuration in smb.conf > > [to_company] > comment = Tray to company > path = /home/company/interfaces/bandejas/to_company > browseable = yes > guest ok = yes > writeable = no > force user = company > force group = cust_mis > > When I run testparm I get: > > [to_company] > comment = Tray to company > path = /home/company/interfaces/bandejas/to_company > force user = company > force group = cust_mis > group = cust_mis > guest ok = Yes > > Any ideas will be appreciated. > > AndrésFairly obvious really, 'browseable = yes' & 'writeable = no' are both default values and as such are not shown by 'testparm', you could use '-v' , this will show them (along with every other default value). Rowland
Andres Tarallo
2016-Jan-21 16:43 UTC
[Samba] Fwd: Can't understand differences between testparm output and smb.conf
2016-01-21 12:28 GMT-03:00 Rowland penny <rpenny at samba.org>:> On 21/01/16 15:10, Andres Tarallo wrote: > >> I'm running Samba 4.3.3-3.1 on SLES 11. I'm debugging a configuration as >> Domain member. >> >> I've configured some read only shares. This is my configuration in >> smb.conf >> >> [to_company] >> comment = Tray to company >> path = /home/company/interfaces/bandejas/to_company >> browseable = yes >> guest ok = yes >> writeable = no >> force user = company >> force group = cust_mis >> >> When I run testparm I get: >> >> [to_company] >> comment = Tray to company >> path = /home/company/interfaces/bandejas/to_company >> force user = company >> force group = cust_mis >> group = cust_mis >> guest ok = Yes >> >> Any ideas will be appreciated. >> >> Andrés >> > > Fairly obvious really, 'browseable = yes' & 'writeable = no' are both > default values and as such are not shown by 'testparm', you could use '-v' > , this will show them (along with every other default value). > > Rowland > > As you suggested I runed testparm with -v parameter, same result. I alsotested with --verbose, same result. As I understand I can omit both browseable= yes and writeable = no (or read only = yes). I want my shares to be read only and accessible to anyone, without need of user authentication. Andrés