Skip to contentSkip to conversation

Hi, Is this a problem?

DISCUSSION Zhang AiHua 2 participants 2 messages Sep 23, 2016

lore
Share & tools
lore
#0 lore raw

mount:
overlay on /tmp type overlay (rw,relatime,lowerdir=/home/zah/lower,upperdir=/home/zah/upper,workdir=/home/zah/workdir) /dev/mapper/fedora-home on /home type ext4 (rw,relatime,data=ordered)

problem as below:
[root@localhost tmp]# mkdir zzz
[root@localhost tmp]# chown -R zah zzz
[root@localhost tmp]# su zah
mktemp: failed to create file via template 鈥?tmp/.colorlsXXX鈥? Permission denied
bash: $TMP: ambiguous redirect
[zah@localhost tmp]$
[zah@localhost tmp]$
[zah@localhost tmp]$
[zah@localhost tmp]$ ls -alt |grep zzz
drwxr-xr-x 2 zah root 4096 Sep 24 02:03 zzz
[zah@localhost tmp]$ rm -fr zzz
rm: cannot remove 鈥榸zz鈥? Permission denied
[zah@localhost tmp]$

Is this a problem?

#1 lore raw
Quoted 21 lines · Zhang AiHua

mount:
overlay on /tmp type overlay (rw,relatime,lowerdir=/home/zah/lower,upperdir=/home/zah/upper,workdir=/home/zah/workdir) /dev/mapper/fedora-home on /home type ext4 (rw,relatime,data=ordered)

problem as below:
[root@localhost tmp]# mkdir zzz
[root@localhost tmp]# chown -R zah zzz
[root@localhost tmp]# su zah
mktemp: failed to create file via template 鈥?tmp/.colorlsXXX鈥? Permission denied
bash: $TMP: ambiguous redirect
[zah@localhost tmp]$
[zah@localhost tmp]$
[zah@localhost tmp]$
[zah@localhost tmp]$ ls -alt |grep zzz
drwxr-xr-x 2 zah root 4096 Sep 24 02:03 zzz
[zah@localhost tmp]$ rm -fr zzz
rm: cannot remove 鈥榸zz鈥? Permission denied
[zah@localhost tmp]$

Quoted 1 line

Is this a problem?

Depends on what the permissions are on tmp.

Thanks,
Miklos