usershares log samba
Published: September 16, 2015 - 08:42
Hello,
I have a quick question about "usershares".
If I understand correctly, this feature allows you to define a user's home directory.
I don't use it because I declare my shares like this:
[%U]
comment = Personal directory
browseable = yes
path = /home/users/%G/%U
preexec = bash /etc/samba/bin/add_home.sh %U domain professors
read only = no.
I would therefore like to disable the usershares feature to make my Samba logs cleaner.
Indeed, in my Samba logs, I always find:
/var/lib/samba/usershares failed. No such file or directory.
This is because Samba tries to create a user folder for each person in the /var/lib/samba/usershares directory.
How can I disable this function?
I have a quick question about "usershares".
If I understand correctly, this feature allows you to define a user's home directory.
I don't use it because I declare my shares like this:
[%U]
comment = Personal directory
browseable = yes
path = /home/users/%G/%U
preexec = bash /etc/samba/bin/add_home.sh %U domain professors
read only = no.
I would therefore like to disable the usershares feature to make my Samba logs cleaner.
Indeed, in my Samba logs, I always find:
/var/lib/samba/usershares failed. No such file or directory.
This is because Samba tries to create a user folder for each person in the /var/lib/samba/usershares directory.
How can I disable this function?