Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 1998 22:34:47 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Malartre <malartre@aei.ca>, questions@FreeBSD.ORG
Subject:   Re: /root:"chmod 600 .*" nothing work now
Message-ID:  <19980615223447.A15211@emsphone.com>
In-Reply-To: <3585D0EB.389AA3D7@aei.ca>; from "Malartre" on Mon Jun 15 21:56:59 GMT 1998
References:  <3585D0EB.389AA3D7@aei.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jun 15), Malartre said:
> Ok, I have play with chmod for the first time.
> <screenshot>
> #pwd:
> /root
> #chmod 600 .*
> <!-- it was only to change the mode of all "." hiden file --!>

Unfortunately, sh, csh, and bash all match "." and ".." with the
pattern ".*".  You just have to be careful about wildcards.  Zsh is the
only shell I know of offhand that explicitly never lets a wildcard
match "." or "..".

What your command did was make "/home/.." (that is, "/") mode 600.  To
fix your particular problem, "chmod 755 /".

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980615223447.A15211>