- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh environment variables
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
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
02-11-2003 11:00 AM
02-11-2003 11:00 AM
I create a user with a shell /usr/bin/ksh. when I login to that user my profile is not executed. I tried the following
1) ./.profile (Profile ran but environment varible does not set)
2) sh .profile (result is same as above)
3) . .profile (ksh: .profile not found. I set #!/usr/bin/ksh at the top of my profile)
For simplicy , the permission of my profile is set to 777.
4) if I login as root user and then exec newuser , the profile is executed and environment variable is set. The root user shell has /sbin/sh
Any help.
Thanks
Sam..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 11:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 11:04 AM
02-11-2003 11:04 AM
Re: ksh environment variables
The login sequence is as follows.
/etc/profile
user's profile($HOME/.profile)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 11:06 AM
02-11-2003 11:06 AM
Re: ksh environment variables
1) What's the ownership/perms on that user's .profile?
Should be 444 username/primary_group
2) Proper command to source the file would be:
. ./.profile
If you're in that user's home dir
3) You generally don't need a shell indicator at the top of a .profile file.
4) DO NOT change the default shell for root - system will be unbootable if you do.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2003 11:17 AM
02-11-2003 11:17 AM
Re: ksh environment variables
Sam..