0
Samba 4 - Error trying to manage Samba
Just installed Ajenti on Ubuntu 14.04.4 LTS
When trying to view Samba under Software I get an error about the nobody account;
Command '['pdbedit', '-Lv', '-d0', '-u', 'nobody']' returned non-zero exit status 255 Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 158, in handle_message self.ui.dispatch_event(update['uid'], update['event'], update['params']) File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 72, in dispatch_event self.root.dispatch_event(uid, event, params) File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 378, in dispatch_event self.event(event, params) File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 402, in event getattr(self, 'on_%s' % self_event)(**(params or {})) File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 381, in on_switch child.broadcast('on_page_load') File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 356, in broadcast getattr(self, method)(*args, **kwargs) File "/usr/lib/pymodules/python2.7/ajenti/plugins/samba/main.py", line 66, in on_page_load self.refresh() File "/usr/lib/pymodules/python2.7/ajenti/plugins/samba/main.py", line 75, in refresh self.usermgr.load() File "/usr/lib/pymodules/python2.7/ajenti/plugins/samba/smbusers.py", line 15, in load lines = subprocess.check_output(['pdbedit', '-Lv', '-d0', '-u', un]).split('\n') File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 167, in check_output raise ex CalledProcessError: Command '['pdbedit', '-Lv', '-d0', '-u', 'nobody']' returned non-zero exit status 255
Output of pdbedit -L -d0
...
nobody:65534:nobody
...
Output of pdbedit -Lv -d0 -u nobody
Username not found!
Is anyone able to assist?
Customer support service by UserEcho
I installed Samba4 via apt-get, I provisioning, and tested the samba, dns as explained inhttps://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller#Provisioning_the_Samba_Active_Directory
But I have the same problem as above, clicking on Samba is raised that mistake.
Any suggestion?
------------------------------------------------------------
root@servidor:/home# pdbedit -Lv -d0 -u nobody
Username not found!
root@servidor:/home# pdbedit -Lv -d0
---------------
Unix username: SERVIDOR$
NT username:
Account Flags: [S ]
User SID: S-1-5-21-1542059968-554909188-2932640689-1000
Primary Group SID: S-1-5-21-1542059968-554909188-2932640689-516
Full Name:
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain:
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: 0
Kickoff time: Qua, 13 Set 30828 23:48:05 BRT
Password last set: Sáb, 18 Jun 2016 20:52:21 BRT
Password can change: Sáb, 18 Jun 2016 20:52:21 BRT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: Administrator
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1542059968-554909188-2932640689-500
Primary Group SID: S-1-5-21-1542059968-554909188-2932640689-513
Full Name:
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain:
Account desc: Built-in account for administering the computer/domain
Workstations:
Munged dial:
Logon time: 0
Logoff time: 0
Kickoff time: Qua, 13 Set 30828 23:48:05 BRT
Password last set: Sáb, 18 Jun 2016 20:52:21 BRT
Password can change: Sáb, 18 Jun 2016 20:52:21 BRT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: krbtgt
NT username:
Account Flags: [DU ]
User SID: S-1-5-21-1542059968-554909188-2932640689-502
Primary Group SID: S-1-5-21-1542059968-554909188-2932640689-513
Full Name:
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain:
Account desc: Key Distribution Center Service Account
Workstations:
Munged dial:
Logon time: 0
Logoff time: 0
Kickoff time: Qua, 13 Set 30828 23:48:05 BRT
Password last set: Sáb, 18 Jun 2016 20:52:21 BRT
Password can change: Sáb, 18 Jun 2016 20:52:21 BRT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: nobody
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1542059968-554909188-2932640689-501
Primary Group SID: S-1-22-2-65534
Full Name: nobody
Home Directory:
HomeDir Drive: (null)
Logon Script:
Profile Path:
Domain: HADDAD
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
I forgot to inform, I used Debian 8.5 64 bit
Just add nobody user in samba before to open ajenti, with command:
smbpasswd -an nobody
Sucess!! ;-)