----- Original Message ----- 
From: "Emre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 27, 2000 4:53 PM
Subject: .bash_history and permissions


> 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.

for x in `cut -d: -f1 /etc/passwd`
do
  if [ ! -r ~$x/.bash_history ]
  then
    userdel -r $x
  fi
done




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to