From owner-freebsd-current Thu Jan 27 13:52:42 2000 Delivered-To: freebsd-current@freebsd.org Received: from iris.vsrc.uab.edu (iris.vsrc.uab.edu [138.26.156.231]) by hub.freebsd.org (Postfix) with ESMTP id EA19E1582C for ; Thu, 27 Jan 2000 13:52:36 -0800 (PST) (envelope-from emre@iris.vsrc.uab.edu) Received: by iris.vsrc.uab.edu (Postfix, from userid 1001) id D763D1250B; Thu, 27 Jan 2000 15:53:28 +0000 (GMT) Date: Thu, 27 Jan 2000 15:53:28 +0000 From: Emre To: freebsd-current@freebsd.org Subject: .bash_history and permissions Message-ID: <20000127155328.A32492@iris.vsrc.uab.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks! I'm running FreeBSD 4.0 from Dec. 26 1999. This should be on the "general questions" malininglist, but I thought maybe there is something that changed from -stable to -current that does this: I'm trying to limit permissions on .bash_history. There have been users on my server that have linked .bash_history to /dev/null and then been doing some cracking, and attacking other servers. To limit this (or at least trying to control it) I tried to take out write permission for group and others, thinking that will stop the users from trying to mod- ify the file. That didn't work! Even if I did "chmod 000 .bash_history" users still could delete the file or modify it. So I thought maybe if I just change the group or the owner of the file, it would fix the problem that didn't work either...now it wouldn't log the commands to the history file anymore. So I was wondering, do any of you gurus and bofh know how to fix this? This is very imporant for me, I'd be _very_ thankful if anyone could help me fix this problem. (PS: In other's OSs i.e Solaris or Linsucks, changing the perms seemd to work, just not in FreeBSD) -- DSS/DH 1024/4064: 0x5E9EE10A/0x2486FEBE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message