- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Passwd file permissions change frequently
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
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
тАО04-16-2004 12:39 PM
тАО04-16-2004 12:39 PM
Passwd file permissions change frequently
I have an IBM-AIX machine running database .
The permissions on "/etc/passwd" file get changed to r--r--r--.
could anyone give me a helping hand to trace out why & who the culprit is.
We enabled auditing. But thats of little help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 02:10 PM
тАО04-16-2004 02:10 PM
Re: Passwd file permissions change frequently
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 03:37 PM
тАО04-16-2004 03:37 PM
Re: Passwd file permissions change frequently
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 04:45 PM
тАО04-16-2004 04:45 PM
Re: Passwd file permissions change frequently
No offense please,The question u have posed is very inappropiate.the reason being ..whether it is AIX or HPUX or SUN SOLARIS or it may be any unix flavour ,the permission of /etc/passwd is always r--r--r--
and is owned by root.
Even if u change the permission to some other value the passwd command will change the permission of passwd file to write temperorily internally and reverts the permission back to r--r--r-- at its next invocation. so stop fidlling with the permission of /etc/passwd.Actually their is no culprit on your premisises,it's just the default unix behaviour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 05:56 PM
тАО04-16-2004 05:56 PM
Re: Passwd file permissions change frequently
You can do the following to prevent it
1. Change the root password
2. Remove .rhosts file from root user's home directory
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 06:41 PM
тАО04-16-2004 06:41 PM
Re: Passwd file permissions change frequently
senthil is right.
On hpux, 444 is the default file permission of /etc/passwd, whereas on linux it is 644 by default. I tried out on hpux an linux machines and found that it will revert back to default file permissions after some time.
It is nothing to do with .rhosts.
venu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2004 07:56 PM
тАО04-16-2004 07:56 PM
Re: Passwd file permissions change frequently
one good news and one bad news
first : badnews: my previous reply is not that accurate..that is i might be right in direction of thinking...though it is not the inherent property of the commands like passwd or chsh or usermod...etc to revert back to default permission.
good news: My collegue is working on your problem indepth.He is trying it on linux and hpux servers.it seems after some time a process is reverting back the permissions of certain critical files.Actually we are presentling running a program in background to hunt the exact process which is doing so...Hope we will succeed in giving the exact process and probable explaination...
Cost you pay us : patience
regards
Senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2004 08:18 AM
тАО04-17-2004 08:18 AM
Re: Passwd file permissions change frequently
Thanks for your help.
The machine is in a remote site.
The owner of the machine says the current permissions as
-rw-r--r-- 1 root system 14343 Apr 15 09:35 /etc/passwd.
And they get changed to r--r--r--.which he doesnt want.
I shall pay my patience as your friend is already woking on this issue.
I shall be thankful if you could share your experience.
Regards
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2004 01:35 PM
тАО04-17-2004 01:35 PM
Re: Passwd file permissions change frequently
If it changes in the middle of the night and root did not login or su was not used, then the time will point to a potential cron job. The alternative is to search the IBM database to see if this is a feature of passwd (or some other command).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2004 02:32 PM
тАО04-18-2004 02:32 PM
Re: Passwd file permissions change frequently
I have seen this problem in HP-UX 11.00. When /var is 100% full, permission of /etc/passwd changes to r--r--r-- (400) or some time ---------(000). In both situation any normal user will not be able to read /etc/passwd file. All files in the system will show improper owner (number).
In that situation only root can login and can change permission of /etc/passwd to r--r--r-- (444) and ownership of all file comes back to normal. This problem I have seen in trusted systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2004 05:16 PM
тАО04-18-2004 05:16 PM
Re: Passwd file permissions change frequently
Guys, excuse me I got a friend of mine ...
Kaps