Re: chown ??

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

 



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.

  cd /home
  ls -ld tom

Is it a symlink?

If so, you need to go:

  cd /home/tom
  chown -R tom:tom .

or

  cd /home
  chown -R tom:tom tom/.

or some variantion of that form.

Note the "/." in the second example: that _enters_ the tom directory for
the chown.

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

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
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux