Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restrict CDE concurrent logins

Status
Not open for further replies.

jaytco

Vendor
Joined
Dec 13, 2001
Messages
88
Location
US
I have a NIS+ environment and would like to restrict CDE (Gnome if possible) logins to a single concurrent session per user without affecting ssh,telnet,ftp etc.

If userA is logged into SysA's CDE console he is good. If userA tries to concurrently login to SysB's CDE console, is should fail and return to the login screen.

Currently all hosts are running Solaris 9.

Thanks, Jay
 
Under the Xsession config I was able to do a test for the existance of a temp dir.
Code:
if [ -d $HOME/.DTSESSION ] ; then
   echo "DT Session already running!"
   sleep 3
   exit 1
else
   mkdir $HOME/.DTSESSION
fi
At the end of the Xsession I delete the file when the users exits.
Code:
if [ -d $HOME/.DTSESSION ] ; then
   rmdir $HOME/.DTSESSION
fi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top