How can I manage groups and users from CLI?
-
I would like to manage groups and its corresponding users from command-line on pfSense.
I have found this documentation:
https://docs.netgate.com/pfsense/en/latest/usermanager/users.html
... but it only refers to GUI.
What is the proper method to manage (add, delete... etc) groups (and, of course, add/delete users to/from those groups) on pfSense by using command-line?
-
pfSense is GUI based.
For most GUI options there is no direct CLI equivalent.
But, knowing that the GUI is 99,99 % script (PHP) driven, it's possible to make your own scripts.
-
Thanks you, Gertjan.
I tried:
pw groupadd GROUPNAME
But changes are deleted after rebooting.
-
pfSense users and groups is not what FreeBSD users and groups are.
They have some common grounds, true.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.