How to read out the default password frmo PLCnext 1152 when you are not at site

Hi I got a problem with FW and need to reset the 1152 until “factory default FW”. Ehen I do this the admin password also goes to default. The problem is that im not at site and I dont write it down. I got admin rights with the new password on the 1152 so I has all access that I need. My qyestion is: Can I read out the default password from the 1152 remotly. Im well known with Linux and using Putty for communication.

Hi, you will need to log in to the PLC as root, then you can see the default password in the file /etc/device_data/phoenixsign/production_data, in the line labelled DEFAULT_PASSWORD. Obviously, this must be done before resetting the PLC to factory defaults.

Hi Martin

I’ve tried to execute the file for reading the default password but I cant access it. I got this merrage:
Sorry, user admin is not allowed to execute ‘/usr/bin/view -R /etc/device_data/phoenixsign/production_data’ as root on axcf2152.
How can I read this file. According to the permissions I’ve got readOnly to this file:
admin@axcf2152:/etc/device_data/phoenixsign$ ls -l
total 30
-r-------- 1 root root 37 Mar 9 2018 cloud_uuid
-r-------- 1 plcnext_firmware root 7258 Mar 9 2018 device_crt_chain.pem
-r-------- 1 root root 294 Mar 9 2018 device_publiy_key
-r-------- 1 plcnext_firmware root 820 Mar 9 2018 device_tpm_key
-r-------- 1 root root 974 Mar 9 2018 devicecert.crt
-r-------- 1 root root 11395 Mar 9 2018 production_data
-r-------- 1 root root 0 Mar 9 2018 production_done
-r-------- 1 root root 1165 Mar 9 2018 signer_crt
-r-------- 1 root root 3132 Mar 9 2018 tpm_device_data
admin@axcf2152:/etc/device_data/phoenixsign$
Not even with the Sudo command:
admin@axcf1152:/etc/device_data/phoenixsign$ sudo vim -R production_data

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
Sorry, user admin is not allowed to execute ‘/usr/bin/vim -R production_data’ as root on axcf1152.
admin@axcf1152:/etc/device_data/phoenixsign$

_According to the permissions I 've got readOnly to this file:_No, if I’m reading those permissions correctly, only the owner (root) has read permission on that file.

Not even with the Sudo command: Rather than using vim (an editor) to view the file, can you try using cat ?
If that doesn’t work, then you should definitely be able to read the file when logged in as root.
User rights _PLCnext Controls are supplied with a preset admin user and a default password that is printed on the controller 's housing. This enables access to the most important functions. _

Hi Martin</p>I’ve tried to execute the file for reading the default password but I cant access it. I got this merrage:</p>Sorry, user admin is not allowed to execute ‘/usr/bin/view -R /etc/device_data/phoenixsign/production_data’ as root on axcf2152.</p>How can I read this file. According to the permissions I’ve got readOnly to this file:</p>admin@axcf2152:/etc/device_data/phoenixsign$ ls -l</p>total 30</p>-r-------- 1 root root 37 Mar 9 2018 cloud_uuid</p>-r-------- 1 plcnext_firmware root 7258 Mar 9 2018 device_crt_chain.pem</p>-r-------- 1 root root 294 Mar 9 2018 device_publiy_key</p>-r-------- 1 plcnext_firmware root 820 Mar 9 2018 device_tpm_key</p>-r-------- 1 root root 974 Mar 9 2018 devicecert.crt</p>-r-------- 1 root root 11395 Mar 9 2018 production_data</p>-r-------- 1 root root 0 Mar 9 2018 production_done</p>-r-------- 1 root root 1165 Mar 9 2018 signer_crt</p>-r-------- 1 root root 3132 Mar 9 2018 tpm_device_data</p>admin@axcf2152:/etc/device_data/phoenixsign$</p>Not even with the Sudo command:</p>admin@axcf1152:/etc/device_data/phoenixsign$ sudo vim -R production_data</p>We trust you have received the usual lecture from the local System</p>Administrator. It usually boils down to these three things:</p> #1) Respect the privacy of others.</p> #2) Think before you type.</p> #3) With great power comes great responsibility.</p>Password:</p>Sorry, user admin is not allowed to execute ‘/usr/bin/vim -R production_data’ as root on axcf1152.</p>admin@axcf1152:/etc/device_data/phoenixsign$</p>

I’ve foundt the reason!! I forgot to log on as root.