- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: user login error
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
Forums
Discussions
Discussions
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
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
10-16-2002 04:33 PM
10-16-2002 04:33 PM
user login error
Terminal type set to vt100
############ ERRORS FOUND AT BOOT ############
process process not attached to terminal
Usage: who [-rbtpludAasHTqRm] [am i] [utmp_like_file]
r run level
b boot time
t time changes
p processes other than getty or users
l login processes
u useful information
d dead processes
A accounting information
a all (rbtpludA options)
s short form of who (no time since last output or pid)
H print header
T status of tty (+ writable, - not writable, x exclusive open, ? hung)
q quick who
why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 05:13 PM
10-16-2002 05:13 PM
Re: user login error
I am not sure why this message was displayed. It is actually the output of when you use 'who -h'. The error is likely to come from one of two places. The first is from /etc/inittab where it is trying to start some process. The other is from /sbin/init.d from one of the run-levels. You may post a copy of the '/etc/rc.log' file. Were there any new entries added to /sbin/init.d, /sbin/rc?.d ?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 05:21 PM
10-16-2002 05:21 PM
Re: user login error
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' > /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 05:22 PM
10-16-2002 05:22 PM
Re: user login error
When I telnet and login,display the error message.
I also found the same error message in root mail.
Message 260/267 from root Oct 16 '2002 at 8:16 pm
Date: Thu, 17 Oct 2002 08:16:28 +0800 (EAT)
Subject: cron
Status: RO
process not attached to terminal
Usage: who [-rbtpludAasHTqRm] [am i] [utmp_like_file]
r run level
b boot time
t time changes
p processes other than getty or users
l login processes
u useful information
d dead processes
A accounting information
a all (rbtpludA options)
s short form of who (no time since last output or pid)
H print header
T status of tty (+ writable, - not writable, x exclusive open, ? hung)
q quick who
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 05:34 PM
10-16-2002 05:34 PM
Re: user login error
I posted the rc.log.
When I telnet and login,display the error message.
I also found the same error message in root mail.
Message 260/267 from root Oct 16 '2002 at 8:16 pm
Date: Thu, 17 Oct 2002 08:16:28 +0800 (EAT)
Subject: cron
Status: RO
process not attached to terminal
Usage: who [-rbtpludAasHTqRm] [am i] [utmp_like_file]
r run level
b boot time
t time changes
p processes other than getty or users
l login processes
u useful information
d dead processes
A accounting information
a all (rbtpludA options)
s short form of who (no time since last output or pid)
H print header
T status of tty (+ writable, - not writable, x exclusive open, ? hung)
q quick who
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:
su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' > /dev/null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 05:43 PM
10-16-2002 05:43 PM
Re: user login error
What does the -cf option do on su??
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 06:05 PM
10-16-2002 06:05 PM
Re: user login error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:20 PM
10-16-2002 09:20 PM
Re: user login error
or any initialization files for the user.
I suspect somewhere it has a
who am i -u
which is looking out for the terminal process and is unable to catch it out.
Please revert.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:29 PM
10-16-2002 09:29 PM
Re: user login error
#Display errors from boot
tmos_rc_display
I don't know what the 'tmos_rc_display' mean.
May be a application. I'll ask someone who is familar with the applications in my system.
I suspect that someone invaded my system and changed the .login file, because I didn't found this error message yesterday.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:35 PM
10-16-2002 09:35 PM
Re: user login error
#Display errors from boot
tmos_rc_display
I don't know what the 'tmos_rc_display' mean.
May be a application. I'll ask someone who is familar with the applications in my system.
I suspect that someone invaded my system and changed the .login file, because I didn't found this error message yesterday.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 09:40 PM
10-16-2002 09:40 PM
Re: user login error
and standard error of one of your crontab commands:
su - tmosadm -cf 'source .login; /opt/tmos/bin/PMA_StartCleanUp' > /dev/null
The process tries opening the /dev/tty
be sure your process has stdout, stderr, and stdin all redirected somewhere.
check it up.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2002 10:14 PM
10-16-2002 10:14 PM
Re: user login error
Now, my stdout and stderr are all screen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 08:04 AM
10-31-2003 08:04 AM
Re: user login error
Is there another way to catch the owner of the running background process without running whoami. I would really like to get rid of the error message when running my background scripts.
I need to know the owner of the process running the script in order to prevent unauthorized users from running the script.
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 08:29 AM
10-31-2003 08:29 AM
Re: user login error
Something like this works fine:
if [ ! `id -u` = 123 ]
then
USER=`id -un`
echo "Run permission denied for user " ${USER}
exit 1
fi
(Where 123 is the "correct" userid)
Afraid that doesn't help our original poster, however.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2003 09:55 AM
10-31-2003 09:55 AM
Re: user login error
Thanks a bunch. Using the id approach will work. I'll add some more code to acess the /etc/password file with a login to get the expected UID first and then compare the output from id -u.
I'm thinking something like the following:
login=root
passwdID=`grep "^${login}:" | awk -F: ' { print $3 } '`
idID=`id -u`
if [ $passwdID -eq $idID ] ; then
echo "Allowed..."
else
echo "Not Allowed "
fi