You are not logged in.
Hi,
I have recently installed Arch after using Manjaro for a year. I have installed samba and made a custom smb.conf for my two external HDD, ran testparm resulting in no errors, restarted smb and nmb service folllowed by enabling them in systemctl and allowed all samba ports through ufw. Now I can see my samba share in my network but cannot open the two external HDD in that network.
Below is the dump of my smb.conf file:
[global]
server min protocol = SMB2_02
server role = standalone server
map to guest = Bad User
usershare allow guests = yes
hosts allow = 192.168.0.0/16
hosts deny = 0.0.0.0/0
[Mass Storage]
comment = 1TB ext hdd
path = /run/media/ronitb/Mass Storage
read only = no
guest ok = yes
force user = ronitb
force group = ronitb
[My Passport]
comment = 2TB ext hdd
path = /run/media/ronitb/My Passport
read only = no
guest ok = yes
force user = ronitb
force group = ronitb
Below is the screenshot which shows that the shared folder list is showing but the files inside them are not accessible (the Mass Storage folder is expanded).
https://drive.google.com/file/d/1upRs9c … sp=sharing
Last edited by VigilantLoki (2020-08-25 07:49:29)
Offline
In your listed steps you did not state anything about "User Management",
did you follow https://wiki.archlinux.org/index.php/Samba on all required steps?
And:
In the chapter "Client" are some steps explained, also how to mount in terminal.
This should give you some errror message, which you could post here.
Also the sevrer logs of samba would be nice to read.
Offline
i have already created a samba user on my own user name by sudo smbpasswd -a <username> and I have mostly done everything on the wiki page. i have distro hopped many distributions before like ubuntu, mint, MX Linux, fedora, OpenSUSE, etc. I made samba work effortlessly without any hiccups by the smb.conf file and everything else I mentioned except on fedora. Fedora caused problems exactly like I am having on arch.
P.S I don't know where to get the logs for samba... The wiki page says to create one in /var to make it editable, but do I have to mv that log file from somewhere?
Offline
Maybe a problem with apparmor? The default apparmor profile for smbd is fairly restrictive.I had a similar problem which was fixed by creating a local smbd profile for apparmor which allows access to the shared folder.
Offline