- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get login message
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:39 AM
тАО04-16-2009 05:39 AM
Re: How to get login message
> I checked following files but there is no
information
What is the user's SHELL? This will determine the login profile that is processed. We have assumed that it is the standard Posix shell since this is HP-UX.
If the default shell is either '/usr/bin/sh' or '/usr/bin/ksh' then '/etc/profile' is first processed and then '${HOME}/.profile'. Look at both of those.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:44 AM
тАО04-16-2009 05:44 AM
Re: How to get login message
I checked the file /etc/profile. but there is no file like that.
the shell is /usr/bin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:52 AM
тАО04-16-2009 05:52 AM
Re: How to get login message
I suggest you do:
# diff /usr/newconfig/etc/profile /etc/profile
# diff /usr/newconfig/etc/skel/.profile /home/ze4egi/.profile
...If this doesn't lead you the solution, post the output of both.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 06:02 AM
тАО04-16-2009 06:02 AM
Re: How to get login message
the file /etc/copyright
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 12:26 AM
тАО04-17-2009 12:26 AM
Re: How to get login message
Message after "Please wait...checking for disk quotas" is usualy file /etc/copyright. It looks like your company has edited the standard HP copyright message a little.
The message after "You last logged in Thursday April 16, 2009 at 07:53, on GMLG Node lgapps." is a custom message.
It is either in ${HOME}/.profile ${HOME}/.login ${HOME}/.cshrc or there is a file being sourced in one of these files.
shell /usr/bin/sh uses .profile, try to do ls -al in your homedir to look for those . files.
Regards,
Bart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 12:59 AM
тАО04-17-2009 12:59 AM
Re: How to get login message
Yes may this comming from /etc/copyright but you can set those messages in /etc/motd.
motd means message of the day.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 01:20 AM
тАО04-17-2009 01:20 AM
Re: How to get login message
We already explained you this.. The following three files will be sourced during the login process. If you understand well, then you yourself can locate the sourcing file.
When you login through telnet or ssh first /etc/issue will be sourced and shown on the screen. This is before login prompt and will be shown like this..
============================================
This system is for the use of authorized users only.
Individuals using this computer system without authority, or in
excess of their authority, are subject to having all of their
activities on this system monitored and recorded by system
personnel.
In the course of monitoring individuals improperly using this
system, or in the course of system maintenance, the activities
of authorized users may also be monitored.
Anyone using this system expressly consents to such monitoring
and is advised that if such monitoring reveals possible
evidence of criminal activity, system personnel may provide the
evidence of such monitoring to law enforcement officials.
login: username
Password: xxxx
==========================================
As soon as you give the username and password /etc/copyright will be issued and followed with /etc/motd file. Normally people use to put customised messages on /etc/motd if they want to inform something to users.
=========================================
(c)Copyright 1983-2000 Hewlett-Packard Co., All Rights Reserved.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-1992 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1986 Digital Equipment Corp.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2000 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.
(c)Copyright 1991-2000 Isogon Corporation, All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.
Hewlett-Packard Company
3000 Hanover Street
Palo Alto, CA 94304 U.S.A.
Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
======================================
here comes the content of /etc/motd file...
=========================================
$
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 05:09 AM
тАО04-17-2009 05:09 AM
Re: How to get login message
edit the following file and check these lines:
/opt/ssh/etc/sshd_config
#PrintMotd yes
# no default banner path
Banner /etc/issue
edit /etc/inetd.conf file and on telnet line add:
telnetd -b /etc/issue
stop and start the inetd and sshd daemons so the configuration files are read.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2009 11:11 AM
тАО04-17-2009 11:11 AM
Re: How to get login message
If telnet did you check the file
grep -i telnet /etc/inetd.conf
the last coloum will give you a file path check the content of it and let me know
Like it or worked !! Click kudos !!