LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-13-2020, 07:31 AM   #1
raakhbaba
LQ Newbie
 
Registered: Feb 2007
Location: Paris - France
Distribution: Mint Tricia
Posts: 23

Rep: Reputation: 0
Samba for newbie - no connection


Good afternoon,
.
My network knowledge is very thin and my English language very bad. I'm on Ubuntu 19.10. on a Lenovo X 201 (INDE) usually in WiFi. I would like to install Ubuntu on my desktop computer (called JR (W 10)) which is wired on the Bouygues box (Sagem Fast5330b-r1)). Before that I want to be sure that will be able to authorize my wife's computer (ELLE (W 10) wired on the Bouygues box too) to access some of my files on JR. Thus I am proceeding to some tests.
.
Our workgroup name is WE.
.
On the Windows computer in SMB 1.0 / CIFS file sharing support I have three lines, the first two being checked (SMB server, SMB client already is - Automatic removal of SMB 1.0 / CFIS is unchecked).
.
On INDE I do:
=======
.
testparm> testparm2020041145
sudo service smbd restart then sudo service nmbd restart (is the latter useful?)
systemctl status smbd nmbd> systemctl2020041149
.
Via ps -aux I see started by root
.
...usrsbin / smbd –foreground –no-process-group
...usrsbin / smbd –foreground –no-process-group
.
In the file explorer I click Other locations. - On this computer - there is Computer and Network. In Networks I see INDE (where print $ (???) is located) and Windows Network. I click on Windows Network and...
...When click on WE: Unable to access the location (Obtaining the list of shares from the server failed: the network broke the connection during the reset)
.
...When I click on WORKGROUP there is BBOX and FM (a small Asus in Wifi which is used to listen to the radio in the kitchen (you will know everything))


=====

In the explorer of JR, in the network there is ELLE, INDE, BBOX, JR, FM.

1:24 p.m.
====
After lunch. I just went back to the file explorer of INDE where Windows Network is now empty. Magic. INDE is always on the network when I browse it on JR.
.
Whatever the moment when I ask smbclient -L 192.168.1.35 (address of JR) he answers:
Unable to initialize messaging context
protocol negociation failes: NT_STATUS_CONNECTION_RESET

Can you please give me an idea ? Thanks a lot.

============== Testparm result
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = / usr / share / samba / panic-action% d
passwd chat = * Enter \ snew \ s * \ spassword: *% n \ n * Retype \ snew \ s * \ spassword: *% n \ n * password \ supdated \ ssuccessfully *.
passwd program = / usr / bin / passwd% u
server role = standalone server
server string = INDE
unix password sync = Yes
usershare allow guests = Yes
workgroup = WE
idmap config *: backend = tdb


[printers]
browseable = No
comment = All Printers
create mask = 0700
path = / var / spool / samba
printable = Yes


[print $]
comment = Printer Drivers
path = / var / lib / samba / printers
 
Old 04-13-2020, 12:25 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Yes both services need to be running i.e smbd and nmbd. since Ubuntu uses systemctl use
sudo systemctl start smbd
sudo systemctl start nmbd

Check commands to see if samba started successfully
sudo systemctl status smbd
sudo systemctl status nmbd

The default Ubuntu 19 smb.conf file only enables print sharing as shown in the output of the testparm command. What are you trying to share? You can enable the home shares or create a new one. You also need to add a username/password using smbpasswd command.

Ubuntu 19 by default does not use SMB version 1 and therefore not browse-able like the other devices. Without changing anything you should be able to enter the IP address in the Windows file browser and see the shares and printers if they exist and are browse-able i.e. \\192.168.1.35

While this is not recommended you should be able to set protocol back to smbV1 by adding the following to the smb.conf file
lanman auth = yes
ntlm auth = yes

The default Ubuntu workgroup name is WORKGROUP you can change the workgroup by adding a workgroup directive in the smb.conf file.
 
1 members found this post helpful.
Old 04-14-2020, 08:41 AM   #3
raakhbaba
LQ Newbie
 
Registered: Feb 2007
Location: Paris - France
Distribution: Mint Tricia
Posts: 23

Original Poster
Rep: Reputation: 0
Thank you

Thank you michaelk
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum Install samba "No package samba available" "No package samba-client available." young redhat Linux - Software 8 04-16-2019 08:05 PM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
samba does not create "samba/netlogon" and "samba/profiles" mianmajidali Linux - Server 0 04-27-2008 05:07 AM
Samba Samba Samba Bear Linux - Networking 9 01-30-2003 07:30 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration