Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED]samba doesn't share usershares

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
oxygene
Posts: 12
Joined: 2018-09-21 17:13

[SOLVED]samba doesn't share usershares

#1 Post by oxygene »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: samba doesn't share usershares

#2 Post by bw123 »

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.
resigned by AI ChatGPT

oxygene
Posts: 12
Joined: 2018-09-21 17:13

Re: samba doesn't share usershares

#3 Post by oxygene »

Sorry, I added that to my post. I didn't think that would make a difference in this case.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: samba doesn't share usershares

#4 Post by GarryRicketson »

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.

oxygene
Posts: 12
Joined: 2018-09-21 17:13

Re: samba doesn't share usershares

#5 Post by oxygene »

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

#6 Post by oxygene »

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

#7 Post by oxygene »

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.

Post Reply