Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Massive change users exp.date

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 783 Views 2 Watching
    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.
    • nnicola82N
      nnicola82
      last edited by

      Hi guys
      I have about 200 users who have a common expiration date (of the account, not of the associated certificate)
      that I would like to extend without recreating the user: exist the possibility to do it from script / cli?
      I was thinking of a backup of the 'system' only and changing the 'expires' field in the xml and its restore but it is a procedure that I have never done and it is the second thing that came to my mind after a possible script from cli (if feasible)

      thanks for the support

      1 Reply Last reply
      Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You certainly could do it by editing the users in the config and restoring that section. It is, of course, very easy to typo something there rendering the config invalid so be sure to have a full back of the working config and a plan to restore it if you choose to do that.

        Steve

        1 Reply Last reply
        Reply Quote 0
        • nnicola82N
          nnicola82
          last edited by

          if there are no other alternatives to edit xml file exported, e.g. with 'sed' command directly from the console, I can try only this way

          best regards, thanks!

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy