Shared Folders

Questions about networking.
In the Original Post please also include the output of inxi -FNzxx
User avatar
wisemagic
Posts: 303
Joined: 13 May 2013 03:05
Location: New Iberia, Louisiana USA

Shared Folders

Postby wisemagic » 20 Jul 2013 15:22

When right clicking a folder we have the ability to share that folder.

Samba public read-only
Samba public writable
Samba remove share

So, lets say I want to share my Downloads writable.
I right click my Downloads folder and select: Samba public writable
I then run:
net usershare info --long

and get this

[Downloads]
path=/home/wisemagic/Downloads
comment=
usershare_acl=Everyone:F,
guest_ok=y

My problem is

This
[Downloads]
path=/home/wisemagic/Downloads
comment=
usershare_acl=Everyone:F,
guest_ok=y
Does not show up in smb.conf

This
/home/wisemagic/Downloads
Does not show up in the
mate-shares-admin

And Webmin, under
Servers / Samba Windows File Sharing does not show
Downloads
as a shared folder

The only place the share shows up is in
/var/lib/samba/usershares/
as a config file named downloads.

#VERSION 2
path=/home/wisemagic/Downloads
comment=
usershare_acl=S-1-1-0:F
guest_ok=y
sharename=Downloads

While this does work, as far as being able to access the shared folder it is limited to being configured for restricted access or other special configuration.

Also the Browse Network link in Thunar, does show the Windows Network, and clicking it does show the workgroup, but it is not browse-able. The only way I can access shares is smb://IPADDRESS i.e. smb://192.168.1.102

Question:
Is there a way to change the right click action to add the share to smb.conf so it can be configured thru Webmin or mate-shares-admin?
And
Is there something missing that would allow browsing these shares, thru Thunar's network link with the netbios name instead of having to smb://192.168.1.102?
E5-2690 Xeon - 16GB PC12800 DDR3 1600 Quad Channel -
Chinese HUANAN MB - GeForce GTX 960 4GB PCI Express 16X HDMI
Dual 480.0 GB SSD Corsair - Corsair H60 Liquid CPU Cooler - Blu-ray / DVD LightScribe Recorder
Debian Sid - Kernel 4.17.2-zen

User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Shared Folders

Postby Arjen Balfoort » 22 Jul 2013 07:07

Thunar's samba commands are defined in ~/.config/Thunar/uca.xml
Search for "samba", and the "command" tag within.
There are three relevant commands there.

I couldn't find a better way then these. Unfortunately, as you found out, shares made this way won't show up smb.conf

If you find out how to solve this one, please do share!


SolydXK needs you!
Development | Testing | Translations

Deleted User 2763

Re: Shared Folders

Postby Deleted User 2763 » 22 Jul 2013 13:32

FWIW,
I've found that (shameless tutorial plug) Simple Samba Server Configuration works for me for about 99.9% of the time.

What I generally do is (after going through the tutorial and assuming my samba users also have SolydXK accounts on the host) is make sure that the SolydXK accounts are members of the users group. I generally set up accounts as say,
hinto:users (instead of hinto:hinto as default). What this does is when I create directories and files, they have the hinto:users ownership. If I want to give others r/w access to those files/directories, then I give the files/directories r/w access. If I want samba users to see them, then I symlink them to their home (as defined the tutorial)

say for instance I have:

/home/hinto (hinto:users) r/w hinto, r group
/home/askani (askani:users) r/w hinto, r group
/home/shared (hinto:users) r/w hinto, r/w group

I'll create a directory /home/shared/data (hinto:users) r/w hinto, r/w group and symlink it into
/home/hinto/data -> /home/shared/data
/home/askani/data -> /home/shared/data

This can be a little tedious for 1000 of users, but in the simple case, it works painlessly and it doesn't require a lot of samba research.

-Hinto

User avatar
wisemagic
Posts: 303
Joined: 13 May 2013 03:05
Location: New Iberia, Louisiana USA

Re: Shared Folders

Postby wisemagic » 22 Jul 2013 13:49

Hinto, your way kind of reminded me of my Mac days, where OS X has a Public Folder.... i.e. a Sharded Folder, and we would copy the files to the shared folder, for others to access.

This is not a Major problem, as I generally use Webmin for what ever I can, like Samba, and I'll probably remove the Samba actions.

The other thing was Thunar doesn't seem to want to browse for shared folders, unless I access by IP address.

Thanks for the help.
E5-2690 Xeon - 16GB PC12800 DDR3 1600 Quad Channel -
Chinese HUANAN MB - GeForce GTX 960 4GB PCI Express 16X HDMI
Dual 480.0 GB SSD Corsair - Corsair H60 Liquid CPU Cooler - Blu-ray / DVD LightScribe Recorder
Debian Sid - Kernel 4.17.2-zen

Deleted User 2763

Re: Shared Folders

Postby Deleted User 2763 » 22 Jul 2013 13:57

One point of entry for samba users to your host is generally easier to manage. (IMHO) And I like to say "Low tech is good tech" ;)
-H


Return to “Networking”

Who is online

Users browsing this forum: No registered users and 2 guests