Re: chown ??
- From: Cameron Simpson <cs@xxxxxxxxxx>
- Date: Fri, 1 Jul 2011 09:21:14 +1000
On 29Jun2011 14:25, james tate <binarynut@xxxxxxxxxxx> wrote:
| On a backup drive /mnt/home/tom , I want to change all directories and
| files in tom to owner:tom .
| The drive is mounted but from /home the command chown -R tom tom is not
| changing the directories and files to owner, tom .
| Command chown -R tom:tom tom won't change the ownership in the
| directories and files in
| directory tom .
I notice that /mnt/home/tom isn't in /home. If /home/tom is a symlink
then you'll get what you describe.
ls -ld tom
Is it a symlink?
If so, you need to go:
chown -R tom:tom .
chown -R tom:tom tom/.
or some variantion of that form.
Note the "/." in the second example: that _enters_ the tom directory for
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
Goverment is not reason; it is not eloquence; it is force. Like fire, it is a
dangerous servant and a fearful master. - George Washington
users mailing list
To unsubscribe or change subscription options:
- Prev by Date: Re: updating initrd.img file of the pxe installation files
- Next by Date: Re: Wine fonts makes html rendering on firefox and chrome much worse
- Previous by thread: Re: updating initrd.img file of the pxe installation files
- Next by thread: Re: Wine fonts makes html rendering on firefox and chrome much worse