LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2019, 10:29 AM   #16
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0

Quote:
min protocol = SMB1
Thanks a lot. I did change and restarted smb. Can you see error below please?
Attached Thumbnails
Click image for larger version

Name:	err_k.png
Views:	8
Size:	72.7 KB
ID:	31016  

Last edited by PingAn; 08-03-2019 at 10:40 AM.
 
Old 08-03-2019, 11:25 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,031

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
I am not sure what the status code means.

Look at /var/log/samba log files and the output of journalctl -xe
 
Old 08-04-2019, 07:25 AM   #18
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks.

Here are the errors

Quote:
[root@?-?-?-?-on-nets smb01]# systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-08-04 19:43:18 HKT; 34min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1367 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1367 (code=exited, status=1/FAILURE)

Aug 04 19:43:16 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
Aug 04 19:43:17 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, sta...URE
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 04 19:43:18 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@?-?-?-?-on-nets smb01]# systemctl -l restart smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
[root@?-?-?-?-on-nets smb01]# journalctl -xe
Aug 04 20:12:54 ?-?-?-?-on-nets.com sshd[3702]: pam_unix(sshd:auth): authentication failure; logname= ui
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Failed password for invalid user earl from 219.143.153.2
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Received disconnect from 219.143.153.229 port 58590:11:
Aug 04 20:12:56 ?-?-?-?-on-nets.com sshd[3702]: Disconnected from 219.143.153.229 port 58590 [preauth]
Aug 04 20:17:02 ?-?-?-?-on-nets.com dbus[774]: [system] Activating service name='org.freedesktop.problem
Aug 04 20:17:02 ?-?-?-?-on-nets.com dbus[774]: [system] Successfully activated service 'org.freedesktop.
Aug 04 20:17:06 ?-?-?-?-on-nets.com gnome-shell[2653]: JS ERROR: Exception in callback for signal: posit
getCurrentRect@resource:///org/gnome/shell/ui/key
wrapper@resource:///org/gnome/gjs/modules/_legacy
_onFocusPositionChanged@resource:///org/gnome/she
wrapper@resource:///org/gnome/gjs/modules/_legacy
_emit@resource:///org/gnome/gjs/modules/signals.j
_setCurrentWindow/this._currentWindowPositionId<@
Aug 04 20:17:16 ?-?-?-?-on-nets.com su[3819]: (to root) smb01 on pts/1
Aug 04 20:17:16 ?-?-?-?-on-nets.com su[3819]: pam_unix(su:session): session opened for user root by smb0
Aug 04 20:18:37 ?-?-?-?-on-nets.com polkitd[788]: Registered Authentication Agent for unix-process:3899:
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has begun starting up.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, status=1/
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 04 20:18:37 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Aug 04 20:18:37 ?-?-?-?-on-nets.com polkitd[788]: Unregistered Authentication Agent for unix-process:389
lines 2848-2881/2881 (END)
 
Old 08-07-2019, 02:49 AM   #19
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Dear all,
Any other help?
 
Old 08-07-2019, 02:53 AM   #20
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,083

Rep: Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137Reputation: 4137
Dear PingAn, see post #17. Your daemon could not be started and the reason was most probably written into the log.
 
Old 08-12-2019, 04:18 AM   #21
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Can you advise regarding the file below (from /var/log/samba/old)?

