Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Locking down ssh config in large env |
|---|---|
| Date: | Wed, 29 Sep 2004 09:29:42 +0300 (EEST) |
Michael Shirk (Shirkdog) wrote:
What about the immutable bit "chmod +i .ssh". If it is root owned, and the immutable bit set, no one can change it. Root has to unset the bit first. However, it will not be able to update for new sshd hosts, but that it is a security feature. Atro, test this on your box and let me know.
root@thisbox /home/username 4 # uname -a Linux thisbox 2.4.27 #1 Mon Aug 16 15:45:29 EEST 2004 i686 unknown root@thisbox /home/username 5 # mount /dev/hda7 on / type reiserfs (rw) ... root@thisbox /home/username 2 # mkdir pelle root@thisbox /home/username 3 # chmod +i pelle chmod: invalid mode You mean chattr, and according to its manual page, it only works on ext2. The attribute is set and recorded on reiserfs too (can be viewed with lsattr), but does not prevent the user from renaming the root-owned supposedly immutable directory "pelle" in the user's home directory. Even if it worked across all Linux file systems, which it seems not to be doing, it is at any rate not portable across UNIX systems and there- fore not a solution either. I couldn't find anything on Solaris 8 or HP-UX 10.20 that would do the same (but maybe I wasn't looking hard enough). IRIX 6.5 has the capabilities system and OSF1 (Tru64) has the Extended File Attributes which might be applicable. -- Atro Tossavainen (Mr.) / The Institute of Biotechnology at Systems Analyst, Techno-Amish & / the University of Helsinki, Finland, +358-9-19158939 UNIX Dinosaur / employs me, but my opinions are my own. < URL : http : / / www . helsinki . fi / %7E atossava / > NO FILE ATTACHMENTS
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Illegal user ssh probes, Frank Hamersley |
|---|---|
| Next by Date: | A Banner., Alexander Krasnostavsky |
| Previous by Thread: | RE: Locking down ssh config in large env, Michael Shirk |
| Next by Thread: | RE: Locking down ssh config in large env, Michael Shirk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |