Videos
Good Morning,
Trying to setup Samba via Webmin and had a few questions. I've setup a logical drive between 3 external HDDs. It took a few minutes, but I mounted it for Samba as /etc/Storage/Directory where "storage" is my logical drive.
-
How do I create guest users and passwords? I haven't found a simple way.
-
How do I go about finding this Samba server on the network?
This is so strange to me that I'm commenting just to keep track of how this gets resolved.
You've set up 3 external HDDs via USB as a logical volume?
Just for my information, what commands did you use to do that?
How did you set up the logical volume?
What is the output of lvdisplay,pvdisplay & vgdisplay?
I agree with u/Max-Normal-88 that you should not mount things under /etc. That's why there is a /mnt, for mountpoints.
/etc is really only supposed to root accessible, not shared.
So, perhaps create a folder called /mnt/Storage and mount the logical volume at that mountpoint.
Also, the mountpoint should be /mnt/Storage, not /mnt/Storage/Directory. After the logical volume is mounted, then you can create /mnt/Storage/Directory. Until it is mounted at /mnt/Storage, if you create /mnt/Storage/Directory, the sub-folder Directory will be created on your local drive, not on the Samba logical volume.
I don't know how to create users and passwords using webmin. I have always done it using the command line.
But usually, the user must already exist as a Linux user in /etc/passwd. (I could be wrong here but I've always done it like this and it works for me)
Then, I would create the user with
smbpasswd -a <username>
Again, I could be totally wrong here, but the internet will correct me. The internet hates people being wrong :)
Now, does one find a Samba server?
Samba, if I remember correctly, has an election(?) which announces a master(?)
https://www.linuxtopia.org/online_books/network_administration_guides/using_samba_book/ch05_01_03.html
So, one of the Samba server(s) on the network needs to become the master browser(?)
I normally run nmap to find stuff on my networks.
10:55 AM:root@tpad:~# nmap 192.168.10.111
Starting Nmap 7.12 ( https://nmap.org ) at 2020-07-27 11:04 AST
Nmap scan report for sme (192.168.10.111)
Host is up (0.00021s latency).
Not shown: 985 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
139/tcp open netbios-ssn
389/tcp open ldap
443/tcp open https
465/tcp open smtps
515/tcp open printer
636/tcp open ldapssl
993/tcp open imaps
995/tcp open pop3s
3128/tcp open squid-http
MAC Address: 00:19:66:FC:89:FB (Asiarock Technology Limited)
Nmap done: 1 IP address (1 host up) scanned in 0.56 seconds
11:04 AM:root@tpad:~# smbclient -L //192.168.10.111
Enter HOME\root's password:
Anonymous login successful
OS=[Unix] Server=[Samba 3.6.23-53.el6_10]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer drivers
Primary Disk Primary i-bay
bunch Disk a bunch of files
movies Disk movies
music Disk music
pix Disk pictures
IPC$ IPC IPC Service (SME Server)
Anonymous login successful
OS=[Unix] Server=[Samba 3.6.23-53.el6_10]
Server Comment
--------- -------
Workgroup Master
--------- -------
HOME SME
MYGROUP PENTIUM
WORKGROUP LINUX
11:05 AM:root@tpad:~#
Once the nmap scan shows port 139 open, I know that's a Samba server(?)
Then, I can try to connect with smbclient -L //<ip-address-of-Samba-server> to get a list of shares.
I don't if this helps.
Don’t use /etc for that purpose
Depending on how you set things up, your share should be discoverable using DLNA by clients
So, i've spent the last 2 hours trying to make Samba work, but till now i've got access denied trying to access a share. I'm trying to access as an anonymous user, used "guest ok = yes" and "public = yes", deactivated read only and activated writable, browsable, double checked the path and i'm just tired at this point. I would post the entire smb.conf here, but that would only make this post larger non-necessairly
EDIT: Forgot to say that i am using Linux Mint.
EDIT2: Thank you guys who replied for trying to help, but i found the solution: there was no problem to begin with. It just so happens that the the two SAMBA clients i used were a scam. Again, thank you guys for helping, after all i would've given up if i didn't receive any replies. I'm just gonna mention everyone who replied to the main thread so they get this. u/byReqz, u/NGL_ItsGood, u/Symbology451, u/omegaaf, u/coppercatter, u/ksobrenatural and the unhelpful u/BrainSweetiesss. By the way, i answered most of the replies, but for some reason my replies aren't appearing. I'll contact the mods after if this doesn't go away.