Failed to get machine PTY: No such file or directory

By “domain password policy” I meant “Password policies” page!

By “user password policy” I meant the “Enable password expiration” checkbox under “User > Edit” form.

o.k. thanks for clarifiing.

domain password policy: as mentioned above, no change noticable…

user password: I get an error when changing exparation, when the user is a member of a group.

Sep 9 12:18:03 newns7 esmith::event[8160]: Event: password-policy-update
Sep 9 12:18:03 newns7 esmith::event[8160]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.076623]
Sep 9 12:18:03 newns7 esmith::event[8160]: Password complexity activated!
Sep 9 12:18:03 newns7 esmith::event[8160]: Password history length changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: Minimum password age changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: Maximum password age changed!
Sep 9 12:18:03 newns7 esmith::event[8160]: All changes applied successfully!
Sep 9 12:18:03 newns7 esmith::event[8160]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.492689]
Sep 9 12:18:03 newns7 esmith::event[8160]: Event: password-policy-update SUCCESS
Sep 9 12:18:17 newns7 esmith::event[8238]: Event: user-modify user1@jeckel.lan Testuser 1 /bin/bash
Sep 9 12:18:17 newns7 esmith::event[8238]: Action: /etc/e-smith/events/user-modify/S40nethserver-dc-user-modify SUCCESS [0.18315]
Sep 9 12:18:17 newns7 esmith::event[8238]: Action: /etc/e-smith/events/user-modify/S90nethserver-sssd-clear-cache SUCCESS [0.083343]
Sep 9 12:18:17 newns7 esmith::event[8238]: Event: user-modify SUCCESS
Sep 9 12:18:18 newns7 esmith::event[8260]: Event: group-modify netusers@jeckel.lan user2 user1 domain users s-1-5-4 s-1-5-11
Sep 9 12:18:18 newns7 esmith::event[8260]: ERROR(exception): Failed to remove members “S-1-5-4,S-1-5-11,Domain,Users” from group “netusers” - Unable to find “Domain”. Operation cancelled.
Sep 9 12:18:18 newns7 esmith::event[8260]: File “/usr/lib64/python2.7/site-packages/samba/netcmd/group.py”, line 278, in run
Sep 9 12:18:18 newns7 esmith::event[8260]: add_members_operation=False)
Sep 9 12:18:18 newns7 esmith::event[8260]: File “/usr/lib64/python2.7/site-packages/samba/samdb.py”, line 274, in add_remove_group_members
Sep 9 12:18:18 newns7 esmith::event[8260]: raise Exception(‘Unable to find “%s”. Operation cancelled.’ % member)
Sep 9 12:18:19 newns7 esmith::event[8260]: Added members to group netusers
Sep 9 12:18:19 newns7 esmith::event[8260]: [ERROR] Failed to update the members list of group netusers at /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify line 80.
Sep 9 12:18:19 newns7 esmith::event[8260]: Action: /etc/e-smith/events/group-modify/S40nethserver-dc-group-modify FAILED: 1 [1.135775]
Sep 9 12:18:19 newns7 esmith::event[8260]: Action: /etc/e-smith/events/group-modify/S90nethserver-sssd-clear-cache SUCCESS [0.173449]
Sep 9 12:18:19 newns7 esmith::event[8260]: Event: group-modify FAILED
Sep 9 12:18:19 newns7 esmith::event[8311]: Event: password-policy-update user1@jeckel.lan yes
Sep 9 12:18:19 newns7 esmith::event[8311]: Action: /etc/e-smith/events/password-policy-update/S10nethserver-sssd-clear-cache SUCCESS [0.299921]
Sep 9 12:18:20 newns7 esmith::event[8311]: Expiry for user ‘user1’ set to 180 days.
Sep 9 12:18:20 newns7 esmith::event[8311]: Action: /etc/e-smith/events/password-policy-update/S30nethserver-dc-password-policy SUCCESS [0.486807]
Sep 9 12:18:20 newns7 esmith::event[8311]: Event: password-policy-update SUCCESS
Event: password-policy-update SUCCESS

something wrong with cn=domain or something like this?

If the user is no member of a group, no error apears.

If a empty group is created, message: “Task completed with errors” apears. But I think this is ment to this way (or better: this would be logical :vulcan:)

3 Likes

Seems like a space is not preserved :thinking:

BTW, @flatspin: do you have a GitHub account? Could you set the issue #5103 assigned to you?

You must have one! As brand new quality team member! :imp:

ehhhh, nope. how to?

www.github.com -> signup :slight_smile:

@alefattorini: that wasn’t the problem: nsflatspin.
flatspin was occupied :rage: So I choose nsflatspin with ns for Nethserver. :slight_smile:

If I red right, someone has to give me rights to the nethserver project to assign this issue?
correct?

2 Likes

It’s up to @davidep

I think I did it.
I’m new to github and all this stuff.
What’s the reason to assign this issue to me?

Because of this: QA/Testing Team basic HOWTO
we need to adapt this doc for github
@dz00te can you get right on that?

You are testing the bug fix. If you think the package from nethserver-testing solves the problem you should add the verified label (and remove the testing label).

More info:
http://docs.nethserver.org/projects/nethserver-devel/en/v7b/development_process.html#qa-team-member-testing

@alefattorini and @davidep thanks for explaining to a noob.
My weekend lecture will be github basics and the docs of your links.
Cheers. :beers:

3 Likes

hi @flatspin and welcome aboard
the link with the basic howto is for 6.x, i need to adapt to 7 (ok starting now) no more redmine account but github is required…
link to dev manual v7 (posted from davidep) is more updated
let me know how we can improve the basic howto for new members… tnx

2 Likes

o.k. will read it carefully and let you know.
thx for your welcome.

could you check/test :slight_smile: the HowTo adapted for GitHub? tnx

1 Like

@davidep

I had a few minutes so I started up the ns7b problem vm I had off for the last few days. I tried to delete a user and create a user, both actions failed with the machine pty msg in the logs. I applied your new nethserver-dc, I then successfully deleted a user I had attempted to delete before, I then rebooted the vm, I then successfully created a user, I rebooted the vm again and successfully deleted the new user, there are no longer machine pty messages in the log.

Sep 9 10:17:45 server7c esmith::event[2087]: Event: password-modify joe@ad.test.lab.local /tmp/ng-M56VeX Sep 9 10:17:45 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S25password-set SUCCESS [0.00585] Sep 9 10:17:45 server7c esmith::event[2087]: spawn /usr/bin/systemd-run -M nsdc -q -t /usr/bin/samba-tool user setpassword joe Sep 9 10:17:45 server7c esmith::event[2087]: New Password: Sep 9 10:17:46 server7c esmith::event[2087]: Changed password OK Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S30nethserver-dc-password-set SUCCESS [1.123449] Sep 9 10:17:46 server7c esmith::event[2087]: Enabled user 'joe' Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S40nethserver-dc-user-unlock SUCCESS [0.440965] Sep 9 10:17:46 server7c esmith::event[2087]: Action: /etc/e-smith/events/password-modify/S90password-cleanup SUCCESS [0.145256] Sep 9 10:17:46 server7c esmith::event[2087]: Event: password-modify SUCCESS Sep 9 10:18:35 server7c esmith::event[2162]: Event: user-delete joe@ad.test.lab.local Sep 9 10:18:36 server7c esmith::event[2162]: Deleted user joe Sep 9 10:18:36 server7c esmith::event[2162]: Action: /etc/e-smith/events/user-delete/S40nethserver-dc-user-delete SUCCESS [0.587061] Sep 9 10:18:36 server7c esmith::event[2162]: Action: /etc/e-smith/events/user-delete/S90nethserver-sssd-clear-cache SUCCESS [0.269645] Sep 9 10:18:36 server7c esmith::event[2162]: Event: user-delete SUCCESS

6 Likes

Hi guys,
I just finished my tests.

How I tested:

  • Install NS 7b2 from scratch (bare metal server).
  • Make all updates.
  • Edit the “Organizations contacts”.
  • Edit the “Self-signed certificate”.
  • Install the “Account provider: Samba Active Directory” package, from Software center.
  • Install the “fix” - (Note 1) - After that, I closed the ssh sessions (WinSCP and PuTTY).
  • Configure Samba AD - (Note 2) - done without issues!
  • admin-todo reminder on Dashboard for Administrator’s password: Change password for user administrator@test.abt.ro (first time, from “Nethesis,1234”) - done without issues!
  • user creation/modification/deletion - done without issues!
  • group creation/modification/deletion - done without issues!
  • user password policy change - done without issues!
  • domain password policy change - done without issues!

Note:

I tested in this way because:

  1. I wanted to simulate the following situation: the “nethserver-dc.x86_64 0:1.0.2-1.ns7” package is “good” from the beginning;

  2. I wanted to see if with this “good” package, the configuration of the Samba AD will end without issues (till now, every time when I have configured Samba AD, I have encountered an issue, like I described here: Experimenting with Samba Domain Controller)

4 Likes

@dz00te thanks for the HOWTO.
So far so clear with the general workflow. Only thing I couldn’t figure out is the template thing.
Maybe it’s a language problem. My bad english. :blush:
I looked at other issues, but they’re looking similar to #5013 . So template :thinking: ?

As a tester i have to wait until the dev has a new package for testing, and than test the new package again and so on until the bug is solved.

I like the article about the 14 ways to contribute. I learned exactly that way here in this community.
At this point I have to give a little praise to @alefattorini you’re doing a good job to get newcomers involved, like you involved me. Thanks for that my friend.

3 Likes

Did I mention that this package is installed?

  • user creation/modification/deletion - no errors of creation/modifications/deletion. Checked using Windows 7 and no errors.

  • group creation/modification/deletion - no errors on creation/modification/deletion

  • user password policy change - Unchecked the “Strong passwords policy for users” and made a simple password - no errors. Checked with Windows 7 and no errors. Checked the “Strong password policy for users” and tried to make a simple password - error “Missing a upper case letter”.

  • domain password policy change - There is not a Domain password policy page nor a Domain password policy line a page, only users and not domain. Using the Password Policy instead I unchecked the “Strong password policy for user” and made for a simple password - no errors. Checked with Windows 7 using the administrator and no errors. Checked the “Strong password policy for users” and tried to make a simple password - error “Missing a upper case letter”.

  • admin-todo reminder on Dashboard for Administrator’s password - There was not a “Change administrator password” reminder on the Dashboard.

3 Likes