I deleted a user in ns7b samba dc w/ nextcloud and the user won’t go away.
I’ve been trying since last week, server has been rebooted during these attempts.
`
Aug 22 09:53:05 server7c esmith::event[19438]: Event: user-delete admin@ad.stan.local
Aug 22 09:53:05 server7c esmith::event[19438]: Failed to get machine PTY: No such file or directory
Aug 22 09:53:05 server7c esmith::event[19438]:
Aug 22 09:53:05 server7c esmith::event[19438]: Action: /etc/e-smith/events/user-delete/S40nethserver-dc-user-delete SUCCESS [0.028353]
Aug 22 09:53:06 server7c esmith::event[19438]: Action: /etc/e-smith/events/user-delete/S90nethserver-sssd-clear-cache SUCCESS [0.541055]
Aug 22 09:53:06 server7c esmith::event[19438]: Event: user-delete SUCCESS
Aug 22 09:53:12 server7c admin-todos: Failed to get machine PTY: No such file or directory
Aug 22 10:02:27 server7c httpd: [NOTICE] NethServer\Tool\ChangePassword: root is changing password to SomeoneElse (admin@ad.stan.local). Members of the adm group have no restriction (score = 1.00)
Aug 22 10:02:29 server7c esmith::event[19845]: Event: password-modify admin@ad.stan.local /tmp/ng-KefpLo
Aug 22 10:02:29 server7c esmith::event[19845]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.012727]
Aug 22 10:02:30 server7c esmith::event[19845]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword admin
Aug 22 10:02:33 server7c esmith::event[19845]: New Password:
Aug 22 10:02:34 server7c esmith::event[19845]: Changed password OK
Aug 22 10:02:34 server7c esmith::event[19845]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set SUCCESS [4.736549]
Aug 22 10:02:37 server7c esmith::event[19845]: Enabled user 'admin’
Aug 22 10:02:37 server7c esmith::event[19845]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock SUCCESS [2.45827]
Aug 22 10:02:37 server7c esmith::event[19845]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.640001]
Aug 22 10:02:37 server7c esmith::event[19845]: Event: password-modify SUCCESS`
Aug 22 10:11:26 server7c esmith::event[20018]: Event: user-create bob bob /usr/libexec/openssh/sftp-server
Aug 22 10:11:26 server7c esmith::event[20018]: Failed to get machine PTY: No such file or directory
Aug 22 10:11:26 server7c esmith::event[20018]:
Aug 22 10:11:26 server7c esmith::event[20018]: Action: /etc/e-smith/events/user-create/S40nethserver-dc-user-create SUCCESS [0.063924]
Aug 22 10:11:26 server7c esmith::event[20018]: Action: /etc/e-smith/events/user-create/S90nethserver-sssd-clear-cache SUCCESS [0.31831]
Aug 22 10:11:26 server7c esmith::event[20018]: Event: user-create SUCCESS
Aug 22 10:11:27 server7c esmith::event[20032]: Event: password-policy-update bob yes
Aug 22 10:11:27 server7c esmith::event[20032]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.084168]
Aug 22 10:11:27 server7c esmith::event[20032]: Failed to get machine PTY: No such file or directory
Aug 22 10:11:27 server7c esmith::event[20032]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.098384]
Aug 22 10:11:27 server7c esmith::event[20032]: Event: password-policy-update SUCCESS
Aug 22 10:11:28 server7c esmith::event[20042]: Event: password-modify bob@ad.stan.local /tmp/ng-aJILrK
Aug 22 10:11:28 server7c esmith::event[20042]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.001725]
Aug 22 10:11:28 server7c esmith::event[20042]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword bob
Aug 22 10:11:29 server7c esmith::event[20042]: New Password:
Aug 22 10:11:29 server7c esmith::event[20042]: ERROR: Failed to set password for user 'bob': Unable to find user "bob"
Aug 22 10:11:30 server7c esmith::event[20042]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set FAILED: 2 [2.807022]
Aug 22 10:11:31 server7c esmith::event[20042]: ERROR: Failed to enable user 'bob': Unable to find account where '(&(objectClass=user)(sAMAccountName=bob))'
Aug 22 10:11:31 server7c esmith::event[20042]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock FAILED: 2 [0.71775]
Aug 22 10:11:31 server7c esmith::event[20042]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.093477]
Aug 22 10:11:31 server7c esmith::event[20042]: Event: password-modify FAILED
Aug 22 10:18:10 server7c esmith::event[2139]: Event: user-create tom tom /usr/libexec/openssh/sftp-server
Aug 22 10:18:10 server7c esmith::event[2139]: Failed to get machine PTY: No such file or directory
Aug 22 10:18:10 server7c esmith::event[2139]:
Aug 22 10:18:10 server7c esmith::event[2139]: Action: /etc/e-smith/events/user-create/S40nethserver-dc-user-create SUCCESS [0.023673]
Aug 22 10:18:10 server7c chronyd[592]: Source 69.41.163.31 replaced with 108.61.194.85
Aug 22 10:18:10 server7c esmith::event[2139]: Action: /etc/e-smith/events/user-create/S90nethserver-sssd-clear-cache SUCCESS [0.213979]
Aug 22 10:18:10 server7c esmith::event[2139]: Event: user-create SUCCESS
Aug 22 10:18:11 server7c esmith::event[2154]: Event: password-policy-update tom yes
Aug 22 10:18:11 server7c esmith::event[2154]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.073909]
Aug 22 10:18:11 server7c esmith::event[2154]: Failed to get machine PTY: No such file or directory
Aug 22 10:18:11 server7c esmith::event[2154]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.099588]
Aug 22 10:18:11 server7c esmith::event[2154]: Event: password-policy-update SUCCESS
Aug 22 10:18:11 server7c esmith::event[2164]: Event: password-modify tom@ad.stan.local /tmp/ng-4kDbrT
Aug 22 10:18:11 server7c esmith::event[2164]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.001939]
Aug 22 10:18:11 server7c esmith::event[2164]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword tom
Aug 22 10:18:12 server7c esmith::event[2164]: New Password:
Aug 22 10:18:12 server7c esmith::event[2164]: ERROR: Failed to set password for user 'tom': Unable to find user "tom"
Aug 22 10:18:12 server7c esmith::event[2164]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set FAILED: 2 [1.107705]
Aug 22 10:18:12 server7c esmith::event[2164]: ERROR: Failed to enable user 'tom': Unable to find account where '(&(objectClass=user)(sAMAccountName=tom))'
Aug 22 10:18:12 server7c esmith::event[2164]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock FAILED: 2 [0.393614]
Aug 22 10:18:12 server7c esmith::event[2164]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.127978]
Aug 22 10:18:12 server7c esmith::event[2164]: Event: password-modify FAILED
Hei Jeff, happy to see you here! Thanks for accepting my invite.
As I already said you, help us to improve the product and our documentation. We’re all ears.
Let’s tell us something about you, if you don’t mind.
2 Likes
alefattorini
(Alessio Fattorini)
Split this topic
117
I haven’t been able to join a machine to the domain and haven’t found anything in the logs as to why, all the sssd logs are empty… not really sure where I should be looking, I’ve been following Gabriel’s post in the first blood thread, I also can see a shared folder I created from a non joined win machine but login fails when trying to open it with a permission’d user, I don’t know if that’s a domain permission thing though.
So, I haven’t had a lot of success with setting up the samba dc and I don’t really know what I’m doing.
seems there is somthing wrong with user-auth. I recognized that in /etc/passwd there are no users which were created with GUI. Does ssh authenticate agains ldap or local users?
Aug 24 10:05:19 vm5 esmith::event[2277]: Event: user-create second.user Second User /bin/bash
Aug 24 10:05:19 vm5 esmith::event[2277]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.080453]
Aug 24 10:05:20 vm5 esmith::event[2277]: Failed to get machine PTY: No such file or directory
Aug 24 10:05:20 vm5 esmith::event[2277]:
Aug 24 10:05:20 vm5 esmith::event[2277]: Action: /etc/e-smith/events/user-create/S40nethserver-dc-user-create SUCCESS [0.420145]
Aug 24 10:05:20 vm5 esmith::event[2277]: Action: /etc/e-smith/events/user-create/S90nethserver-sssd-clear-cache SUCCESS [0.281162]
Aug 24 10:05:20 vm5 esmith::event[2277]: Event: user-create SUCCESS
Aug 24 10:05:21 vm5 esmith::event[2293]: Event: password-policy-update second.user no
Aug 24 10:05:21 vm5 esmith::event[2293]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.244048]
Aug 24 10:05:22 vm5 esmith::event[2293]: Failed to get machine PTY: No such file or directory
Aug 24 10:05:22 vm5 esmith::event[2293]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.650434]
Aug 24 10:05:22 vm5 esmith::event[2293]: Event: password-policy-update SUCCESS
Aug 24 10:05:22 vm5 esmith::event[2303]: Event: password-modify second.user@dpnet.nethesis.it /tmp/ng-AtlHyE
Aug 24 10:05:22 vm5 esmith::event[2303]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.01533]
Aug 24 10:05:22 vm5 esmith::event[2303]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword second.user
Aug 24 10:05:24 vm5 esmith::event[2303]: New Password:
Aug 24 10:05:24 vm5 esmith::event[2303]: ERROR: Failed to set password for user 'second.user': Unable to find user "second.user"
Aug 24 10:05:24 vm5 esmith::event[2303]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set FAILED: 2 [1.877199]
Aug 24 10:05:24 vm5 esmith::event[2303]: ERROR: Failed to enable user 'second.user': Unable to find account where '(&(objectClass=user)(sAMAccountName=second.user))'
Aug 24 10:05:24 vm5 esmith::event[2303]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock FAILED: 2 [0.371364]
Aug 24 10:05:25 vm5 esmith::event[2303]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.59068]
Aug 24 10:05:25 vm5 esmith::event[2303]: Event: password-modify FAILED
…then third.user without ssh access. But got the same It seems the event succeed but some command is not actually working…
found it. for some reason sssd was stopped and also didn’t start at reboot.
started it manual. now ssh and sftp login works and home directory was created.
sssd.log only shows this:
(Tue Aug 23 17:01:22 2016) [sssd] [monitor_cleanup] (0x0010): Error removing pidfile! (2 [No such file or directory])