Getting the infamouse "net usershare: usershares are currently disabled."

Searched and searched, tried every article that has that statement in it, all to no avail…

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
[global]
	workgroup = SOPRANOS
	passdb backend = tdbsam
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
	map to guest = Bad User
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	usershare allow guests = Yes
[homes]
	comment = Home Directories
	valid users = %S, %D%w%S
	browseable = No
	read only = No
	inherit acls = Yes
[profiles]
	comment = Network Profiles Service
	path = %H
	read only = No
	store dos attributes = Yes
	create mask = 0600
	directory mask = 0700
[users]
	comment = All users
	path = /home
	read only = No
	inherit acls = Yes
	veto files = /aquota.user/groups/shares/
[groups]
	comment = All groups
	path = /home/groups
	read only = No
	inherit acls = Yes
[printers]
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = @ntadmin root
	force group = ntadmin
	create mask = 0664
	directory mask = 0775
[shares]
	comment = samba on Suse
	path = /home/pauly/sambashare
	public = yes
	writable = yes
	read only = No
	browsable = No

disabled

You haven’t made the necessary smb.conf to allow usershares. This guide may be of value to you:
https://wiki.archlinux.org/title/samba#Enable_Usershares

Now I’m getting this:

I use file manager - Super User Mode, to add my account. Pauly, as well as the group, users with RWX.

When I check, the settings are gone. I know how to chmod to change +R +W +E, but how does one mode for a user and group?

Show

ls -l /var/lib/samba/usershares

You need to make sure that the users (who need r/w access to the share) are a member of the ‘sambashare’ group.

and what about the directory ownership?

ls -ld /var/lib/samba/usershares

Maybe a misunderstanding here…this is the share of interest?

[shares]
	comment = samba on Suse
	path = /home/pauly/sambashare

Please show your current smb.conf file.

drwxr-xr-x 1 pauly pauly 0 May 4 14:11 public

Got that from another article. I thought it was pointless, because it’s my documents I want to share, but in an effort to learn, I thought it best to follow the instructions exactly.

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
[global]
	workgroup = SOPRANOS
	passdb backend = tdbsam
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
	map to guest = Bad User
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	usershare allow guests = Yes
	usershare path = /var/lib/samba/usershares
	usershare max shares = 100
	usershare allow guests = yes
	usershare owner only = yes
[homes]
	comment = Home Directories
	valid users = %S, %D%w%S
	browseable = No
	read only = No
	inherit acls = Yes
[profiles]
	comment = Network Profiles Service
	path = %H
	read only = No
	store dos attributes = Yes
	create mask = 0600
	directory mask = 0700
[users]
	comment = All users
	path = /home
	read only = No
	inherit acls = Yes
	veto files = /aquota.user/groups/shares/
[groups]
	comment = All groups
	path = /home/groups
	read only = No
	inherit acls = Yes
[printers]
	comment = All Printers
	path = /var/tmp
	printable = Yes
	create mask = 0600
	browseable = No
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/drivers
	write list = @ntadmin root
	force group = ntadmin
	create mask = 0664
	directory mask = 0775
[shares]
	comment = samba on Suse
	path = /home/pauly/sambashare
	public = yes
	writable = yes
	read only = No
	browsable = No


What does “browsable” mean? Seems like it would need to be browsable to find it.

Now, when I try to share is from Dolphin, I get a blank page.

drwxrwx–T 1 root sambashare 12 May 4 14:11 /var/lib/samba/usershares/

I lied. Now it’s back.

Good Grief. No longer feeling old, feeling silly! :slight_smile:

BIG damn sigh!

I’m trying to get this working on a virtual machine and THAT’S the one I made worse.

So all good now?

No, I’m referring to this:

I was trying things on my virtual machine and got myself confused.

And look! I’m using quotes now.

Okay, please re-clarify which directory you are trying to present as a samba usershare. For example, if I was sharing my Pictures directory, the permissions for sharing would look like

~> ls -ld /home/dean/Pictures
drwxr-xrwx 4 dean users 4096 Apr 28 10:59 /home/dean/Pictures
~> ls -ld /var/lib/samba/usershares
drwxrwx--T 2 root sambashare 4096 May  6 11:45 /var/lib/samba/usershares

Also

~> net usershare list
Pictures
~> net usershare info

[Pictures]
path=/home/dean/Pictures
comment=
usershare_acl=Everyone:F,LINUX-LPTP1\dean:F,Unix User\test:F,
guest_ok=n

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.