- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How could .profile be changed?
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
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
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-13-2006 08:37 PM
тАО02-13-2006 08:37 PM
I am not able to figure out how the .profile is getting changed.
Help is required to resolve the problem. "The changes I have made in .profile should be permanent and should not get changed."
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 08:41 PM
тАО02-13-2006 08:41 PM
Re: How could .profile be changed?
The specific env in .profile is not in /etc/profile ? Make sure, it is not.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 08:43 PM
тАО02-13-2006 08:43 PM
Re: How could .profile be changed?
which shell is the user login into? The .profile file is not the only one used.
You could also switch debug on to trace what is happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 08:45 PM
тАО02-13-2006 08:45 PM
Re: How could .profile be changed?
We can change / modify the default environment variable in the shell. When ever you try to use subshell then it will have only default settings not the .profile changed settings. If you are going to use sub shell then try as,
. $HOME/.profile
it is enough. You can use .profile changed env variables.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 08:48 PM
тАО02-13-2006 08:48 PM
Re: How could .profile be changed?
Check the shell which user logged in and did the shell got changed afterwards ?
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 08:52 PM
тАО02-13-2006 08:52 PM
Re: How could .profile be changed?
Are the env settings changed after you login or is the user changing the file?
If the user is changing the .profile, you could change the ownership and the permissions of the file.
# cd /home/abc
# chown root:sys .profile
# chmod 444 .profile
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 09:03 PM
тАО02-13-2006 09:03 PM
Re: How could .profile be changed?
1.User is not changing the settings as the .profile has root permissions.
2.After I change the required settings and login in the changed settings, it shows the changed env for sometime. But the next day I login to the same user, the .profile came into the old .profile settings and date stamp is 15-Jun-2005 (when actually this user was first created).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 09:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:48 PM
тАО02-13-2006 10:48 PM
Re: How could .profile be changed?
You are right. One old cron job was still running and it was to restore backups for cloning purposes. Since the restored data was full backup of the applications, it was also included the $HOME of the applications user. "The job was to run in the morning 10 a.m. which was earlier used to restore backups in test env." But somehow it was forgotten to switch off the job after the required restoration. So the cron job is running every morning at 10 a.m. and again and again copying all files including the .profile.
Now I have disabled the cron job.
Thanks for the good info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 10:52 PM
тАО02-13-2006 10:52 PM