File/dir create permission problem in centos 6.7 container

Firm

Renowned Member
Oct 27, 2015
40
1
73
Hi,
I have pve 4.1, container with centos 6.7 installed from standard template centos-6-default_20160205_amd64.tar.xz. Umask not working as it has to (should be 644 for file and 755 for directory):
Code:
[root@work ~]# umask
0022
[root@work ~]# touch tst && ls -l tst
-r--r----- 1 root root 0 Mar 15 08:13 tst
[root@work ~]# mkdir tst-dir && ls -ld tst-dir
dr-xr-x---+ 2 root root 4096 Mar 15 08:19 tst-dir

The same wrong behavior happens for /tmp:
Code:
[root@work ~]# touch /tmp/tst && ls -l /tmp/tst
-rw-rw-rw- 1 root root 0 Mar 15 08:23 /tmp/tst
[root@work ~]# mkdir /tmp/tst-dir && ls -ld /tmp/tst-dir
drwxrwxrwx+ 2 root root 4096 Mar 15 08:24 /tmp/tst-dir

Any ideas how to fix that?

Regards,
Alex
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!