Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to avoid overwrite the passwd and shadow file  (Read 3664 times)

0 Members and 1 Guest are viewing this topic.

sun_os

    Topic Starter


    Beginner

    How to avoid overwrite the passwd and shadow file
    « on: January 26, 2012, 05:52:09 AM »
    Dear All,

    I have no idea to do so the below questions:

    1. I add the users and set the password. But I want to avoid someone to overwrite the shadow when log on as root .
    2. The users telnet the server, browser the directory. But the telnet connect is time out. What is the first thing I need to check? 

    Thanks

    Rob Pomeroy



      Prodigy

    • Systems Architect
    • Thanked: 124
      • Me
    • Experience: Expert
    • OS: Other
    Re: How to avoid overwrite the passwd and shadow file
    « Reply #1 on: January 30, 2012, 06:11:46 AM »
    I want to avoid someone to overwrite the shadow when log on as root

    You can't.  root is omnipotent, by definition.
    Only able to visit the forums sporadically, sorry.

    Geek & Dummy - honest news, reviews and howtos

    sun_os

      Topic Starter


      Beginner

      Re: How to avoid overwrite the passwd and shadow file
      « Reply #2 on: January 31, 2012, 05:20:41 AM »
      Oh! I want to aviod two root users to edit the /etc/passwd , I don't want to set the acl to complicate the permission on the file. ???

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: How to avoid overwrite the passwd and shadow file
      « Reply #3 on: January 31, 2012, 06:33:53 AM »
      I think your best bet is going to be to set up other administrative users and maybe even prevent root from logging on (other than at the console?).  I assume you're thinking of SELinux's capabilities - there are some good walkthroughs >here<.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos