zoukankan      html  css  js  c++  java
  • samba3.3.14 smbpasswd Failed to open account policy database!

    error info

    [WNDR4700]# smbpasswd -D 10 -a admin
    Netbios name list:-
    my_netbios_names[0]="READYSHARE"
    Attempting to register passdb backend smbpasswd
    Successfully added passdb backend 'smbpasswd'
    Attempting to register passdb backend tdbsam
    Successfully added passdb backend 'tdbsam'
    Attempting to find a passdb backend to match smbpasswd (smbpasswd)
    Found pdb backend smbpasswd
    pdb backend smbpasswd has a valid init
    New SMB password:
    Retype new SMB password:
    getsampwnam (smbpasswd): search by name: admin
    startsmbfilepwent_internal: opening file /etc/samba/smbpasswd
    getsmbfilepwent: end of file reached.
    endsmbfilepwent_internal: closed password file.
    pdb_set_username: setting username admin, was
    pdb_set_full_name: setting full name Linux User,,,, was
    pdb_set_domain: setting domain READYSHARE, was
    Home server: readyshare
    pdb_set_profile_path: setting profile path \\readyshare\admin\profile, was
    Home server: readyshare
    pdb_set_homedir: setting home dir \\readyshare\admin, was
    pdb_set_dir_drive: setting dir drive , was NULL
    pdb_set_logon_script: setting logon script , was
    pdb_set_user_sid: setting user sid S-1-5-21-3790056449-4000932859-1007183176-2000
    pdb_set_user_sid_from_rid:
            setting user sid S-1-5-21-3790056449-4000932859-1007183176-2000 from rid 2000
    tdb(unnamed): tdb_open_ex: could not open file /usr/var/locks/account_policy.tdb: No such file or directory
    Could not open tdb: No such file or directory
    tdb(unnamed): tdb_open_ex: could not open file /usr/var/locks/account_policy.tdb: No such file or directory
    Could not open tdb: No such file or directory
    Failed to open account policy database
    Failed to set password for user admin.
    Failed to modify password entry for user admin

    log info

    [WNDR4700]# cat log.nmbd
    [2012/11/27 06:18:03,  0] nmbd/nmbd.c:main(850)
      nmbd version 3.3.14 started.
      Copyright Andrew Tridgell and the Samba Team 1992-2009
    [2012/11/27 06:18:03,  0] lib/messages_local.c:messaging_tdb_init(96)
      ERROR: Failed to initialise messages database: No such file or directory
    [2012/11/27 06:18:03,  0] lib/messages.c:messaging_init(204)
      messaging_tdb_init failed: NT_STATUS_OBJECT_NAME_NOT_FOUND
    [2012/11/27 06:18:03,  0] nmbd/nmbd.c:nmbd_messaging_context(60)
      Could not init nmbd messaging context.
  • 相关阅读:
    Stanford NLP 第六课: Long Short Term Memory
    Stanford NLP 第五课: RNN Vanishing Gradient Problems Details
    Stanford NLP 第四课 神经网络复习
    Stanford cs224n 第三课: GloVe 代码解读
    Stanford CS224N 第二课: word2vec踩坑经验分享
    秒杀抢购系统优化思路详解
    微服务的事件驱动数据管理方案
    Netty与网络编程
    Netty 学习 一、初识Netty【原创】
    高性能Server---Reactor模型【转载】
  • 原文地址:https://www.cnblogs.com/rayfloyd/p/2790730.html
Copyright © 2011-2022 走看看