Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    65

    user group /etc/passwd

    i want disable cat /etc/passwd to all user
    only root can cat /etc/passwd

    i use centos 5.4

  2. #2
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Not possible, unless you disable the cat command for everyone but root which is silly. The /etc/passwd file doesn't actually contain the password hashes so it poses no risk to the security of your server. The /etc/shadow or /etc/master.passwd (BSD) files are only readable by root. In other words, you have nothing to worry about!
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

Similar Threads

  1. Replies: 16
    Last Post: 10-22-2012, 01:46 AM
  2. Permission denied: /home/airtrade/etc/airtrade.com.tw/passwd passwd
    By mmanickaraj in forum Hosting Security and Technology
    Replies: 1
    Last Post: 07-20-2008, 02:17 PM
  3. user can see /etc/passwd. how to stop this
    By its_joe in forum Hosting Security and Technology
    Replies: 11
    Last Post: 09-02-2007, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •