- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to protect /etc/passwd file from being de...
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
тАО10-22-2005 05:49 AM
тАО10-22-2005 05:49 AM
pl. guide me .
Thanks in advance to all experts
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2005 05:59 AM
тАО10-22-2005 05:59 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
best way to always have a backup copy of this file,
create ur system into trusted system using SAM.
link:
http://wks.uts.ohio-state.edu/sysadm_course/html/sysadm-240.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2005 06:32 AM
тАО10-22-2005 06:32 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
The permission for /etc/passwd is by default,
-r--r--r-- 1 root root
No point in changing the permission from 444 to 555. If you are logged in as root you are not having restrictions for deleting any file.
instead, as a normal security practice,
1. Login as root only when you really need it. For normal work create a normal login ID.
2. Always keep a copy of your configuration file. Not only /etc/passwd, when you use root login, you may destroy the whole system itself with a silly mistake. So always keep a copy of your important configuration files.
3. Create a nickel report of your system and keep it for reference. This is a configuration snapshot of your system. This will help you to retrive your configuration back to normal incase of any problem.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2005 07:42 AM
тАО10-22-2005 07:42 AM
SolutionWith regard to accidental deletion of the /etc/passwd file, unless you are running as root (or strictly speaking with a uid=0) then as long as there are no write permissions on the parent '/etc' directory, removal of the 'passwd' file will not be possible.
That said, your best action, however, is to maintain a current backup of all key configuration files.
With regard to a "shadow" password file, yes, HP-UX 11i supports this mechanism. You can download (for free) and install the necesssary filesets to convert to a shadow implementation. The following link offers the details along with the actual software for installation:
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ShadowPassword
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2005 11:04 AM
тАО10-22-2005 11:04 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
Also, you can use a script running as a cron job to make "versions" of your passwd file. But this does not makes sense because the passwd file is not the only sensitive file in the system.
Anyway, a good backup plan will save the situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 03:22 AM
тАО10-24-2005 03:22 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2005 05:43 AM
тАО10-24-2005 05:43 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2005 01:08 AM
тАО10-25-2005 01:08 AM
Re: how to protect /etc/passwd file from being deleted accidently ?
http://www.cfengine.org/
Or write a script that checks for /etc/passwd - and restores it automatically if it doesn't exist...
Rgds...Geoff