Codesy device user pasword

If you have not licensed the unit and are just getting it set up, the simplest method is to just paper clip the unit.

If you have a SHELL License, and are comfortable navigating the command line, then there is another option.

Verify the following directory /var/opt/codesys do a ls -A to make sure you see these files.

.UserMgmtRightsDB.csv
.GroupDatabase.csv
.UserDatabase.csv
.GroupDatabase.csv_
.UserDatabase.csv_

Then remove these files using this command

/var/opt/codesys $ sudo rm .UserMgmtRightsDB.csv .GroupDatabase.csv .UserDatabase.csv .GroupDatabase.csv .UserDatabase.csv__

Validate these are gone by doing a ls-A

Now you should be able to login.

I recommend starting and stopping the runtime however “if start and stop the runtime you will be prompted to create the new password and login, and redownload.”

If you don’t want to use passwords or login then add this to the CodesysControl.cfg.
Stop the runtime, sudo /etc/init.d/codesyscontrol stop
/etc/CODESYSControl_User.cfg
[CmpUserMgr]
SECURITY.UserMgmtEnforce=NO
Restart the runtime
sudo /etc/init.d/codesyscontrol start

2 Likes