You are not logged in.

#1 2019-09-10 21:25

JimW
Member
Registered: 2015-12-08
Posts: 400

Samba Help! *SOLVED*

Ok, back in the days of Orion I had a folder that I was sharing via samba. I put movies, documents and such in it that I might want to access on my tablet, laptop, or even the FireStick!
I have been trying for the last few weeks to set up such a share on Centaurus but am not having much luck with it.
I have, finally, gotten 'share' to show on the folder properties ( the '/home/Public' directory) and clicking it allows me to select to 'share this folder in the local network' and 'Share with Samba'. 'Public' and 'Writable' are selected. But, even after reboot, the remote devices see nothing! The share with NFS is greyed out, but I shouldn't need it anyway. Also, in Orion there was an icon that indicated the folder was shared and that is not showing now.
I've gotten this far, but don't know what to do now!
Help! yikes

Last edited by JimW (2019-09-13 14:02)

Offline

#2 2019-09-10 21:31

cjoliprsf
Member
Registered: 2017-04-23
Posts: 71

Re: Samba Help! *SOLVED*

I remember having had problems with Samba some time ago, and I wrote the following note:
https://www.q4os.org/forum/viewtopic.php?id=1497
Maybe it might help you.

Offline

#3 2019-09-12 18:18

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: Samba Help! *SOLVED*

Thanks cjoliprst. I had already gotten to that point, but still no luck! I even created a new folder and it does the same. I enable it as shared, but can't see it from remote devices and no change in the folder icon. I found that using the control panel setup it re-writes the config file, removing any changes I have made. Have to keep experimenting I guess!

Offline

#4 2019-09-12 19:23

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Samba Help! *SOLVED*

You may need to add the user to "sambashare" group.

Offline

#5 2019-09-12 19:51

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: Samba Help! *SOLVED*

q4osteam wrote:

You may need to add the user to "sambashare" group.

Ok, would that be the user that is logged in on Q4OS or the "user" of the remote device?

Just looked and there is no sambashare group. Do I need to add it and shouldn't setting up samba automatically generate that group?

Last edited by JimW (2019-09-12 19:55)

Offline

#6 2019-09-12 19:57

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Samba Help! *SOLVED*

The Q4OS user who want to view, write and create a shared folders. Please post your /etc/samba/smb.conf file here or send it via e-mail support@q4os.org Anyway, samba sharing should be independent on Trinity desktop, it's fully configurable even using terminal only.

Offline

#7 2019-09-12 20:24

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: Samba Help! *SOLVED*

I have manually added the:
public = yes
writable = yes
to the Public and the Share folder settings.


Attachments:
conf smb.conf, Size: 8.59 KiB, Downloads: 660

Offline

#8 2019-09-12 20:28

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Samba Help! *SOLVED*

JimW wrote:

Just looked and there is no sambashare group. Do I need to add it and shouldn't setting up samba automatically generate that group?

This group is automatically added by the "samba" package. Please check you have installed "samba" package. If so, try to reinstall it:
$ sudo apt remove samba
$ sudo delgroup sambashare
$ sudo apt install samba
Reboot and try to configure samba once again.

Offline

#9 2019-09-12 20:58

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: Samba Help! *SOLVED*

Removed samba and re-installed. No change.
The sambashare group is there.
I tried to 'un-share' the two directories, but it would still indicate they were shared. The smb.conf never changed so I replaced it with the original one with no shares. Still shows the "share this folder" as checked. Also, remote devices do not see the computer as being available on the network. It was showing that before I started today.

Offline

#10 2019-09-13 03:45

cjoliprsf
Member
Registered: 2017-04-23
Posts: 71

Re: Samba Help! *SOLVED*

Wondering if this could be a wider problem. I was reading recently the release notes for Mint 19 where they report some problems with Samba and conclude as follows: "If you use Samba a lot, until these issues are resolved, we recommend you use Linux Mint 18.3 instead." - which says a lot...
See: https://www.linuxmint.com/rel_tina_mate.php
Could it be the same problem you are seeing?

Offline

#11 2019-09-13 07:43

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,501
Website

Re: Samba Help! *SOLVED*

Please try the following:
- First reboot

- Reinstall "samba" package
$ sudo apt --purge autoremove samba
$ sudo delgroup sambashare
$ sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.backup1
$ sudo reboot
$ sudo apt install samba
$ sudo adduser <yourusername> sambashare

- Reboot
- Follow this Samba setup guide https://linuxconfig.org/how-to-set-up-a … -10-buster as exactly as possible
- Reboot
- Post a result here

The setup guide above is not dependent on a desktop environment and should set the Samba up in a reliable way.

Last edited by q4osteam (2019-09-13 07:53)

Offline

#12 2019-09-13 14:01

JimW
Member
Registered: 2015-12-08
Posts: 400

Re: Samba Help! *SOLVED*

Thanks Q4OSteam!
That is essentially what I did, before your post. I now have a shared directory that external devices can see/access. It also shared my printer as I wanted.
But, the folder icon still is the same as an un-shared one. It did not change.
(I'm going to call this solved anyway)

Offline

Board footer

Powered by FluxBB