Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2002 16:05:32 +0100
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Andrew Cutler <andrew@1stelement.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: chown  broken??
Message-ID:  <20021220150532.GD6845@freepuppy.bellavista.cz>
In-Reply-To: <1040390551.921.36.camel@localhost>
References:  <1040390551.921.36.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
# andrew@1stelement.com / 2002-12-21 00:22:32 +1100:
> I just hosed one of my boxes by recursively setting all my file
> permissions incorrectly:
> 	
> 	$ su
>         $ cd /data
>         $ chown -R andrew:wheel *
>         $ chown -R andrew:wheel .*

    apart from what others said about wildcard substitution:

    roman@freepuppy /usr 1005:1 > ls -l .*
    zsh: no matches found: .*
    roman@freepuppy /usr 1006:1 > 

    IOW, the behavior is actually shell- (and shell configuration-)
    dependent. zsh (at least with my settings) would protect you from
    yourself in this situation.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.    see http://www.eyrie.org./~eagle/faqs/questions.html

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?20021220150532.GD6845>