Hello everybody,
I have no clue to networking. I have tried in the past several times to establish connection between computers and have failed. However, this time I cannot letgo. This has become necessary for me. So I am here. I have searched through the web and this forum for discussions that relate to my issue but could not find similar ones or solutions.
I am trying to setup a Samba share between a Manjaro and another system booted with antiX-live USB but I am unable to achieve it. I am not able to discern where the problem lies. First I have setup Samba share on Manjaro and then I am trying to connect it with âconnectsharesâ application on on antiX-live system. The error I am getting on antiX system is;
âunable to mount sambashare on folder-named-with-ip-address-of-Manjaro-systemâ.
The two systems that I am trying to connect:
They are two Laptops with the following specifications.
-
One is a 10 year old 3 GB RAM, 300 GB HDD, i3 M 380 booted with antix live USB. The HDD on this system has gone corrupted file system. So need to recover the files on the HDD with Photorec. I do not have another device to which I can save the recovered lost files. So have to connect another system on which there is space, through Samba share and save the recovered files on that system.
-
The other system is a 3 year old 4 GB RAM, 1 TB HDD, i3 5005U, installed with Manjaro xfce OS.
I have connected the two systems with a straight (not crossover) Ethernet cable.
How did I setup Samba on Manjaro: I did it on the terminal taking guidance from an YouTube video which sets up Samba on Archlinux with command line. I did the following on the Manjaro system.
After updating the system, I gave the following commands in the terminal;
$ samba --version
Version 4.14.2
$ sudo systemctl disable samba
$ sudo nano /etc/samba/smb.conf
After this I did the following editing to the file /etc/samba/smb.conf. Inserted the below, inside the /etc/samba/smb.conf file at the end of that file.
[MySambaShare]
comment = My Samba share
path = /samba
writable = yes
browseable = no
create mask = 0700
directory mask = 0700
read only = no
guest ok = no
After doing this, I issued the following commands;
$ sudo systemctl stop samba
$ sudo groupadd -r sambausers
$ sudo usermod -aG sambausers Username
$ sudo smbpasswd -a Username
New SMB password:
Retype new SMB password:
Added user Username.
$ sudo mkdir /samba
$ sudo chown -R :sambausers /samba
$ sudo chmod 1770 /samba
$ sudo systemctl enable --now smb
$ sudo systemctl enable --now nmb
$ sudo systemctl restart smb.service
$ systemctl status smb
â smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor prese>
Active: active (running) since Sun 2021-04-11 16:16:57 IST; 1h 6min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 966 (smbd)
Status: âsmbd: ready to serve connectionsâŚâ
Tasks: 4 (limit: 4405)
Memory: 17.7M
CGroup: /system.slice/smb.service
ââ 966 /usr/bin/smbd --foreground --no-process-group
ââ1011 /usr/bin/smbd --foreground --no-process-group
ââ1012 /usr/bin/smbd --foreground --no-process-group
ââ1095 /usr/bin/smbd --foreground --no-process-groupApr 11 16:16:51 xxxxxxxxxx systemd[1]: Starting Samba SMB DaemonâŚ
Apr 11 16:16:57 xxxxxxxxxx systemd[1]: Started Samba SMB Daemon.
Apr 11 16:16:57 xxxxxxxxxx smbd[966]: [2021/04/11 16:16:57.624279, 0] âŚ/âŚ/li>
Apr 11 16:16:57 xxxxxxxxxx smbd[966]: daemon_ready: daemon âsmbdâ finished st>
lines 1-20/20 (END)$ systemctl status nmb
â nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor prese>
Active: active (running) since Sun 2021-04-11 16:16:51 IST; 1h 6min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 687 (nmbd)
Status: ânmbd: ready to serve connectionsâŚâ
Tasks: 1 (limit: 4405)
Memory: 16.7M
CGroup: /system.slice/nmb.service
ââ687 /usr/bin/nmbd --foreground --no-process-groupApr 11 16:16:26 xxxxxxxxxx nmbd[687]: NOTE: NetBIOS name resolution is not su>
Apr 11 16:16:51 xxxxxxxxxx nmbd[687]: [2021/04/11 16:16:51.826402, 0] âŚ/âŚ/li>
Apr 11 16:16:51 xxxxxxxxxx nmbd[687]: daemon_ready: daemon ânmbdâ finished st>
Apr 11 16:16:51 xxxxxxxxxx systemd[1]: Started Samba NMB Daemon.
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: [2021/04/11 16:17:14.855452, 0] âŚ/âŚ/so>
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: *****
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]:
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: Samba name server xxxxxxxxxx is now a l>
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]:
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: *****
lines 1-23âŚskippingâŚ
â nmb.service - Samba NMB Daemon
Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2021-04-11 16:16:51 IST; 1h 6min ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 687 (nmbd)
Status: ânmbd: ready to serve connectionsâŚâ
Tasks: 1 (limit: 4405)
Memory: 16.7M
CGroup: /system.slice/nmb.service
ââ687 /usr/bin/nmbd --foreground --no-process-groupApr 11 16:16:26 xxxxxxxxxx nmbd[687]: NOTE: NetBIOS name resolution is not supported for Internet Protocol Version 6 (IPv6).
Apr 11 16:16:51 xxxxxxxxxx nmbd[687]: [2021/04/11 16:16:51.826402, 0] âŚ/âŚ/lib/util/become_daemon.c:135(daemon_ready)
Apr 11 16:16:51 xxxxxxxxxx nmbd[687]: daemon_ready: daemon ânmbdâ finished starting up and ready to serve connections
Apr 11 16:16:51 xxxxxxxxxx systemd[1]: Started Samba NMB Daemon.
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: [2021/04/11 16:17:14.855452, 0] âŚ/âŚ/source3/nmbd/nmbd_become_lmb.c:398(become_local_master_st>
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: *****
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]:
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: Samba name server xxxxxxxxxx is now a local master browser for workgroup WORKGROUP on subnet 1>
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]:
Apr 11 16:17:14 xxxxxxxxxx nmbd[687]: *****
~
~
~
~
~
~
~
~
~
~
~
lines 1-23/23 (END)$ testparm
Load smb config files from /etc/samba/smb.conf
lp_load_ex: Max protocol NT1 is less than min protocol SMB2.
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONEPress enter to see a dump of your service definitions
#Global parameters
[global]
client min protocol = SMB2
dns proxy = No
log file = /var/log/samba/%m.log
map to guest = Bad Password
max log size = 1000
name resolve order = lmhosts bcast host wins
obey pam restrictions = Yes
pam password change = Yes
passwd chat = NewUNIXpassword %n\n ReTypenewUNIXpassword* %n\n passwd:allauthenticationtokensupdatedsuccessfully*
passwd program = /usr/bin/passwd %u
security = USER
server min protocol = SMB3
server role = standalone server
unix password sync = Yes
usershare allow guests = Yes
usershare max shares = 100
usershare path = /var/lib/samba/usershare
idmap config * : backend = tdb
force create mode = 0070
force directory mode = 0070[homes]
browseable = No
comment = Home Directories
create mask = 0700
directory mask = 0700
valid users = %S[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes[print$]
comment = Printer Drivers
path = /var/lib/samba/printers[MySambaShare]
browseable = No
comment = My Samba share
create mask = 0700
directory mask = 0700
path = /samba
read only = No
After this I worked on antiX-live USB system. I updates and upgraded the live system and remastered it. There is an application called âConnectsharesâ in antiX OS. I configured it and tried to connect the Manjaro system. Interestingly, the Manjaro system is detected and its IP address is displayed in Connectshares. However when I try to connect, it gives an arror as below;
Connectshare error: Did not mount sambashare on 192.168.xxx.xxx.
Now my queries in this task are:
-
Is it right to connect the two systems with a straight (not crossover) ethernet cable? Or do I have to connect a router or a switch in between. I have a router and a switch. I tried connecting them in between the two systems but the situation became worse. The antiX live system did not even detect the Manjaro system, while it detected it without them. Or do I need to get a crosspver cable to connect the systems and start Samba share?
-
As mentioned above I created a Samba share user with the command,
usermod -aG sambausers Username
Should this Username be the same as the Username created in the Manjaro system user accounts to which I would be connecting to share files with Samba?
- How can Samba login to the user account on the other system, without knowing its credentials like Username and Password of the user account on that OS?
Please guide me to find a solution to my problem. I would appreciate any suggestion in this regard.
Thank you and best regards