Why am I asked for my account credentials at every startup?

조회 수: 22 (최근 30일)
Paolo Izzo
Paolo Izzo 2016년 11월 9일
편집: Walter Roberson 2024년 8월 30일
I am using Matlab R2016b on Linux Fedora 24. Can I permanently set my account credentials so I am not asked at every startup?
  댓글 수: 2
Jose Carrasco
Jose Carrasco 2024년 7월 27일
Same issue here, did you figure it out?
Umar
Umar 2024년 7월 29일
편집: Walter Roberson 2024년 8월 30일
Hi @Paolo & @Jose,
You can set your account credentials permanently to avoid being asked at every startup by using the matlab.prf file. This file stores preferences for Matlab. You can add your credentials to this file to automate the login process. Here is an example of how you can do this:
% Open the matlab.prf file
edit(fullfile(prefdir, 'matlab.prf'));
Add the following lines to the matlab.prf file:
login_name=YourUsername
login_passwd=YourPassword
Replace YourUsername and YourPassword with your actual credentials. Save the file, and Matlab will use these credentials automatically at startup. Remember to keep your credentials secure as they will be stored in plain text in the matlab.prf file. For more information on matlab.prf, please refer to
Please update if this helps resolve your issue.

댓글을 달려면 로그인하십시오.

답변 (1개)

UDAYA PEDDIRAJU
UDAYA PEDDIRAJU 2024년 8월 30일
편집: Walter Roberson 2024년 8월 30일
Hi Paolo,
You're being prompted for your MathWorks account credentials at every MATLAB startup likely due to one of these reasons:
1. Login Named User (LNU) or Online Licensing (OLL):
  • Check your MATLAB installation directory. Navigate to the "licenses" folder and open "license_info.xml".
  • Look for the licmode setting:
  • licmode="online" indicates LNU.
  • licmode="onlinelicensing" indicates OLL.
2. Behavior by Design:
  • If you're using a MATLAB Docker image, it might be configured to request credentials every time for security reasons.
Solution:

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by