Limiting a user to a script upon login, nothing else.

@mikep9

grep restart /var/adm/syslog

That will only work if the sysadmin does not ever age syslog between reboots.

@reachdharam
What is the link to the new thread?

Overall listing O/S restarts depends on whether you elect to save the information. This could be in unix syslog files or in unix system accounting files. Unix is not M$ and unix servers which stay up for years are not unusual.

Also, if all the environment variables will be the same for all users, you can put

source /etc/env_vars.sh

Right?
If the above was correct then I guess if the user needs different vars, the sysadmin could put

source ~/.env_vars

in the script and do a

chown root /path/.env_vars # and a
chmod 755 /path/.env_vars

Cooper