Good day everyone. set and set up alt-f 1.0 set up samba opened access to folders and printer. But I can connect to NAS only via ip, since the nmbd service does not start. And manually run it is not possible. In the journal, I see the following entry.[2019/02/09 09:36:24, 0] nmbd/nmbd.c:861(nmbd_main)nmbd version 3.6.25 started.Copyright Andrew Tridgell and the Samba Team 1992-2011[2019/02/09 09:36:24, 1] param/loadparm.c:8044(lp_do_parameter)WARNING: The "null passwords" option is deprecated[2019/02/09 09:36:24, 0] lib/util_sock.c:1343(create_pipe_sock)invalid permissions on socket directory /var/run/samba[2019/02/09 09:36:24, 0] nmbd/nmbd_packets.c:48(nmbd_init_packet_server)ERROR: nb_packet_server_create failed: NT_STATUS_UNSUCCESSFUL
From the log it becomes clear that there are problems with the rights to the folder / var / run / samba
After changing them,
launching nmbd becomes possible,
but after restarting the NAS, the problem reappears.The installation and launch of cups can serve as a solution to this problem, then nmbd starts as expected and the NAS becomes visible on the network under its own host name. But in this case there is no possibility to use the printer in the way that with the cups running, the LPD server becomes unavailable, and cups itself does not see the usb port, and there is no way to configure a printer connected to the NAS in it.Please tell me how to solve the problem with running nmbd otherwise? NAS - DNS-325. HP Laserjet 1150 Printer
I do everything using the web interface, except for changing permissions to the folder specified in the log. I do this through midnight commander, connecting via SSH. The default permissions are 40775. I delete this folder, and then restart samba in the web interface. Samba starts and creates this folder with 40755 permissions. Nmbd also starts successfully. But if I reboot the NAS, nmbd, as I said in the first message, does not start again, and 40777 permissions are installed on the folder. If cups is installed and running, then this problem does not occur, nmbd starts as it should. Manually, I run nmbd in the samba configuration web interface on the status tab.
[root@homeserver]# testparmLoad smb config files from /etc/samba/smb.confrlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
WARNING: The "username" option is deprecatedWARNING: The "printer admin" option is deprecatedProcessing section "[Printers]"Processing section "[share]"Processing section "[lp0]"Loaded services file OK.WARNING: lock directory /var/cache/samba should have permissions 0755 for browsing to workWARNING: state directory /var/cache/samba should have permissions 0755 for browsing to workWARNING: cache directory /var/cache/samba should have permissions 0755 for browsing to workServer role: ROLE_STANDALONEPress enter to see a dump of your service definitions
[root@DNS-325]# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[Printers]"
Processing section "[Users]"
Processing section "[RO]"
Processing section "[RW]"
Processing section "[Transmission]"
Processing section "[Backup]"
Processing section "[WebData]"
Processing section "[CouchPotato2]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[root@DNS-325]# for i in /var/*; do find $i/ -name samba -exec ls -ld {} \; ; donedrwxr-xr-x 3 root root 380 Feb 10 18:43 /var/cache/sambadrwxr-xr-x 3 root root 120 Feb 8 05:04 /var/log/sambadrwxr-xr-x 2 root root 60 Jan 21 00:28 /var/run/sambadrwxrwxrwt 2 root root 40 Jan 1 1970 /var/spool/sambadrwxrwxrwt 2 root root 40 Jan 1 1970 /var/tmp/spool/sambadrwxr-xr-x 3 root root 380 Feb 10 18:43 /var/tmp/cache/sambadrwxr-xr-x 3 root root 120 Feb 8 05:04 /var/tmp/log/sambadrwxr-xr-x 2 root root 60 Jan 21 00:28 /var/tmp/run/samba
[root@DNS-325]# ls -l /Alt-F/var/total 12drwxr-xr-x 16 root root 4096 Jan 21 17:01 libdrwxr-xr-x 2 root root 4096 Jul 30 2018 lynxtechnologydrwxr-xr-x 3 root root 4096 Jul 30 2018 twonky
Now, as you said, disabled the download of packages that you installed yourself, rebooted the NAS. Indeed, nmbd started as expected. I even checked twice. Would you advise me to transfer the packages I installed to another section?
понедельник, 11 февраля 2019 г., 6:33:54 UTC+3 пользователь Joao Cardoso написал:
On Sunday, February 10, 2019 at 8:03:30 PM UTC, Илья Картавенко wrote:
воскресенье, 10 февраля 2019 г., 21:58:45 UTC+3 пользователь João Cardoso написал:
On Sunday, 10 February 2019 13:11:17 UTC, Илья Картавенко wrote:
суббота, 9 февраля 2019 г., 21:02:03 UTC+3 пользователь Илья Картавенко написал:Good day everyone. set and set up alt-f 1.0 set up samba opened access to folders and printer. But I can connect to NAS only via ip, since the nmbd service does not start. And manually run it is not possible. In the journal, I see the following entry.
Now, as you said, disabled the download of packages that you installed yourself, rebooted the NAS. Indeed, nmbd started as expected. I even checked twice. Would you advise me to transfer the packages I installed to another section?I don't know what do you have under /mnt/sda4/Alt-F (by the way, read the README.txt file on it, and the wiki on how to customize the firmware), but repairing it might be laborious, so I recommend you to just delete it and reinstall the needed packages. When you rebooted you have a message in the status page saying that "an Alt-F...blabla...was found and not used", right? So its safe to just remove everything on it and reinstall packages again to /mnt/sda4. And remember DON'T, but DON'T change, add, remove anything under that folder!Yes, on the device status page, I see the message "Alt-F directory found in sda4 but there is no NOAUFS exists on it." Moving packages to another section helped solve the problem. Thank you for help.