- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Linux - How to trace login procedure
Operating System - Linux
1819866
Members
2739
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО05-02-2007 02:17 AM
тАО05-02-2007 02:17 AM
Linux - How to trace login procedure
Hello all,
I'm experimenting a problem with the login procedure for a user.
When I log on interactively as user Joe on a Linux server, his environment (ie work, home log and temp directories) is set properly and the subject job executes properly.
When I submit the same job from an Autosys server, the job fails due mostly to an incorrect environment (generating infut file not found).
I have modified the job to display userid and all system variables but that only provides the end result and not how/why the error happened.
I try modifying /etc/profile to use "set -x" and "script" to an output file but that only gave me a zero length log.
How can I trace the logon process?
I mean see which login scripts were executed and a detail log of each command?
Thanks
Rayb
I'm experimenting a problem with the login procedure for a user.
When I log on interactively as user Joe on a Linux server, his environment (ie work, home log and temp directories) is set properly and the subject job executes properly.
When I submit the same job from an Autosys server, the job fails due mostly to an incorrect environment (generating infut file not found).
I have modified the job to display userid and all system variables but that only provides the end result and not how/why the error happened.
I try modifying /etc/profile to use "set -x" and "script" to an output file but that only gave me a zero length log.
How can I trace the logon process?
I mean see which login scripts were executed and a detail log of each command?
Thanks
Rayb
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 02:39 AM
тАО05-02-2007 02:39 AM
Re: Linux - How to trace login procedure
Shalom Rayb,
Two ideas.
set -x in the .bash_profile or whatever is being executed. env > file in the profile or startup script.
At login, find out the process id and use strace to track the process in detail. See the man page for strace to see about hanging it on a process in a script.
SEP
Two ideas.
set -x in the .bash_profile or whatever is being executed. env > file in the profile or startup script.
At login, find out the process id and use strace to track the process in detail. See the man page for strace to see about hanging it on a process in a script.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 04:59 AM
тАО05-02-2007 04:59 AM
Re: Linux - How to trace login procedure
Try modifying the job to source the /etc/profile, the .bashrc and .bash_profile files, for example:
source /etc/profile
source ~/.bash_profile
source /etc/profile
source ~/.bash_profile
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:28 AM
тАО05-02-2007 06:28 AM
Re: Linux - How to trace login procedure
You can start your "session" and then try to login that user, then use the tusc application to trace what is doing ...
#tusc
Try that and let us know your results.
Best regards,
Marc0
#tusc
Try that and let us know your results.
Best regards,
Marc0
Just unplug and plug in again ....
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP