- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- .kshrc not working
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
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
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
тАО11-26-2003 04:09 AM
тАО11-26-2003 04:09 AM
Whenever she logs in the system does not appear to be reading the .kshrc or .profile files, ie none of the aliasas etc work.
All other shells work okay and ksh works on solaris okay.
Can someone save me some time?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:18 AM
тАО11-26-2003 04:18 AM
Re: .kshrc not working
check, if the user has ksh assigned in /etc/passwd. Any error messages? Check permissions on .profile and .kshrc
When logged in, try . $HOME/.profile
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:20 AM
тАО11-26-2003 04:20 AM
SolutionThe last line should be uncommented in .dtprofile to make the .profile readable.
DTSOURCEPROFILE=true
If it still persists then it the problem with the terminal they are opening.
echo "*loginShell:true" >/.Xdefaults
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:25 AM
тАО11-26-2003 04:25 AM
Re: .kshrc not working
try to "su - username" and verify that the .kshrc or .profile isn't being used. Also look at the user's .profile to see if ENV is exported and what it's exported to (ie/ ENV=.kshrc)
If you are able to su to the user and see it parses each file as expected, then it may be they're using CDE and the .dtprofile does not have "DTSOURCEPROFILE=true". Adding this to the .dtprofile will fix it so your users .profile is read when logging into cde.
hope this helps,
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:25 AM
тАО11-26-2003 04:25 AM
Re: .kshrc not working
ksh uses .profile
If you wish users to execute .kshrc when the log in, the line
export ENV=$HOME/.kshrc
should be added to /etc/profile. This will allow user customisations to be added to the .kshrc file in their home directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 04:37 AM
тАО11-26-2003 04:37 AM
Re: .kshrc not working
As others have stated ....
See below for what we do to accomplish this in our environment-
From .profile
# Set up the shell variables:
EDITOR=vi
export ENV=~/.kshrc
From .dtprofile
#
# If $HOME/.profile (.login) has been edited as described above, uncomment
# the following line.
#
DTSOURCEPROFILE=true
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 05:11 AM
тАО11-26-2003 05:11 AM
Re: .kshrc not working
DTSOURCEPROFILE is uncommented
ENV is set
permissions 644 (Ihave also tried 755)
Neither .profile or .kshrc seem to be run.
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 05:19 AM
тАО11-26-2003 05:19 AM
Re: .kshrc not working
Did you try this?
echo "*loginShell:true" >$HOME/.Xdefaults
This will work.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 05:20 AM
тАО11-26-2003 05:20 AM
Re: .kshrc not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 05:21 AM
тАО11-26-2003 05:21 AM
Re: .kshrc not working
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 05:31 AM
тАО11-26-2003 05:31 AM
Re: .kshrc not working
The suggestion by Umapathy worked and solved the problem.
I used echo "*loginShell:true" > $HOME/.Xdefaults as suggested.
Thank you all for your responses.