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

    Change admin password using shell script

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 231 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.
    • B
      bidyut
      last edited by

      I'm creating a training environment using pfSense on AWS. I need to launch the AWS Marketplace AMI and then configure it automatically before student gets to it. I'm planning on running a shell script over SSH.

      How do I setup admin password using the shell script instead of using the UX>

      1 Reply Last reply Reply Quote 0
      • dragoangelD
        dragoangel
        last edited by

        Only: passwd username

        Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
        Unifi AP-AC-LR with EAP RADIUS, US-24

        1 Reply Last reply Reply Quote 0
        • kiokomanK
          kiokoman LAYER 8
          last edited by

          pfSsh.php playback changepassword admin

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          Please do not use chat/PM to ask for help
          we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
          Don't forget to Upvote with the 👍 button for any post you find to be helpful.

          1 Reply Last reply Reply Quote 1
          • B
            bidyut
            last edited by

            "sudo pfSsh.php playback changepassword admin" worked.
            Thank you very much.

            "sudo passwd admin" - goes through the motion but admin password doesn't change.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.