How to disable a user account

Can I temporarily have a user account disabled?
How could I achieve it?
And how would I enable it again?
I am especially thinking of email.

Thank you

Go to permissions. Under the intended user, remove the email permission.

Do you mean “Groups and permissions” in the GUI?

If so, how do I go to the intended user so that I can remove its email permission? I have not found the way to do it.

Otherwise, how can I achieve it through the CLI?

1 Like

This should guide you: Users groups and permissions | Yunohost

1 Like

I still have not managed to do it. Would you please provide the step by step way to do it through GUI or the exact command?

As described in the documentation shared, (managing permissions) you can manage permissions for a group, or for a single user.

In the documentation, you can see that the group all users (Tous les utilisateurs in the picture) has many permissions, like Dokuwiki or email.
That mean that all users of the system has got those permissions.

So you need to create one group with distincts rights from all users :

  • a group with email permission

Then you remove email permission from all users.

And you move all your users to the new group with email permission, except the guy you want to block email permission.

2 Likes

I understand now how it would work, although in the end I have decided to disable all the their services by changing their password. Thank you!

1 Like

Remove email permission by going to groups and persmission where you can edit users group or remove email.