How to remove User/Group accounts (CLI)
I am looking for a way to remove users on ZLD appliances, similar to the one explained here:
https://mysupport.zyxel.com/hc/en-us/articles/360006854279--ZLD-How-to-add-new-User-Group-accounts-CLI-
Any hints?
https://mysupport.zyxel.com/hc/en-us/articles/360006854279--ZLD-How-to-add-new-User-Group-accounts-CLI-
Any hints?
0
Best Answers
-
Hi @GioPWelcome to Zyxel community. You can use the below CLI to delete user and user group.CLI :configure terminalno username nameExample: to delete the user account user1Router #configure terminalRouter(config)# no username user1CLI :configure terminalno groupname groupnameExample: to delete the user group testusergroupRouter #configure terminalRouter(config)# no groupname testusergroupBTW, if you delete the user group already, it does not mean the users existing in the user group would be deleted, too. Only the user group would be deleted, you still need to delete those users respectively.
See how you've made an impact in Zyxel Community this year!
1 -
Hi @GioPPlease refer to the below example.CLI :configure terminalgroupname <groupname>no user < username >Example: to delete an account user1 from a user group testusergroupRouter# configure terminalRouter(config)# groupname testusergroupRouter(group-user)# no user user1
See how you've made an impact in Zyxel Community this year!
1
All Replies
-
Hi @GioPWelcome to Zyxel community. You can use the below CLI to delete user and user group.CLI :configure terminalno username nameExample: to delete the user account user1Router #configure terminalRouter(config)# no username user1CLI :configure terminalno groupname groupnameExample: to delete the user group testusergroupRouter #configure terminalRouter(config)# no groupname testusergroupBTW, if you delete the user group already, it does not mean the users existing in the user group would be deleted, too. Only the user group would be deleted, you still need to delete those users respectively.
See how you've made an impact in Zyxel Community this year!
1 -
Thank you very much Jeff,
there is just an information I still need: when you try removing a user which is member of a group, you get:
retval = -3004ERROR: User in use.Is there a way to remove a user from groups using the CLI?0 -
Hi @GioPPlease refer to the below example.CLI :configure terminalgroupname <groupname>no user < username >Example: to delete an account user1 from a user group testusergroupRouter# configure terminalRouter(config)# groupname testusergroupRouter(group-user)# no user user1
See how you've made an impact in Zyxel Community this year!
1
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 151 Nebula Ideas
- 98 Nebula Status and Incidents
- 5.7K Security
- 277 USG FLEX H Series
- 277 Security Ideas
- 1.4K Switch
- 74 Switch Ideas
- 1.1K Wireless
- 42 Wireless Ideas
- 6.4K Consumer Product
- 250 Service & License
- 395 News and Release
- 85 Security Advisories
- 29 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.6K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 75 Security Highlight