Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling screenlock for new users

SOLVED
Go to solution
Bengt Nilsson_2
Regular Advisor

Disabling screenlock for new users

We have a PWS500au with tru645.1B-4 where we have a flow of local desktop users using it. We have a booking system for it, since it controls some process hardware that cannot be shared.
When I create new user id-s using "adduser" the account has the password protected screenlock activated. New users are not aware of this, and when one user starts a lengthy hardware process and then leaves, it is locked for the next user, which then cannot log in when it is his/her turn to use it.
I very frequently forget to change the screenlock setting when I create the new user id.

Is there a way to change the configation in the skel so that screenlock is disabled by default for new user id's? Where is the file (if any) that controls this?

BN
5 REPLIES
Steven Schweda
Honored Contributor

Re: Disabling screenlock for new users

My Tru64 system has some kind of brain fever
right now, but I'd guess that there's
something under "~/.dt/" which is used to
store this setting (along with many others).
The file name/case stuff is all different,
but on my VMS system, I see

dtsession*extension.lockTimeout: 0

in [.DT.SESSIONS.CURRENT]DT.RESOURCES

so I'd guess that there's something similar
in someplace similar on Tru64. Perhaps:
~/.dt/sessions/current/dt.resources

It might be mentioned in the CDE docs, but if
you're in a more experimental mood, you might
run a (relatively) quick experiment. Create
a new user, log in, get the undesired
behavior, and log out. Save the whole
"~new_user/.dt" tree somewhere. Log in, make
the desired change, log out (saving the
session). Compare the new "~new_user/.dt"
with the saved old one. ("diff -r".)

As I recall, there are template files
somewhere which get copied into a new user's
"~/.dt", but I don't remember whence.

man dtsessionfile

No bets. Worst case: do a big "find" + grep
to locate some text found in a new user's
dt.resources (or whatever) file. The stuff
must be somewhere.
Bengt Nilsson_2
Regular Advisor

Re: Disabling screenlock for new users

I have only found /usr/skel so far, but ther is no .dt there.
I think it is created at first login if it does not exist.
Maybe I need to create it and fill it with appropriate preconfigured files it by some script when I create the new user.

Steven Schweda
Honored Contributor
Solution

Re: Disabling screenlock for new users

> [...] ther is no .dt there.

I'd expect the template files to be in a
(plain) "dt", not a ".dt", wherever they are.
The _user_ gets a ".dt". Try:

/usr/dt/config/C/sys.resources

("/usr/dt/config/$LANG/sys.resources")

> Maybe I need to [...]

One way or another, ...
Steven Schweda
Honored Contributor

Re: Disabling screenlock for new users

> man dtsessionfile

Close. Try: man dtresourcesfile
Bengt Nilsson_2
Regular Advisor

Re: Disabling screenlock for new users

I modified /usr/dt/config/C/sys.resources:

dtsession*saverTimeout: 10
!#dtsession*lockTimeout: 30
dtsession*lockTimeout: 0
dtsession*cycleTimeout: 3
dtsession*saverList: StartDtscreenBlank

which took care of the problem.
A test verified complete success, a new user had screenlock turned off from start.

Thanks for the support!

BN