Hi, placing this as a bug rather than on System Administration since samba, by itself when ran manually works in sharing files.
The issue is if running smbd, nmbd as a service, specifically nmbd is causing the issue when at login, the error comes up regards if i wanna to system maintenance or Ctrl+D to continue.
➜  ~ sudo 66-inservice nmbd    
Name                  : nmbd
Version               : 0.2.0
In tree               : root
Status                : enabled, down (exitcode 100) 0 seconds, normally up, want up, ready 0 seconds
Type                  : longrun
Description           : Samba NETBIOS name server
Source                : /usr/lib/66/service/nmbd
Live                  : /run/66/tree/0/root/servicedirs/nmbd
Dependencies          : nmbd-log
External dependencies : None
Optional dependencies : None
Start script          :  execl-cmdline -s { nmbd ${cmd_args} 
Stop script           : None
Environment source    : /etc/66/conf/nmbd/0.2.0
Environment file      : cmd_args=!-F -S --no-process-group
Log name              : nmbd-log
Log destination       : /var/log/66/nmbd
Log file              : None

➜  ~ sudo 66-inservice smbd
Name                  : smbd
Version               : 0.2.0
In tree               : root
Status                : enabled, down (exitcode 100) 0 seconds, normally up, want up, ready 0 seconds
Type                  : longrun
Description           : Samba SMB/CIFS server
Source                : /usr/lib/66/service/smbd
Live                  : /run/66/tree/0/root/servicedirs/smbd
Dependencies          : nmbd winbindd smbd-log
External dependencies : None
Optional dependencies : None
Start script          :  execl-cmdline -s { smbd ${cmd_args} 
Stop script           : None
Environment source    : /etc/66/conf/smbd/0.2.0
Environment file      : cmd_args=!-F -S --no-process-group
Log name              : smbd-log
Log destination       : /var/log/66/smbd
Log file              : None

➜  ~ sudo 66-inservice winbindd
Name                  : winbindd
Version               : 0.2.0
In tree               : root
Status                : enabled, down (exitcode 100) 0 seconds, normally up, want up, ready 0 seconds
Type                  : longrun
Description           : Samba winbind daemon
Source                : /usr/lib/66/service/winbindd
Live                  : /run/66/tree/0/root/servicedirs/winbindd
Dependencies          : nmbd winbindd-log
External dependencies : None
Optional dependencies : None
Start script          :  execl-cmdline -s { winbindd ${cmd_args} 
Stop script           : None
Environment source    : /etc/66/conf/winbindd/0.2.0
Environment file      : cmd_args=!-F -S --no-process-group
Log name              : winbindd-log
Log destination       : /var/log/66/winbindd
Log file              : None

➜  ~ ranger                    
➜  ~ sudo 66-intree -zg root                  
Name         : root
Initialized  : yes
Enabled      : yes
Starts after : None
Current      : yes
Allowed      : root
Symlinks     : svc->source db->source
Contents     : /
               ├─(711,Enabled,classic) dhcpcd-log
               ├─(725,Enabled,classic) haveged-log
               ├─(717,Enabled,classic) cupsd-log
               ├─(730,Enabled,classic) dhcpcd
               ├─(721,Enabled,classic) cupsd
               ├─(729,Enabled,classic) ntpd-log
               ├─(728,Enabled,classic) ntpd
               ├─(727,Enabled,classic) tty@ tty1
               ├─(726,Enabled,classic) haveged
               ├─(722,Enabled,classic) crond-log
               ├─(724,Enabled,classic) crond
               ├─(723,Enabled,classic) tty@ tty2
               ├─(765,Enabled,longrun) nmbd-log
               ├─(0,Enabled,longrun) nmbd
               ├─(758,Enabled,longrun) winbindd-log
               ├─(0,Enabled,longrun) winbindd
               ├─(771,Enabled,longrun) alsa-daemon-log
               ├─(770,Enabled,longrun) dbus-log
               ├─(784,Enabled,longrun) dbus
               ├─(0,Disabled,longrun) samba-log
               ├─(804,Enabled,longrun) alsa-daemon
               ├─(0,Disabled,longrun) samba
               ├─(772,Enabled,longrun) consolekit-log
               ├─(814,Enabled,longrun) consolekit
               ├─(760,Enabled,longrun) smbd-log
               └─(0,Enabled,longrun) smbd
➜  ~ sudo 66-intree -zg     
Name         : boot
Initialized  : yes
Enabled      : no
Starts after : None
Current      : no
Allowed      : root
Symlinks     : svc->source db->source
Contents     : /
               ├─(191,Enabled,classic) tty12
               ├─(down,Enabled,oneshot) mount-proc
               ├─(down,Enabled,oneshot) mount-sys
               ├─(down,Enabled,oneshot) mount-dev
               ├─(down,Enabled,oneshot) mount-cgroups
               ├─(down,Enabled,oneshot) system-hostname
               ├─(down,Enabled,oneshot) mount-run
               ├─(down,Enabled,oneshot) populate-run
               ├─(down,Enabled,oneshot) mount-tmp
               ├─(down,Enabled,oneshot) populate-tmp
               ├─(down,Enabled,oneshot) populate-sys
               ├─(down,Enabled,oneshot) mount-pts
               ├─(down,Enabled,oneshot) mount-shm
               ├─(down,Enabled,oneshot) populate-dev
               ├─(down,Enabled,bundle) 00
               ├─(down,Enabled,oneshot) system-hwclock
               ├─(down,Enabled,oneshot) modules-kernel
               ├─(down,Enabled,oneshot) system-random
               ├─(down,Enabled,oneshot) modules-system
               ├─(down,Enabled,oneshot) system-sysctl
               ├─(411,Enabled,longrun) udevd
               ├─(down,Enabled,oneshot) udevadm
               ├─(down,Enabled,oneshot) system-fontnkey
               ├─(down,Enabled,oneshot) devices-dmraid
               ├─(down,Enabled,oneshot) devices-btrfs
               ├─(down,Enabled,oneshot) devices-crypttab
               ├─(down,Enabled,oneshot) devices-lvm
               ├─(down,Enabled,oneshot) devices-zfs
               ├─(down,Enabled,bundle) system-Devices
               ├─(down,Enabled,bundle) all-Mount
               ├─(down,Enabled,oneshot) system-fsck
               ├─(down,Enabled,oneshot) mount-fstab
               ├─(down,Enabled,bundle) all-System
               ├─(down,Enabled,oneshot) mount-rw
               ├─(down,Enabled,oneshot) local-sethostname
               ├─(down,Enabled,oneshot) local-ip6tables
               ├─(down,Enabled,oneshot) local-iptables
               ├─(down,Enabled,oneshot) local-loop
               ├─(down,Enabled,oneshot) local-time
               ├─(down,Enabled,oneshot) local-authfiles
               ├─(down,Enabled,oneshot) local-tmpfiles
               ├─(down,Enabled,oneshot) local-rc
               ├─(down,Enabled,oneshot) local-dmesg
               ├─(down,Enabled,oneshot) mount-swap
               ├─(down,Enabled,bundle) all-Local
               ├─(down,Enabled,oneshot) all-Runtime
               └─(down,Enabled,bundle) All

Name         : boot-user
Initialized  : no
Enabled      : yes
Starts after : root
Current      : no
Allowed      : root
Symlinks     : svc->source db->source
Contents     : /
               ├─(unitialized,Enabled,oneshot) setenv-negative
               ├─(unitialized,Enabled,oneshot) mount-run-negative
               ├─(0,Enabled,longrun) scandir-negative-log
               ├─(0,Enabled,longrun) scandir-negative
               └─(unitialized,Enabled,bundle) All-negative

Name         : root
Initialized  : yes
Enabled      : yes
Starts after : None
Current      : yes
Allowed      : root
Symlinks     : svc->source db->source
Contents     : /
               ├─(711,Enabled,classic) dhcpcd-log
               ├─(725,Enabled,classic) haveged-log
               ├─(717,Enabled,classic) cupsd-log
               ├─(730,Enabled,classic) dhcpcd
               ├─(721,Enabled,classic) cupsd
               ├─(729,Enabled,classic) ntpd-log
               ├─(728,Enabled,classic) ntpd
               ├─(727,Enabled,classic) tty@ tty1
               ├─(726,Enabled,classic) haveged
               ├─(722,Enabled,classic) crond-log
               ├─(724,Enabled,classic) crond
               ├─(723,Enabled,classic) tty@ tty2
               ├─(765,Enabled,longrun) nmbd-log
               ├─(0,Enabled,longrun) nmbd
               ├─(758,Enabled,longrun) winbindd-log
               ├─(0,Enabled,longrun) winbindd
               ├─(771,Enabled,longrun) alsa-daemon-log
               ├─(770,Enabled,longrun) dbus-log
               ├─(784,Enabled,longrun) dbus
               ├─(0,Disabled,longrun) samba-log
               ├─(804,Enabled,longrun) alsa-daemon
               ├─(0,Disabled,longrun) samba
               ├─(772,Enabled,longrun) consolekit-log
               ├─(814,Enabled,longrun) consolekit
               ├─(760,Enabled,longrun) smbd-log
               └─(0,Enabled,longrun) smbd

➜  ~ 
When you boot do you get a login at tty1 or do you get an emergency shell and start trees manually? Because boot tree seems to have failed. Before fixing this issue anything you do on a system is dangerous because of mounting filesystems is not done properly and you may cause harm.

/etc/66/init.conf --> verbose=4

reboot and transfer the contents of /run/66/log/0/current here

I have added cp /run/66/log/0/current /root/ in my .zlogin so cat ~/current gives me a copy of the log and I can rename it if I change something and reboot so I can compare ~/current.0 ~/current.1 ~/current
i've figured this out.i am getting unmatched { in nmdb, smbd, winbindd.
2020-08-16 21:15:37.919723721  66-dbctl(src/lib66/ssexec_dbctl.c: ssexec_dbctl: 343): fatal: unable to start services selection
2020-08-16 21:15:37.920339593  rc.init: fatal: please see the log at /run/66/log/0/current
2020-08-16 21:15:38.363687971  execlineb: fatal: unmatched {
2020-08-16 21:15:38.379331564  execlineb: fatal: unmatched {
2020-08-16 21:15:38.401213376  execlineb: fatal: unmatched {
this can be seen in my first post (66-inservice)
Start script          :  execl-cmdline -s { winbindd ${cmd_args} 
I modified all 3 scripts to add missing "}" and file sharing now works directly.
Many many thanks for this bug report @ negative.
I did a new release of samba-66serv to fix it at [observice] repository.

if i can give you a council, you could separate this kind of service from your root tree. As it, you can check your service without breaking your boot sequence. For example, create a new tree, ask it to start after your tree root, and do not enable it. Then check if all services start correctly. If all is ok, you can enable it to start it at every boot (or not ;)).
# 66-tree -cn -S root winshare
# 66-enable samba smbd
# 66-all -t winshare up
all is ok? enable it
# 66-tree -E winshare
eric wroteMany many thanks for this bug report @ negative.
I did a new release of samba-66serv to fix it at [observice] repository.

if i can give you a council, you could separate this kind of service from your root tree. As it, you can check your service without breaking your boot sequence. For example, create a new tree, ask it to start after your tree root, and do not enable it. Then check if all services start correctly. If all is ok, you can enable it to start it at every boot (or not ;)).
# 66-tree -cn -S root winshare
# 66-enable samba smbd
# 66-all -t winshare up
all is ok? enable it
# 66-tree -E winshare
thanks for the tip. i've always wanted to split services like this but everytime i do, i always some errors or worst system wont boot up anymore. its probably because i used -cnE instead of enabling the tree later .

just updated and tested new service and this method. works great now

thanks. to both of you for the help.
-cnE means current new Enable for the creation of the tree. If you use n again it will say tree already exists. -c current means that this is your currently default tree, like if you enable a service without specifying a tree it goes to the current one.
If you specify a different tree as being current then the previous one is not current anymore. But all trees that are E-nabled will start after boot is finished "correctly". If boot fails no other tree is initialized, so you should be at either sulogin or tty12.
-c -n -E options work the same for user trees as well.

I hope that helps.

Powered by Obarun