01-18-2011
Some of the old UNIX did initialize USER from the ownership of the tty. This is where the issue lies. remsh/rsh doesnt allocate a tty, and so cant do this. Other applications that either use "login" or correctly use the PAM method of authorization set default environment variables directly and so dont have this issue.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
This beats me. I have a script that executes some commands and redirects their output to some text files that I will parse. The commands are along the lines of:
dsmadmc -id=admin -pa=admin -outfile=/home/tools/qlog.txt q log f=d
If I just run the script it works. If I execute... (2 Replies)
Discussion started by: Skovian
2 Replies
2. Shell Programming and Scripting
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:
55 23 * * * /usr/bin/archive_logs
The script runs perfectly when executed manually, and actually worked via cron for about three weeks. However, it mysteriously... (3 Replies)
Discussion started by: cdunavent
3 Replies
3. AIX
Server, running AIX 6.1 developed strange problem when logging in via SSH -- ssh client hangs without any error.
It is possible to run commands on server, using ssh ("ssh servername ls -l" is OK)
It is possible to log in normally, using serial console connected to server.
It was possible to... (2 Replies)
Discussion started by: ivar.zarans
2 Replies
4. Shell Programming and Scripting
Hello All,
This is driving me nuts. Wrote a very simple script (it's in csh so sorry about that). Just something very simple though. Here is the catch. Works great from command line sometimes. Other times it runs no errors or anything but I never receive an email. Never runs from crontab... (6 Replies)
Discussion started by: jacktay
6 Replies
5. Shell Programming and Scripting
Guys,
I need you help please.
The script below is not working correclty for checking via a awk/if statement . Can you tell me what i am doing wrong in the script code "if($1 == "$RETENTION_LEVEL") "
Syntax
RETENTION_LEVEL=`echo $LINE | cut -f2 -d" "`
echo " ==============... (4 Replies)
Discussion started by: Junes
4 Replies
6. Solaris
Hi Admins,
HOW to set unlimited login attempts for user in Solaris ?
And do I need to insatll any packages before doing this?
Thanks. (1 Reply)
Discussion started by: manalisharmabe
1 Replies
7. UNIX for Dummies Questions & Answers
Greetings, I have a C-program that is made to implement a hidden Markov model on an input file. The program is very memory intensive.
I've installed it on my local server where I have an account and it compiles fine. The way they have the server set up is that you can either work... (1 Reply)
Discussion started by: Twinklefingers
1 Replies
8. HP-UX
Hello friends,
I need to set PATH variable for all HP-UX users. I tried to implement it using /etc/profile and /etc/sshrc both none of them work.
I don't see sshrc file anywhere.
Please advise!
TIA (4 Replies)
Discussion started by: prvnrk
4 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am a root in a Unix system. My shell is bash.
2. Relevant commands, code, scripts, algorithms:
How to set... (1 Reply)
Discussion started by: me_me_me
1 Replies
10. Homework & Coursework Questions
I am sorry for creating a new topic after my previous inquiry was closed, but I tried and tried and I do not know how to edit my previous post. This is not exactly any homework, this is one of 40 questions we were expected to prepare for one of the labs. I searched and read what I could and still... (4 Replies)
Discussion started by: me_me_me
4 Replies
GETTY(8) BSD System Manager's Manual GETTY(8)
NAME
getty -- set terminal mode
SYNOPSIS
getty [type [tty]]
DESCRIPTION
The getty utility is called by launchd(8) to open and initialize the tty line, read a login name, and invoke login(1).
The argument tty is the special device file in /dev to open for the terminal (for example, ``ttyh0''). If there is no argument or the argu-
ment is '-', the tty line is assumed to be open as file descriptor 0.
The type argument can be used to make getty treat the terminal line specially. This argument is used as an index into the gettytab(5) data-
base, to determine the characteristics of the line. If there is no argument, or there is no such table, the default table is used. If there
is no /etc/gettytab a set of system defaults is used. If indicated by the table located, getty will clear the terminal screen, print a ban-
ner heading, and prompt for a login name. Usually either the banner or the login prompt will include the system hostname.
Most of the default actions of getty can be circumvented, or modified, by a suitable gettytab table.
The getty utility can be set to timeout after some interval, which will cause dial up lines to hang up if the login name is not entered rea-
sonably quickly.
FILES
/etc/gettytab
/etc/ttys
DIAGNOSTICS
ttyxx: No such device or address.
ttyxx: No such file or address.
A terminal which is turned on in the ttys file cannot be opened, likely because the requisite lines are either not configured into the sys-
tem, the associated device was not attached during boot-time system configuration, or the special file in /dev does not exist.
SEE ALSO
login(1), ioctl(2), tty(4), gettytab(5), ttys(5), launchd(8)
HISTORY
A getty utility appeared in Version 6 AT&T UNIX.
BSD
June 4, 1993 BSD