[SOLVED]samba doesn't share usershares

Kernels & Hardware, configuring network, installing services

[SOLVED]samba doesn't share usershares

Postby oxygene » 2018-09-24 17:51

adding shares to smb.conf works, but i can't share anything with dolphin or net usershare
smb.conf
Code: Select all
[global]
   workgroup = WORKGROUP
   server string = Samba Server
   load printers = no
   security = user
   map to guest = Bad User
   log file = /var/log/samba/%m.log
   max log size = 50
   name resolve order = wins bcast host
   wins support = yes
   usershare path = /var/lib/samba/usershares
   usershare max shares = 100
   usershare allow guests = yes

[Black]
path=/media/Black
only guest = yes
public = yes
guest ok = yes
guest only = yes
browsable = yes

[RedPro]
path=/media/RedPro
only guest = yes
public = yes
guest ok = yes
guest only = yes
browsable = yes
net usershare info
Code: Select all
[Downloads]
path=/home/oxygene/Downloads
comment=
usershare_acl=Everyone:R,
guest_ok=y
PS:I'm using buster/testing
Last edited by oxygene on 2018-09-25 07:09, edited 2 times in total.
oxygene
 
Posts: 12
Joined: 2018-09-21 17:13

Re: samba doesn't share usershares

Postby bw123 » 2018-09-24 18:20

Didn't you have some problem with testing the other day? If you're using testing/sid then you should say so in your questions.
User avatar
bw123
 
Posts: 3416
Joined: 2011-05-09 06:02
Location: TN_USA

Re: samba doesn't share usershares

Postby oxygene » 2018-09-24 18:29

Sorry, I added that to my post. I didn't think that would make a difference in this case.
oxygene
 
Posts: 12
Joined: 2018-09-21 17:13

Re: samba doesn't share usershares

Postby GarryRicketson » 2018-09-24 18:32

Thank you, and
No problem, but in the future, and for others that might not know better,
information like this should all ways be included when posting a topic about a problem, Debian Version, we should not have to look at the members profile and try to guess which version of Debian, based on previous posts, for all we know, the question is about a different installation. A little logic goes a long ways.
User avatar
GarryRicketson
 
Posts: 5133
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: samba doesn't share usershares

Postby oxygene » 2018-09-25 06:25

Sorry again I forgot to mention the general section of smb.conf is copied from previous installation and it had no problem before.
I just realized if I run
Code: Select all
net usershare info --long test > /var/lib/samba/usershares/test
(test is the name of a share i created with usershare) it gives me
Code: Select all
info_fn: file /var/lib/samba/usershares/test is not a well formed usershare file.
info_fn: Error was Malformed usershare file.
and the file /var/lib/samba/usershares/test becomes empty. could it be some kind of bug?
oxygene
 
Posts: 12
Joined: 2018-09-21 17:13

Re: samba doesn't share usershares

Postby oxygene » 2018-09-25 06:58

yes indeed it's a bug in samba usershare.
solution:
Code: Select all
sudo chmod 1775 /var/lib/samba/usershares/
sudo chmod +t /var/lib/samba/usershares/
oxygene
 
Posts: 12
Joined: 2018-09-21 17:13

Re: [SOLVED]samba doesn't share usershares

Postby oxygene » 2018-09-25 07:14

I couldn't find anything to mark a post as answer or mark the topic as solved, so I simply added [SOLVED] to the first post's title.
oxygene
 
Posts: 12
Joined: 2018-09-21 17:13


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable