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.
  • 相关阅读:
    C++中派生类使用基类成员的问题
    关于linux安装kettle的总结
    Servlet+JSP教程之:第一个Web程序
    Oracle开启和关闭的四种模式
    Android 图片设置圆角 方法之二
    Hive[6] HiveQL 查询
    JavaScript技巧45招
    JavaScript 权威指南第6版
    js 使用技巧
    Hive[5] HiveQL 数据操作
  • 原文地址:https://www.cnblogs.com/rayfloyd/p/2790730.html
Copyright © 2011-2022 走看看