- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .profile disappears
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
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
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
06-22-2014 07:07 AM
06-22-2014 07:07 AM
.profile disappears
Help:
I have a hp-ux 3440 that root's .profile in / keeps disappearing.
I recreate and I check a fews hours later and it is gone.....
Correct me if I am wrongs but teh .prfile file should be in the root directory correct?
I have change the permissions to 444.
What's goingin on?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2014 06:30 PM
06-22-2014 06:30 PM
Re: .profile disappears
The .profile file goes into the HOME directory, so if root's HOME is /, then that's the correct location. Are you sure it's gone? The ls and ll commands will not show dot files like .profile unless you add the -a option.
A good alias for ls and ll is something like this:
alias ls='ls -a' alias ll='ls -al'
Also, the default location for root's HOME directory should never be /. While virtually every Unix manufacturer has done this, it is the worst possible location. As a minimum, it should be moved to /root to prevent disasters like rm -rf *
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2014 07:05 PM
06-22-2014 07:05 PM
Re: .profile disappears
Yep it's gone.
I have changed roots home directory to /home/root, will see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2014 10:40 PM - edited 06-22-2014 10:41 PM
06-22-2014 10:40 PM - edited 06-22-2014 10:41 PM
Re: .profile disappears
>root's .profile in / keeps disappearing.
What HP-UX version? What is the modification date on /? ll -d /
>the .profile file should be in the root directory correct?
The .profile goes into ~/.profile for each user.
>The ls and ll commands will not show dot files unless you add the -a option.
They will also show if you're explicit: ll ~/.profile
And -A will show them but without showing "." and "..".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2014 08:36 AM
06-30-2014 08:36 AM
Re: .profile disappears
>root's .profile in / keeps disappearing.
What HP-UX version? What is the modification date on /? ll -d /
>the .profile file should be in the root directory correct?
The .profile goes into ~/.profile for each user.
>The ls and ll commands will not show dot files unless you add the -a option.
They will also show if you're explicit: ll ~/.profile
And -A will show them but without showing "." and "..".
This is HP-UX appsvr B.11.11 U 9000/800.
# ll ~/.profile
/home/root/.profile not found
drwxr-xr-x 3 root sys 96 Jun 23 12:08 .
Still disappearing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2014 12:00 PM - edited 06-30-2014 12:01 PM
06-30-2014 12:00 PM - edited 06-30-2014 12:01 PM
Re: .profile disappears
>Still disappearing.
What is the modification date on ~? ll -d ~
Unless you can narrow down the time frame to a specific crontab, you may have to enable auditing to log all file deletions.