protect dtterm

we have an hp-ux and a user requested me if i can password protect the dtterm. i know that this is possible but can you give me some hints in making this happen?

thanks :cool:

Are you saying that you wanted to protect the dtterm from Misscelanious logins ? A simple hint from me. You may try this.

create a file and nameit 'nologin' in /etc

  # >/etc/nologin

Then add something like this to your /etc/dt/config/Xstartup file:

   if pwget -n "$USER" | awk -F: '{exit !($3 == 0)}'; then
      if [ -f /etc/nologin ] || \
         grep '^console$' /etc/securetty >/dev/null 2>&1; then
         echo "[$(date)] non-root login attempt from CDE console -" \
              "Access Denied" >>/var/adm/console_login_attempts_log
         exit 1
      fi
   fi

Hope this helps..

Do you just want to protect that particular window?
If so, check out the man page for "lock"...

/usr/bin/lock