Sponsored Content
Full Discussion: protect dtterm
Top Forums UNIX for Dummies Questions & Answers protect dtterm Post 16100 by killerserv on Monday 25th of February 2002 08:13:10 PM
Old 02-25-2002
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
Code:
  # >/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..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

activating ./dtterm

Working of a Aix 4.3 (using ksh) Have started dtlogin daemon . < root 26376 1 0 14:07:19 - 0:08 ./dtlogin -daemon > Have set dtconfig -e < The CDE environment is Already set as the default User Interface. > Have executed " export DISPLAY=10.1.187.86:0.0 Once all this is... (4 Replies)
Discussion started by: buRst
4 Replies

2. Solaris

spawning new shells using dtterm in Solaris 8

Hi all, First time poster here. Great forum. Im trying to spawn new shells and pass commands to the new shells in a solaris 8 environment utilizing dtterm and its option -e. I can successfully spawn a window utilizing the following code: /usr/dt/bin/dtterm -display <ip.address> & ... (4 Replies)
Discussion started by: Rocketman8541
4 Replies

3. UNIX for Advanced & Expert Users

Protect from rm /

We recently had an accidental delete from /. I hold the root password but others are allowed to sudo over to root to perform admin tasks. The only way I want to permit deletion from / is by physically being root (su -). I'd like to add a line to the sudoers file which would permit all commands... (1 Reply)
Discussion started by: scottsl
1 Replies

4. UNIX for Advanced & Expert Users

Changing text color in existing xterm or dtterm

On solaris and irix systems, I'm using csh in an existing xterm or dterm and would like to change the text colors. How do I accomplish this? Thanks (1 Reply)
Discussion started by: fjc
1 Replies

5. Red Hat

Caps lock dtterm

Hello, We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail. Any help appreciated. mgb (1 Reply)
Discussion started by: mgb
1 Replies

6. HP-UX

Caps lock dtterm

Hello, We are having a problem with running dtterm off a RHEL server. Logging into an HP-UX server from a RHEL 5.1 desktop, setting DISPLAY and running dtterm, the caps lock does not work. We have been playing with xmodmap & stty but to no avail. Any help appreciated. mgb (7 Replies)
Discussion started by: mgb
7 Replies

7. Solaris

launching an automated telnet session using dtterm

Hi , I have to write a shell script which would be invoked from a Java program. The job of this script would be to launch a telnet session i was using dtterm for the same and the expect command to automate that. spawn dtterm -e telnet <server ip address> expect "Username:" send... (0 Replies)
Discussion started by: rajeev_solanki
0 Replies

8. UNIX for Advanced & Expert Users

protect process

how to protect my process from others to kill?? Double post, continued here, thread closed (0 Replies)
Discussion started by: samrintu
0 Replies

9. UNIX for Dummies Questions & Answers

dtterm to list a folder contents in new window

Hi everyone,:cool: thank you in advance for any help on this I have a dtterm command to open a new small terminal window with a contents of log, and it works fine. dtterm -title "my.log" -geometry =40x30+0+550 -fn 6x13 -e tail -n 40 -f /home/logs/user.log & However what I want to do... (4 Replies)
Discussion started by: golfcents
4 Replies
PAM_NOLOGIN(8)						    BSD System Manager's Manual 					    PAM_NOLOGIN(8)

NAME
pam_nologin -- NoLogin PAM module SYNOPSIS
[service-name] module-type control-flag pam_nologin [options] DESCRIPTION
The NoLogin service module for PAM, pam_nologin provides functionality for only one PAM category: account management. In terms of the module-type parameter, this is the ``account'' feature. NoLogin Account Management Module The NoLogin account management component, pam_sm_acct_mgmt(), verifies whether logins are administratively disabled via nologin(5). It returns success if the user's login class has an "ignorenologin" capability specified in login.conf(5) or the nologin(5) file does not exist. If neither condition is met, then the contents of nologin(5) are echoed before failure is returned. The location of nologin(5) is specified by a "nologin" capability in login.conf(5), which defaults to /var/run/nologin. The following options may be passed to the module: debug syslog(3) debugging information at LOG_DEBUG level. no_warn suppress warning messages to the user. These messages include reasons why the user's login attempt was declined. SEE ALSO
syslog(3), login.conf(5), nologin(5), pam.conf(5), pam(8) BSD
June 10, 2007 BSD
All times are GMT -4. The time now is 03:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy