Setting password when connecting to mjs
8 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I've a matlab cluster working, but there is one phanmenom I couldn't track down its source.
Symptom : When some user connecting from his local matlab copy to the cluster for the first time He is being asked for name and password(security level set to 2) After he's done. when he is trying to reconnected to the mjs and run some parallel code only....the mjs tells him the password is not correct(even though he just set it a moment ago).
Tried: This happened several times for different users on different computers. I also checked it myself with dummy user and password as simple as "1"(canceling caps lock effect)
Looking for: If someone knows how to tackle this? or where mjs saves the user profile data? or how I(administrator) can reset users password(without knowing them in advance => cant use changepassword because it require login first) it will be really greatful.
2 个评论
Thomas Ibbotson
2014-6-23
编辑:Thomas Ibbotson
2014-6-25
What version of MATLAB are you using? Did the user click the 'Remember forever on this computer' box when they entered their password?
Image Analyst
2014-6-24
Thomas, put this an an official "Answer" below, so that you can get credit for it.
回答(2 个)
yaron
2014-6-24
编辑:yaron
2014-6-24
1 个评论
Thomas Ibbotson
2014-6-25
Ok, perhaps I have misunderstood your question, I thought that you had found a situation where the user was entering the correct password but it was being rejected. This should not be happening, the ability to reset the password just provides a workaround to the problem, not a solution. In any case, I've moved my comment to an answer.
Thomas Ibbotson
2014-6-25
If you need to you can reset the user's password as the 'admin' user by using 'changePassword' with the username to change as the second argument:
>> help 'parallel.cluster.MJS/changePassword'
changePassword Prompt to change password
changePassword(myCluster) prompts you to change your
password. Your current password must be entered as well as
the new password.
changePassword(myCluster, userName) prompts the cluster
admin user to change the password for the specified user.
The admin user's password must be entered as well as the
user's new password. The enables the admin user to reset a
password if a user has forgotten it.
See also parallel.cluster.MJS/logout,
parallel.cluster.MJS/Username.
2 个评论
Thomas Ibbotson
2014-6-26
There is a directory in the user's 'prefdir' called jobmanager_credentials where the hashes of the passwords are cached. You can delete the contents of this directory to remove the cached passwords. You can navigate there in MATLAB with the following code:
cd([prefdir '/../jobmanager_credentials'])
I'd like to create an official bug report for this, can you let me know if this solves your problem? Also what version of MATLAB you are using, and what OS?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!