Comment 7 for bug 32067

Revision history for this message
casualprogrammer (casualprogrammer) wrote : Re: the security parameter must be set to share, not user, in smb.conf

The real issue here is, that

;security = user

is not achieving anything at all, since security = user is a Samba built in default, commenting it out would be the solution if it wasn't there already. So either you use

;security = share

which is the same as

security = user

or just uncommented as

security = share

when you want to share.

The problem lies in the fact, that not all Windows users will have an account on the Linux workstation sharing something.

They can only access the share with

security = share

There is a realtively thorough discussion in the man smb.conf, also some workarounds are given.

If you want to see what your smb.conf REALLY is translated into, just do

testparm -v

if you do this with an empty smb.conf you can see what defaults are there already.

In addition having

   invalid users = root

is a real show stopper and should be commented out in the sample file. If this is set,

cupsaddsmb

( and presumably other functionality as well ) will not work, and present the average user with a problem he will not be able to solve easily. At least there should be some remarks on this.