- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: kicked off from logging
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
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
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
02-19-2003 02:29 PM
02-19-2003 02:29 PM
for some reasons, if i login as user x with a valid password it allows me in, but immediately logs out. however if i login as root, no problems whatsoever. This weird thing started to happen only today.
what should i look for resolve this issue.
thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:33 PM
02-19-2003 02:33 PM
Re: kicked off from logging
I'd take a hard look at that user's .profile (.login if csh) & whatever else it's calling.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:34 PM
02-19-2003 02:34 PM
Re: kicked off from logging
Did you modify user x's profile? For instance, and 'exit' at the end of the profile would account for this behavior.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:35 PM
02-19-2003 02:35 PM
Re: kicked off from logging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:35 PM
02-19-2003 02:35 PM
Re: kicked off from logging
.profile. I used to play pranks on people by editing those file to log them out right after they logged in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:44 PM
02-19-2003 02:44 PM
Re: kicked off from logging
here is snip of .profile that i have.
bash-2.05# more .profile
# @(#) $Revision: 72.2 $
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 02:47 PM
02-19-2003 02:47 PM
Re: kicked off from logging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 03:11 PM
02-19-2003 03:11 PM
Re: kicked off from logging
To some this is an old joke. Routinely, as others have pointed out, the .profile has been changed, but it could also be in the .cshrc, .kshrc, or whatever shell the user has been assigned.
Don't be fooled by time stamps.
Touch -t is often used to cover tracks.
Best of Luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 03:21 PM
02-19-2003 03:21 PM
Re: kicked off from logging
this happens only when i login direcly as user x.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 04:21 PM
02-19-2003 04:21 PM
Re: kicked off from logging
Again, does the user have an assigned shell. What does their dot file for the shell look like.
One other place to look would be in /etc/profile as all users access this prior to their own .profiles.
Ours has been modified to perform different things based on the user id.
If possible, could you respond and attach the mentioned items?
Hang in there, we'll get it.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 04:52 PM
02-19-2003 04:52 PM
Re: kicked off from logging
yes the user x has been assigned a bash shell. however i don't see a .bash_profile in x's home dir. i've already posted the .profile of user x.
as per your request, i'm also attaching /etc/profile. wondering what could be the reasons of not working today. anyways, let me know what you find.
thanks,
Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 05:29 PM
02-19-2003 05:29 PM
Re: kicked off from logging
One more attempt before I leave for the day ...
Not noticed before was the bash reference (I'm going blind.).
Assuming this is linux, my linux for dummies indicates it could be due to the .bash_profile you say is missing, or to a missing .bashrc.
I tried to duplicate this in HP-UX.
In the password file for a given user I declared a shell on that user's entry but put no .profile or dot file for the shell type.
Next I tried to login as the user and bang!==> no shell, I was logged out.
Can I suggest copying in a .bash_profile or .bashrc from another user to this one's home directory?
As I said before, Hang In There, we'll get this.
Will pick up your reply in the a.m.
Go get 'em Stan.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 05:43 PM
02-19-2003 05:43 PM
Re: kicked off from logging
sorry for not posting this info. earlier. this happens on a hpux B.11.00 U 9000/800 box.
another strange thing is that i've another user 'y', its shell is also bash but it doesn't have a .bash_profile (only .profile like user x) no log-on problems with user y (direct).
so i think the problem is some where else ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 09:20 AM
02-20-2003 09:20 AM
SolutionNext plan of attack.
1. Rename the current .profile.
2. Copy in the .profile from a working user.
If the problem still exists -
1. Does someone else have root priviledge?
2. Is there a script running that might be searching for the user log in, then killing the pid? (another old practical joke.)
The diffrence you see in doing an su is explained in "man su".
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 09:56 AM
02-20-2003 09:56 AM
Re: kicked off from logging
Steph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 10:34 AM
02-20-2003 10:34 AM
Re: kicked off from logging
thanks for everyone's help