• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How can I manage groups and users from CLI?

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 2 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    Sopalajo de Arrierez
    last edited by Mar 28, 2021, 2:49 PM

    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?

    G 1 Reply Last reply Mar 29, 2021, 6:09 AM Reply Quote 0
    • G
      Gertjan @Sopalajo de Arrierez
      last edited by Mar 29, 2021, 6:09 AM

      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.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      • S
        Sopalajo de Arrierez
        last edited by Mar 29, 2021, 12:39 PM

        Thanks you, Gertjan.

        I tried:

        pw groupadd GROUPNAME
        

        But changes are deleted after rebooting.

        G 1 Reply Last reply Mar 29, 2021, 1:01 PM Reply Quote 0
        • G
          Gertjan @Sopalajo de Arrierez
          last edited by Mar 29, 2021, 1:01 PM

          pfSense users and groups is not what FreeBSD users and groups are.
          They have some common grounds, true.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received