Operating System - HP-UX
1829102 Members
2365 Online
109986 Solutions
New Discussion

samba revalidate smb.conf

 
Gerrit_1
Advisor

samba revalidate smb.conf

Hi,

output smb.conf:

[/var]
available = yes
path = /var
writable = yes
guest ok = no
force create mode = 660
directory mask = 0770
force directory mode = 770
create mask = 0775
valid users = @sys
revalidate = True
read only = no

--> what does this revalidate = True mean?
I have a vision...... a television
4 REPLIES 4
RolandH
Honored Contributor

Re: samba revalidate smb.conf

That means that samba only asks at the first connect for the password (revalidate = no)=default.

If it is set to revalidate = yes it will ask every connection for the password.

So the flags should be yes/no not true/false.


Regards
Roland

Sometimes you lose and sometimes the others win
Carl-Martell Sippel
Occasional Advisor

Re: samba revalidate smb.conf

I found this on some webpage for smb.conf:
--------------------------------------
revalidate (S)
This options controls whether Samba will allow a previously validated username/password pair to be used to attach to a share. Thus if you connect to \\server\share1 then to \\server\share2 it won't automatically allow the client to request connection to the second share as the same username as the first without a password.

If "revalidate" is True then the client will be denied automatic access as the same username.

Default:
revalidate = False

Example:
revalidate = True
-----------------------------------------

However I don't know which version this refers to. Neither Samba 2.2.3a on my Linux box nor CIFS A.01.09.04 does seem to know this option. So it seems to be avalable to older or very new versions of Samba only.

Carl Martell
Francisco J. Soler
Honored Contributor

Re: samba revalidate smb.conf

Hi,

revalidate option is documented in man smb.conf

from man page:

Note that this option only works with "seccurity=share" and will be ignored if this is not the case.

This option controls whether Samba will allow a
previously validated username/password pair to be
used to attach to a share. Thus if you connect to
\\server\share1 then to \\server\share2 it won??t
automatically allow the client to request connec??
tion to the second share as the same username as
the first without a password.

If "revalidate" is "True" then the client will be
denied automatic access as the same username.

Default: revalidate = False

Example: revalidate = True

HTH
Frank.



Linux?. Yes, of course.
Darren Prior
Honored Contributor

Re: samba revalidate smb.conf

Hi,

You haven't mentioned which version of Samba/CIFS you are running, but the revalidate option no longer exists in CIFS. Running testparm on an A.01.09.05 (current CIFS/9000 release) highlights revalidate as an unknown parameter.

It is documented in the O'Reilly Using Samba book, but this book is now ~3 years old. It sounds like you may have carried your smb.conf from a previous release of Samba/CIFS.

I'd suggest you run testparm to check for any other syntax errors or incorrect parameters in your smb.conf.

regards,

Darren
Calm down. It's only ones and zeros...