Re: [CentOS] LVM chown issues

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




On Aug 31, 2006, at 8:29 AM, William L. Maltby wrote:

On Thu, 2006-08-31 at 07:54 -0400, William L. Maltby wrote:
On Thu, 2006-08-31 at 18:29 +1000, Devraj Mukherjee wrote:
Hi Everyone,

I have got CentOS 64bit running on a Dell PowerEdge SC1850 with
hardware raid 1. My LVM partions donot seem to honour chown commands
for symbolic links. Is this normal? All other files and directories
honour it.

Suddenly, this stuck me as being out-of-kilter. Can you demonstrate
this? I went to my /boot, non-LVM, and did this test.

# cd /boot
# ls
boot.b                  initrd-2.6.9-42.0.2.EL.img
 <snip>

# ln -s boot.b myboot.b
# ls -l boot.b myboot.b
-rw-r--r--  1 root root 5824 Feb 21  2005 boot.b
lrwxrwxrwx  1 root root    6 Aug 31 08:04 myboot.b -> boot.b
# chown wild-bill myhtl
# ls -l boot.b myboot.b
-rw-r--r--  1 wild-bill root 5824 Feb 21  2005 boot.b
lrwxrwxrwx  1 root      root    6 Aug 31 08:04 myboot.b -> boot.b

The symlink is unchanged. Trying the same on an LVM file.

# cd /tmp
# ls
 <snip>
<snip>

HTH
--
Bill



chown -h
or
chown --no-dereference

will change the ownership of the link source instead of the target (regardless of LVM)

Tony Schreiner

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux