Other Firewall password

Hi,

As you know, SRX device is based FreeBSD.

It accepts any password for login .

Someone told me to edit the master.passwd file. but I just don't know how to do that and I need help to in order to solve this problem much quicker.

Any body knows why and how to solve this problem?
 
Hi,

Yes we did.

Let's forget it's SRX. Let's treat this question as FreeBSD issue. What would be the solution if this issue happened in a FreeBSD operating system?
 
Hello Abed,

I've never used Junos, but from quickly looking around the web, it definitely looks like Junos has a different method of managing accounts than FreeBSD, so you might receive potentially harmful advice from this forum. You should definitely go back and ask for clarification from the SRX forum with your problems, unless you don't really care and are okay with receiving advice for a different OS than you are running.

On FreeBSD master.passwd() is located in /etc/master.passwd and stores encrypted password hashes. To generate these hashes, you can use openssl(). Once you have the hash generated, open /etc/master.passwd with vipw and copy paste the hash to the account you are trying to change.

Hopefully this advice solves your problem, but next time you should stick to the SRX forums.

EDIT: Edit master.passwd with vipw instead.
 
Assuming that Juniper's custom version of FreeBSD is the same as an unmodified version is likely to lead to unpleasant mistakes.

Still, even on FreeBSD, editing master.passwd directly is usually not a good idea either. See vipw(8).
 
Back
Top