Operating System - Linux
1830992 Members
2553 Online
110018 Solutions
New Discussion

Automating the terminal type with NIS logins

 
Andrew Kaplan
Super Advisor

Automating the terminal type with NIS logins

Hi there --

I am running NIS in an environment that has HP-UX 11.11 64-bit running on a PA-RISC rp3400 server, with Fedora Core 2 32-bit running on intel workstations. All users use the tcsh shell by default in their profiles. If more information is needed please let me know.

Users who log into the domain via a terminal window on the workstations are prompted for the terminal type which is normally dtterm. I want to automate the process so users are not prompted to enter in the above information. My plan is to modify the global-cshrc file on the master NIS server. I had several questions concerning this:

1. Is it better to modify global-cshrc, or should this be done at the individual user directory?

2. What is the correct syntax to use in either case?

3. Will the changes made go into effect upon the next login, or do I need to push out the changes via the make command?
A Journey In The Quest Of Knowledge
1 REPLY 1
Andrew Kaplan
Super Advisor

Re: Automating the terminal type with NIS logins

I found the solution. I modified the user account's .login file to read as follows:

#set up the terminal
# eval `tset -s -Q -m ':?hp' `
stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tostop
# tabs

By disabling the eval and tabs lines, I was able to have the terminal window appear without prompting the user.

A Journey In The Quest Of Knowledge