#1780: 5.32 Changing Ownership
--------------------+-------------------------------------------------------
 Reporter:  peter   |       Owner:  [email protected]
     Type:  defect  |      Status:  new                          
 Priority:  normal  |   Milestone:                               
Component:  Book    |     Version:  SVN                          
 Severity:  normal  |    Keywords:                               
--------------------+-------------------------------------------------------
 {{{
 Linux From Scratch
 Version SVN-20060414

 Better yet, change the ownership of the /tools directory to user root
 by running the following command:

 chown -R root:root /tools

 Question: Is the intention to put all the files under
 $LFS/tools as belonging to user root and group root?
 If so, this command does not work that way because
 /tools is a symbolic link.

 From man chown:
        -H     if a command line argument is a symbolic link  to  a
               directory, traverse it

 The following two options will change user:group

 chown -RH root:root /tools
 or
 chown -R root:root $LFS/tools

 Below is an example:

 [EMAIL PROTECTED] lfs-scripts]# ls -l /tools
 lrwxrwxrwx  1 root root 14 Apr 20 23:01 /tools -> /mnt/lfs/tools
 [EMAIL PROTECTED] lfs-scripts]# ls -ld $LFS/tools
 drwxr-xr-x  2 lfs root 4096 Apr 20 23:01 /mnt/lfs/tools
 [EMAIL PROTECTED] lfs-scripts]# chown -R root:root /tools
 [EMAIL PROTECTED] lfs-scripts]# ls -l /tools
 lrwxrwxrwx  1 root root 14 Apr 20 23:01 /tools -> /mnt/lfs/tools
 [EMAIL PROTECTED] lfs-scripts]# ls -ld $LFS/tools
 drwxr-xr-x  2 lfs root 4096 Apr 20 23:01 /mnt/lfs/tools
 [EMAIL PROTECTED] lfs-scripts]# chown -RH root:root /tools
 [EMAIL PROTECTED] lfs-scripts]# ls -ld $LFS/tools
 drwxr-xr-x  2 root root 4096 Apr 20 23:01 /mnt/lfs/tools
 [EMAIL PROTECTED] lfs-scripts]#

 PFE
 }}}

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1780>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to