[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Chown Foibles

On 2014-07-05 22:56 +0200, David Baron wrote:

> Any attempt to chown -R thisuser:thisuser /home/thisuser/.*
> For example,to reset permissions of hidden items, will change ALL users' home 
> folders, everything. Actually, on the surface, this might seem correct 
> behavior because of the '.' This is, of course, a catastrophe. Their kde, etc, 
> is unusable.

Yes, that's a (dubious) feature required by POSIX.

> How can I do this?

Use ".[!.]*" instead of ".*".  Or use zsh which will skip current and
parent directory when expanding ".*" .


Reply to: