You can do this by creating /etc/nologin file - this will prvent ALL users logging except for root. this file is remove when reboot or you can allow users to log back by deleting the file.
when we do maintenance we have is a script to disallow user from logging in to the db but still can get into the apps menu prompt. we have 2 scripts named putin_nologin & remove_nologin
putin_nologin is run b-4 maintenance the contain of the script is as simple as the below
cp symtem_down nologin_xxx , where xxx is the name db
after maintenance remove_nologin is run
rm nologin_xxx , where xxx is the name of the db
also you might want to expirement the Attributes 'login' in the /etc/security/user
Here is the script I use for preventing user login.
put the user names you want to prevent in a file 'list' , each name in a line.
then run the script below;
for i in `cat list`
do
BAAN_USER=$i
echo $BAAN_USER
chuser account_locked='true' $BAAN_USER
done
and for let them login run;
for i in `cat list`
do
BAAN_USER=$i
echo $BAAN_USER
chuser account_locked='false' $BAAN_USER
done
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.