Quote:
[2019/08/02 07:30:27.694922, 0] ../lib/param/loadparm.c:1862(lpcfg_do_service_parameter)
Global parameter unix charset found in service section!
[2019/08/02 07:30:27.700453, 0] ../lib/param/loadparm.c:1862(lpcfg_do_service_parameter)
Global parameter dos charset found in service section!
[2019/08/02 07:30:27.700604, 0] ../lib/param/loadparm.c:1862(lpcfg_do_service_parameter)
Global parameter security found in service section!
[2019/08/02 07:30:27.700697, 0] ../lib/param/loadparm.c:1862(lpcfg_do_service_parameter)
Global parameter passdb backend found in service section!
[2019/08/02 07:30:27.703602, 0] ../lib/param/loadparm.c:1862(lpcfg_do_service_parameter)
Global parameter map to guest found in service section!
[2019/08/02 07:30:27.727358, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/02 17:31:15.235783, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/02 17:31:15.246022, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/02 17:31:15.257405, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 11:13:16.423808, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 11:13:16.442694, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 11:13:16.451769, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 11:19:43.333441, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 11:19:43.333791, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 11:19:43.334826, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 11:50:06.980245, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 11:50:06.990647, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 11:50:06.992345, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 12:32:18.895433, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 12:32:18.895719, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 12:32:18.896629, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 12:38:29.590202, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 12:38:29.590484, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 12:38:29.591303, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 17:40:27.320513, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 17:40:27.333378, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 17:40:27.340462, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 21:35:07.710413, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 21:35:07.728954, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 21:35:07.729806, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 21:39:12.284287, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 21:39:12.284538, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 21:39:12.285390, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 21:39:42.954037, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 21:39:42.954329, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 21:39:42.960804, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
[2019/08/03 23:13:53.674957, 0] ../lib/param/loadparm.c:784(lpcfg_map_parameter)
Unknown parameter encountered: "min procotol"
[2019/08/03 23:13:53.683312, 0] ../lib/param/loadparm.c:1811(lpcfg_do_global_parameter)
Ignoring unknown parameter "min procotol"
[2019/08/03 23:13:53.684928, 0] ../lib/param/loadparm.c:1621(set_variable_helper)
set_variable_helper(yes# writable): value is not boolean!
 
Old 08-21-2019, 08:52 PM   #22
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Dear all,
Any other help?
 
Old 08-21-2019, 09:42 PM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,031

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
You never fixed my spelling error

min procotol = SMB1

should be

min protocol = SMB1

Quote:
[Share]# any name you like
path = /home/share# shared directory
writable = yes# writable
guest ok = yes# guest allowed
guest only = yes# guest only
create mode = 0777# fully accessed file
directory mode = 0777# fully accessed directory
Remove the comments on each line (#...)
 
Old 08-22-2019, 04:26 AM   #24
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Where did you see the wrong spelling (in which file)?

Here is my smb.conf

Quote:
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
min protocol = SMB1
# security = smb01
inherit acls = Yes
unix charset = UTF-8
dos charset = CP932
hosts allow = ?.?.?.?
map to guest = Bad User
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
[Share]# any name you like
path = /home/share# shared directory
writable = yes# writable
guest ok = yes# guest allowed
guest only = yes# guest only
create mode = 0777# fully accessed file
directory mode = 0777# fully accessed directory
 
Old 08-22-2019, 04:55 AM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,031

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Ok that error was fixed. Now remove the comments as indicated in my previous post.
 
Old 08-22-2019, 09:20 PM   #26
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
I've removed all comments within smb.conf file but I've still got the following

Quote:
[root@?-?-?-?-on-nets smb01]# systemctl start smb
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
[root@?-?-?-?-on-nets smb01]# systemctl status smb.service
● smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-08-23 10:16:11 HKT; 23s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 4345 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 4345 (code=exited, status=1/FAILURE)

Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, stat...URE
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@?-?-?-?-on-nets smb01]# journalctl -xe
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit nmb.service has begun starting up.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: nmb.service: main process exited, code=exited, status=1/F
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba NMB Daemon.
-- Subject: Unit nmb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit nmb.service has failed.
--
-- The result is failed.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: Unit nmb.service entered failed state.
Aug 23 10:16:06 ?-?-?-?-on-nets.com systemd[1]: nmb.service failed.
Aug 23 10:16:06 ?-?-?-?-on-nets.com polkitd[796]: Unregistered Authentication Agent for unix-process:4317
Aug 23 10:16:11 ?-?-?-?-on-nets.com polkitd[796]: Registered Authentication Agent for unix-process:4339:3
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Starting Samba SMB Daemon...
-- Subject: Unit smb.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has begun starting up.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service: main process exited, code=exited, status=1/F
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smb.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman.../systemd-devel
--
-- Unit smb.service has failed.
--
-- The result is failed.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: Unit smb.service entered failed state.
Aug 23 10:16:11 ?-?-?-?-on-nets.com systemd[1]: smb.service failed.
Aug 23 10:16:11 ?-?-?-?-on-nets.com polkitd[796]: Unregistered Authentication Agent for unix-process:4339
lines 2904-2937/2937 (END)
 
Old 08-22-2019, 10:12 PM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,031

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Check the logs.
 
Old 08-24-2019, 08:17 AM   #28
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Sorry, which log file do you mean?
 
Old 08-24-2019, 08:55 AM   #29
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,031

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
/var/log/samba
 
Old 08-24-2019, 10:02 AM   #30
PingAn
Member
 
Registered: Jul 2019
Posts: 44

Original Poster
Rep: Reputation: 0
Sorry to that log file is empty.
Quote:
[root@?-?-?-?-on-nets samba]# ls -l
total 0
drwx------. 4 root root 30 Jul 10 14:14 cores
-rw-r--r--. 1 root root 0 Aug 12 10:25 log.nmbd
-rw-r--r--. 1 root root 0 Aug 12 10:25 log.smbd
drwx------. 2 root root 156 Aug 12 17:33 old

Last edited by PingAn; 08-24-2019 at 10:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
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 - Newbie

All times are GMT -5. The time now is 03:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration