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?
usershares log samba
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Last edited by sfonteneau on Sep 16, 2015 - 12:24, edited 1 time.
Hi Simon,
Samba's usershare feature allows users to create their own share definitions.
This doesn't refer to the user's home directory.
Furthermore, it's a secondary feature.
Can you show me your smb.conf file?
Samba's usershare feature allows users to create their own share definitions.
This doesn't refer to the user's home directory.
Furthermore, it's a secondary feature.
Can you show me your smb.conf file?
Steven Samson - Tranquil IT Systems
Feel free to leave us your opinion on Wapt in the forum, or to answer our questionnaires
.
Feel free to leave us your opinion on Wapt in the forum, or to answer our questionnaires
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hi Steven and thank you
Here is my smb.conf file (It's just a file hosting service)
Here is my smb.conf file (It's just a file hosting service)
Code: Select all
//
Last edited by sfonteneau on 16 Sep 2015 - 15:20, edited 2 times.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
I haven't published the sub-config files.
It only contains sharing declarations.
It only contains sharing declarations.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
The addition of
The problem has apparently been resolved. I now have clean logs
I thought I understood that usershare max shares = 0 was the default option?
Simon
Code: Select all
usershare max shares = 0
I thought I understood that usershare max shares = 0 was the default option?
Simon
What is the output of the command?
Indeed, the default values are:
Code: Select all
testparm |grep usershare Code: Select all
usershare allow guests = No
usershare max shares = 0
usershare owner only = Yes
usershare path = /usr/local/samba/var/locks/usershares
usershare prefix allow list =
usershare prefix deny list =
usershare template share = Steven Samson - Tranquil IT Systems
Feel free to leave us your opinion on Wapt in the forum, or to answer our questionnaires
.
Feel free to leave us your opinion on Wapt in the forum, or to answer our questionnaires
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Indeed, if I don't specify the usershare values,
testparm doesn't return any information about usershare.
I need to specify the default values in smb.conf for them to appear.
I should also mention that I'm not using the compiled version of Samba, but the version provided by Debian 8 in the repositories.
Therefore, I'm not using the latest version; I'm on version 4.1.17.
In any case, I have clean logs now. Thank you.
testparm doesn't return any information about usershare.
I need to specify the default values in smb.conf for them to appear.
I should also mention that I'm not using the compiled version of Samba, but the version provided by Debian 8 in the repositories.
Therefore, I'm not using the latest version; I'm on version 4.1.17.
In any case, I have clean logs now. Thank you.
