Skip to contentSkip to conversation

LVM volume umask change

linux-lvm Marek Soha 3 participants 6 messages Nov 14, 2010 – Nov 15, 2010

lore
Share & tools
lore

Marek Soha

author
#0 lore raw

Hi all.

When I create file/directory in LVM volume, it is created with permissions (mode) 666. I need to get 644.
I changed umask in /etc/lvm/lvm.conf, but it did not helped. Any ideas?

Many thanks in advance.

MS

#1 lore raw
Quoted 4 lines · Marek Soha

When I create file/directory in LVM volume, it is created with permissions (mode) 666. I need to get 644.
I changed umask in /etc/lvm/lvm.conf, but it did not helped. Any ideas?

lvm.conf has nothing to do with any filesystems (and associated files and directories) you might happen to create on a logical volume.

Your question is a basic unix question. Try "man umask".

author
#2 lore raw

Hehe :)

You are joking, aren't you?

Please look into lvm.conf and try to find umask part... System umask is set correctly and this issue is happening only in LVM mount.

Stuart, d�a 15. novembra 2010 ste nap�sali:
SDG> On 11/13/2010 08:45 PM, Marek Soha wrote:
SDG> When I create file/directory in LVM volume, it is created with SDG> permissions (mode) 666. I need to get 644.
SDG> I changed umask in /etc/lvm/lvm.conf, but it did not helped. SDG> Any ideas?

SDG> lvm.conf has nothing to do with any filesystems (and associated SDG> files and directories) you might happen to create on a logical volume.

SDG> Your question is a basic unix question. Try "man umask".

#3 lore raw
In reply to Marek Soha
Quoted 4 lines · Marek Soha

When I create file/directory in LVM volume, it is created with permissions (mode) 666. I need to get 644.
I changed umask in /etc/lvm/lvm.conf, but it did not helped. Any ideas?

Curious. What is the filesystem of your logical volume?

author
#4 lore raw

ext3

Eugene, d�a 15. novembra 2010 ste nap�sali:

Quoted 4 lines · Marek Soha
Quoted 4 lines

When I create file/directory in LVM volume, it is created with permissions (mode) 666. I need to get 644.
I changed umask in /etc/lvm/lvm.conf, but it did not helped. Any ideas?

EV> Curious. What is the filesystem of your logical volume?

EV> _______________________________________________ EV> linux-lvm mailing list
EV> [email protected]
EV> https://www.redhat.com/mailman/listinfo/linux-lvm
EV> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

#5 lore raw

2010/11/14 Marek Soha <[email protected]>:

Quoted 7 lines

Hehe :)

You are joking, aren't you?

Please look into lvm.conf and try to find umask part... System umask is set correctly and this issue is happening only in LVM mount.

This umask is for the files and directories that lvmtools create.