Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello,
started new samba server, and i'm a bit confused with red log messages.
could anyone help to get rid of them or should i just ignore them? give an advice what config options may have impact on performance?
OS Ubuntu 18.04.1 LTS
Linux 4.14.66-147 #1 SMP PREEMPT armv7l
smbd --version Version 4.7.6-Ubuntu
thanks in advance.
smb.conf
Code:
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 3
#syslog = 3
log file = /var/log/samba/log.%m
max log size = 1000
#syslog only = no
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
server role = standalone server
passdb backend = tdbsam
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
security = USER
map to guest = never
usershare allow guests = no
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = no
wide links = no
create mask = 0700
directory mask = 0700
use sendfile = no
strict locking = no
local master = no
time server = no
wins support = no
interfaces = 127.0.0.0/8 eth0
min receivefile size = 16384
write cache size = 524288
getwd cache = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY
#server multi channel support = yes
aio read size = 1
aio write size = 1
vfs objects = aio_pthread
server min protocol = SMB3
client min protocol = SMB3
client max protocol = SMB3
hide special files = yes
follow symlinks = no
hide dot files = yes
valid users = xxx
write list = xxx
#======================= Share Definitions =======================
[FILES]
comment = FILES
path = /mnt/FILES
guest ok = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0700
force create mode = 0700
directory mask = 0700
force directory mode = 0700
[2018/08/30 01:35:15.147400, 3] ../source3/nmbd/nmbd.c:953(main)
standard input is not a socket, assuming -D option
[2018/08/30 01:35:15.147477, 3] ../source3/nmbd/nmbd.c:958(main)
Becoming a daemon.
[2018/08/30 01:35:15.155669, 3] ../source3/nmbd/nmbd.c:1043(main)
Opening sockets 137
[2018/08/30 01:35:15.155910, 3] ../source3/nmbd/nmbd.c:766(open_sockets)
open_sockets: Broadcast sockets opened.
[2018/08/30 01:35:15.156972, 2] ../source3/lib/interface.c:555(interpret_interface)
interpret_interface: using netmask value 8 from config file on interface lo
[2018/08/30 01:35:15.157039, 2] ../source3/lib/interface.c:345(add_interface)
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
[2018/08/30 01:35:15.157103, 2] ../source3/lib/interface.c:345(add_interface)
added interface eth0 ip=192.168.90.99 bcast=192.168.90.255 netmask=255.255.255.0
[2018/08/30 01:35:15.157339, 2] ../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
making subnet name:192.168.90.99 Broadcast address:192.168.90.255 Subnet mask:255.255.255.0
[2018/08/30 01:35:15.157396, 2] ../source3/nmbd/nmbd_subnetdb.c:311(create_subnets)
create_subnets: Ignoring loopback interface.
[2018/08/30 01:35:15.157438, 2] ../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2018/08/30 01:35:15.157485, 2] ../source3/nmbd/nmbd_subnetdb.c:180(make_subnet)
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
[2018/08/30 01:35:15.157562, 2] ../source3/nmbd/nmbd_lmhosts.c:43(load_lmhosts_file)
load_lmhosts_file: Can't open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
[2018/08/30 01:35:15.157818, 3] ../source3/nmbd/nmbd.c:1064(main)
Loaded hosts file /etc/samba/lmhosts
[2018/08/30 01:35:15.157918, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:15.158020, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:15.158080, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:15.158137, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:15.158587, 3] ../source3/nmbd/nmbd_serverlistdb.c:134(create_server_on_workgroup)
create_server_on_workgroup: Created server entry NAS of type 40809a03 (nas server) on workgroup WORKGROUP.
[2018/08/30 01:35:15.158654, 3] ../source3/nmbd/nmbd_workgroupdb.c:259(initiate_myworkgroup_startup)
initiate_myworkgroup_startup: Added server name entry NAS on subnet 192.168.90.99
[2018/08/30 01:35:15.158721, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.158778, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.158845, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.158904, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.158960, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.159061, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<03> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.159119, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.159174, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.90.99 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.159231, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.90.99 ttl=0 nb_flags=80 to subnet UNICAST_SUBNET
[2018/08/30 01:35:15.159288, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2018/08/30 01:35:15.159341, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name *<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2018/08/30 01:35:15.159393, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2018/08/30 01:35:15.159448, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet REMOTE_BROADCAST_SUBNET
[2018/08/30 01:35:15.159852, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2018/08/30 01:35:15.160206, 3] ../source3/nmbd/nmbd_sendannounce.c:212(send_host_announcement)
send_host_announcement: type 809a03 for host NAS on subnet 192.168.90.99 for workgroup WORKGROUP
[2018/08/30 01:35:19.174144, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<20> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:19.174236, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<03> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:19.174285, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name NAS<00> with first IP 192.168.90.99 ttl=0 nb_flags= 0 to subnet 192.168.90.99
[2018/08/30 01:35:19.174332, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<00> with first IP 192.168.90.99 ttl=0 nb_flags=80 to subnet 192.168.90.99
[2018/08/30 01:35:19.174377, 3] ../source3/nmbd/nmbd_namelistdb.c:263(add_name_to_subnet)
add_name_to_subnet: Added netbios name WORKGROUP<1e> with first IP 192.168.90.99 ttl=0 nb_flags=80 to subnet 192.168.90.99
[2018/08/30 01:35:19.174478, 2] ../source3/nmbd/nmbd_elections.c:41(send_election_dgram)
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.90.99
log.smbd
Code:
[2018/08/30 01:35:15.517221, 3] ../source3/param/loadparm.c:3860(lp_load_ex)
lp_load_ex: refreshing parameters
[2018/08/30 01:35:15.517426, 3] ../source3/param/loadparm.c:549(init_globals)
Initialising global parameters
[2018/08/30 01:35:15.517664, 3] ../source3/param/loadparm.c:2774(lp_do_section)
Processing section "[global]"
[2018/08/30 01:35:15.518669, 2] ../source3/param/loadparm.c:2791(lp_do_section)
Processing section "[VIDEO]"
[2018/08/30 01:35:15.518998, 2] ../source3/param/loadparm.c:2791(lp_do_section)
Processing section "[backup]"
[2018/08/30 01:35:15.519586, 3] ../source3/param/loadparm.c:1609(lp_add_ipc)
adding IPC service
[2018/08/30 01:35:15.521070, 2] ../source3/lib/interface.c:555(interpret_interface)
interpret_interface: using netmask value 8 from config file on interface lo
[2018/08/30 01:35:15.521159, 2] ../source3/lib/interface.c:345(add_interface)
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
[2018/08/30 01:35:15.521241, 2] ../source3/lib/interface.c:345(add_interface)
added interface eth0 ip=192.168.90.99 bcast=192.168.90.255 netmask=255.255.255.0
[2018/08/30 01:35:15.525246, 3] ../source3/smbd/server.c:1822(main)
loaded services
[2018/08/30 01:35:15.533878, 1] ../source3/profile/profile_dummy.c:30(set_profile_level)
INFO: Profiling support unavailable in this build.
[2018/08/30 01:35:15.537031, 3] ../source3/smbd/server.c:1842(main)
Standard input is not a socket, assuming -D option
[2018/08/30 01:35:15.537098, 3] ../source3/smbd/server.c:1854(main)
Becoming a daemon.
[2018/08/30 01:35:15.561871, 3] ../source3/lib/util_procid.c:54(pid_to_procid)
pid_to_procid: messaging_dgm_get_unique failed: No such file or directory
[2018/08/30 01:35:15.594140, 3] ../source3/auth/token_util.c:559(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2018/08/30 01:35:15.594242, 3] ../source3/auth/token_util.c:591(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2018/08/30 01:35:15.630323, 3] ../source3/rpc_server/svcctl/srv_svcctl_reg.c:565(svcctl_init_winreg)
Initialise the svcctl registry keys if needed.
[2018/08/30 01:35:15.655674, 3] ../source3/rpc_server/eventlog/srv_eventlog_reg.c:59(eventlog_init_winreg)
Initialise the eventlog registry keys if needed.
[2018/08/30 01:35:15.657680, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2018/08/30 01:35:15.662996, 2] ../source3/smbd/server.c:1395(smbd_parent_loop)
waiting for connections
i'd say red should be reserved for critical errors, but your output seems to include all sorts of messages, even simple information.
basically, it's simple: errors shouldn't be ignored warnings warrant a closer look (and a decision whether it is ok to ignore them)
everything else are informative messages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.