Find the answer to your Linux question:
Results 1 to 7 of 7
-Lil' Buggers Won't Stick- Specifically in /etc/ssh/sshd_config and /etc/host.deny settings I...set just keep getting changed on me. I've tried making them read only and everything, it seems as if my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2004
    Posts
    3

    Configuration Settings Keep Getting Reset


    -Lil' Buggers Won't Stick-

    Specifically in /etc/ssh/sshd_config and /etc/host.deny settings I...set just keep getting changed on me. I've tried making them read only and everything, it seems as if my changes take effect but then after a certain amount of time or a reboot they get switched back.

    In sshd_config I want to set the line
    PermitRootLogin without-password
    to
    PermitRootLogin yes
    but....
    after I set it and save it eventually changes itself back to PermitRootLogin without-password.

    In hosts.deny this line keeps showing up
    ALL:ALL EXCEPT 127.0.0.1ENY
    I delete it and it reappears, I comment it out and it comes back.

    I'm beginning to think my box is playing a dirty trick on me, either that or I am going nuts.

    Any ideas?

    Thanks,
    iD

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Are you editing/saving the file as root?.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Jul 2004
    Posts
    3
    yea I'm doing everything via the root account, am I not supposed to?

  4. #4
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Belgrade, S&M
    Posts
    177
    the problem is very odd... check your start up scripts for suspicious lines and see if ps -aux gives you some unusual entry as it sounds really odd to me .

  5. #5
    Just Joined!
    Join Date
    Jul 2004
    Location
    Sarajevo
    Posts
    15
    maybe the config file is immutable, check the attributes with lsattr <filename> (example: lsattr /etc/passwd)

    if there is i in the result do: chattr -i <filename>

  6. #6
    Just Joined!
    Join Date
    Jul 2004
    Posts
    3
    i did lsattr, there is no "i" and "ps -aux" didn't show anything that seemed out of place, i'm not sure what i'm supposed to look for there that might be out of place though

  7. #7
    Just Joined!
    Join Date
    May 2004
    Location
    Israel
    Posts
    61
    hmmm what tool do you use to edit the config files ?
    it's there a chance that you edit the file but don't "save" it to disk when you exit ?

Posting Permissions

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