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

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

 



On Thursday 07 April 2005 05:00, 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*
> >
> > *One Ring Group, Inc.*
> > 300 West Wieuca Road
> > Building One
> > Suite 205
> > Atlanta, GA 30342
> > 404.303.9900 X: 104
> > *http://www.oneringgroup.com*
> > <http://www.oneringgroup.com>
> >
> > 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.
Next time try copying a hierarchy using:   cp -a ...
which will preserve ownership and permissions.   See cp man page for details.
The copy may also be done using tar

>
> do people recursively go through these files, or is there an alternate
> solution?
>
>
> thanks,
>
> Thufir
>
>
> --
> This is an email sent via the webforum on http://fcp.homelinux.org
> http://fcp.homelinux.org/modules/newbb/viewtopic.php?post_id=57459&topic_id
>=13506&forum=10#forumpost57459

-- 
Paul Almquist
paul@xxxxxxxxxxxxx
Eau Claire, WI  USA


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux