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

Re: how to change ownership on all files in a folder



On Thu, 2005-04-07 at 12:00 +0200, thufir wrote:
> > 
> > "Bryan M. Johns" wrote:
> > use the following as root at a shell from the directory above your
> > target directory (eg - example):
> > 
> > chown -R user:user example
> > 
> > *Bryan M. Johns*
> > 
> > 
> > 
> > Claude Jones wrote:
> > 
> > 
> > > Pardon if this is too basic. Is there a way to change ownership for
> > > all files in a folder? I want to change from root to user.
> > > 
> > > 
> > 
> 
> 
> 
> copying a directory of files from the cd to /home/thufir creates a ton of locked files with root ownership.  Whether this makes sense, dunno, but it can be inconvenient.
> 
> do people recursively go through these files, or is there an alternate solution?
> 
one command "chown".
if just for the current directory -- "chown user:group * "
if for a directory and ALL files and directories under it
            "chown -R user:group /path/to/dir

man chown for full details.

> 
> thanks,
> 
> Thufir
> 



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