Failed To Open /var/lib/samba/secrets.tdb Error Unable To Open Secrets Database
Contents |
20:18:18 DeatzoSeol Member Registered: 2012-06-12 Posts: 10 [SOLVED] Samba can not open smbclient failed to open var lib samba private secrets tdb secrets.tdb I started Samba the other day, but secrets.tdb location even though the daemon was running, no clients could connect to it...Luckily, the samba secrets.tdb missing log gave me the answer:smbd[1238]: [2012/06/25 22:08:02.689949, 0] passdb/secrets.c:76(secrets_init) smbd[1238]: Failed to open /etc/samba/private/secrets.tdb smbd[1239]: [2012/06/25 22:08:02.691355, 0] passdb/secrets.c:76(secrets_init) smbd[1239]: Failed create secrets tdb to open /etc/samba/private/secrets.tdb smbd[1239]: [2012/06/25 22:08:02.691430, 0] smbd/server.c:1169(main) smbd[1239]: ERROR: smbd can not open secrets.tdbHowever, a simple ls -l on /etc/samba/private/secrets.tdb shows-rw-r--r-- 1 root root passdb.tdb -rw-r--r-- 1 root root secrets.tdbSo it can read the files... what's going on here?Edit: I found the
Pdb Backend Samba_dsdb Did Not Correctly Init
problem: apparently, Samba not only needs to be able to read the file, but also write to them. Since I was on a read-only rootfs, symlinking these to /var/lib/samba solved my problem. Last edited by DeatzoSeol (2012-06-26 19:48:17) Offline Pages: 1 Index В»Applications & Desktop Environments В»[SOLVED] Samba can not open secrets.tdb Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Protection Multimedia and Games System Administration Other Architectures Announcements, Package & Security Advisories Arch Discussion Forum & Wiki discussion Pacman & Package Upgrade Issues [testing] Repo Forum Creating & Modifying Packages AUR Issues, Discussion & PKGBUILD Requests GNU/Linux Discussion Community Contributions Programming & Scripting Other Languages Artwork and Screenshots Atom topic feed Powered by FluxBB
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow
Add Samba User
the company Business Learn more about hiring developers or posting ads with us Server smbpasswd Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. samba list users Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to recreate samba https://bbs.archlinux.org/viewtopic.php?id=144020 secrets.tdb file up vote 2 down vote favorite While trying to setup samba on an NFS server I deleted (don't ask) the /var/lib/samba/ contents and now when I try to start samba, this messages appears : [2012/07/06 08:19:07.528973, 0] passdb/secrets.c:73(secrets_init) Failed to open /var/lib/samba/private/secrets.tdb [2012/07/06 08:19:07.689735, 0] passdb/secrets.c:73(secrets_init) Failed to open /var/lib/samba/private/secrets.tdb [2012/07/06 08:19:07.690078, 0] smbd/server.c:1240(main) ERROR: smbd can not open secrets.tdb So how do I recreate the secrets.tdb file and the rest http://serverfault.com/questions/405301/how-to-recreate-samba-secrets-tdb-file of the needed files if any ? samba centos6 share|improve this question asked Jul 6 '12 at 6:25 drcelus 99421024 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote accepted Use smbpasswd which will create the file if it doesn't exist when you add a new user ls -l /var/lib/samba/private/secrets.tdb ls: cannot access /var/lib/samba/private/secrets.tdb: No such file or directory smbbpasswd iain New SMB password: Retype new SMB password: ls -l /var/lib/samba/private/secrets.tdb -rw-------. 1 root root 45056 Jul 6 07:54 /var/lib/samba/private/secrets.tdb share|improve this answer answered Jul 6 '12 at 6:55 Hangin on in quiet desperation 88.2k9115201 2 This only works is the directory /var/lib/samba/private exists. If it doesn't just make it via mkdir then execute the smbpasswd -a user –Karl Morrison Jun 24 '14 at 17:40 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged samba centos6 or ask your own question. asked 4 years ago viewed 13591 times active 4 years ago Related 0Ubuntu
sorted by: [ date ] [ thread ] [ subject ] [ author ] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve, Please post https://lists.samba.org/archive/samba-technical/2002-October/024819.html general use questions to the samba at samba.org list (see http://lists.samba.org/listinfo/samba for details). The samba-technical mailing is for discussions of Samba internals and development issues. http://unixforum.org/index.php?showtopic=131816 Thanks. btw....make sure that the /usr/local/samba/private/ directory exists. cheers, jerry On Thu, 17 Oct 2002 steve at hastingsfamily.com wrote: > All, > > TIA, I failed to have a feeling this is a question everyone knows the answer to but > me, why do I keep getting the message: > > Failed to open /usr/local/samba/private/secrets.tdb > > Solaris 8 02/02 release. private/secrets.tdb does not exist, and > /usr/local/samba is root:other ownership. /etc/init.d/samba.server start > will start smbd and failed to open nmbd, nbtstat shows the share, but I can't create any > samba users. smb.conf and smb.log at bottom. > > When I run: > > #smbpasswd -a root > Failed to open /usr/local/samba/private/secrets.tdb > New SMB password: > Retype new SMB password: > unable to open passdb database. > startsmbfilepwent_internal: too many race conditions creating file > /usr/local/samba/private/smbpasswd > add_smbfilepwd_entry: unable to open file. > Failed to add entry for user root. > Failed to modify password entry for user root > # > > > This is created: > > > Copyright Andrew Tridgell and the Samba Team 1992-2002 [2002/10/16 11:41:56, > 0] passdb/secrets.c:secrets_init(43) > Failed to open /usr/local/samba/private/secrets.tdb > [2002/10/16 11:41:57, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163) > pdb_generate_sam_sid: Failed to store generated machine SID. [2002/10/16 > 11:41:57, 0] smbd/server.c:main(793) > ERROR: Samba cannot create a SAM SID. > [2002/10/16 11:43:31, 0] smbd/server.c:main(707) > smbd version 2.2.5 started. > Copyright Andrew Tridgell a
(Сообщение закроется через 2 секунды) Здравствуйте, гость ( Вход | Регистрация ) Поиск· Дополнительные параметры unixforum.org>Практические вопросы>Администрирование Внимание! Прочитайте перед тем, как задать вопрос:при создании темы в этом разделе предполагается, что вы обладете базовыми знаниями о работе GNU/linuxи имеете представление об использовании средств настройки, предоставленных вашим дистрибутивом,а также понимаете назначение и основные принципы работы используемых вами сервисов.при создании темы с описанием проблемы- полностью описывайте проблему- описывайте свои действия, предпринятые для решения проблемы- приводите свои конфиги, логи или сообщения об ошибках- указывайте, пожалуйста, свой дистрибутивесли вы не уверены в своих знаниях - добро пожаловать в "Администрирование для начинающих". решено: как указать рзмещение secrets.tdb для smbd Опции McSim Просмотр профиля May 5 2012, в 13:41 Сообщение #1 Экспериментатор Сообщений: 413 Вставить имя : Цитата ОС: заGNU/Linux Debian Город: Новороссийск Группа: Участники Автор темы Доброго времени, камрады.Путаюсь настроить SAMBA на 2 разных интерфейса с разными smb.conf.Самба из репы, собрана со следующими параметрами путями:Кодavr ~ # smbd -b | grep / Build host:Linux biber 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 i686 GNU/Linux SRCDIR:/build/buildd-samba_3.5.6~dfsg-3squeeze7-i386-oNRyFO/samba-3.5.6~dfsg/source3 BUILDDIR:/build/buildd-samba_3.5.6~dfsg-3squeeze7-i386-oNRyFO/samba-3.5.6~dfsg/source3 SBINDIR: /usr/sbin BINDIR: /usr/bin SWATDIR: /usr/share/samba/swat CONFIGFILE: /etc/samba/smb.conf LOGFILEBASE: /var/log/samba LMHOSTSFILE: /etc/samba/lmhosts LIBDIR: /usr/lib/samba MODULESDIR: /usr/lib/samba LOCKDIR: /var/run/samba STATEDIR: /var/lib/samba CACHEDIR: /var/cache/samba PIDDIR: /var/run/samba SMB_PASSWD_FILE: /etc/samba/smbpasswd PRIVATE_DIR: /etc/sambasmb-avr.conf содержит вот такую инфу:Кодavr ~ # testparm -s /etc/samba/smb-avr.confLoad smb config files from /etc/samba/smb-avr.conf.commentrlimit_max: rlimit_max (1024) below minimum Windows limit (16384)Processing section "[backup$]"Processing section "[windows$]"Pr