You are not logged in.
Pages: 1
Topic closed
Solved, I(ssue whith this user: directory mnt is +a though not its files
lsattr /home/ape1
...
-----a--------e--- ./mnt
...This simple routines talks by itself:
Script iniciado en 2018-07-09 18:32:31-03:00
[root@Pantheon mnt]# pacman -Qs e2fsprogs
local/e2fsprogs 1.44.1-1 (base)
Ext2/3/4 filesystem utilities
[root@Pantheon mnt]# cat /etc/fstab
# /dev/sda1
UUID=29cc484e-4d42-44cb-8748-8b9df848fb5e / ext4 rw,relatime,data=ordered 0 1
# /dev/sda2
UUID=fa62f295-575f-4a4e-9067-cd8770a939cd none swap defaults 0 0
/dev/sdb1 /home/ape1/mnt ext4 defaults,nofail 0 0
# /dev/sdb2 /2 ntfs-3g defaults 0 0
# /dev/sdb3 /3 vfat defaults 0 0
# /dev/sdb5 /5 ntfs-3g defaults 0 0
# /dev/sdb6 /6 ntfs-3g defaults 0 0
[root@Pantheon mnt]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 74,6G 0 disk
├─sda1 8:1 0 35G 0 part /
└─sda2 8:2 0 10G 0 part [SWAP]
sdb 8:16 0 76,7G 0 disk
└─sdb1 8:17 0 76,7G 0 part /home/ape1/mnt
sr0 11:0 1 1024M 0 rom
[root@Pantheon mnt]# ls foo3
ls: no se puede acceder a 'foo3': No existe el fichero o el directorio
[root@Pantheon mnt]# echo >foo3
[root@Pantheon mnt]# ls -la foo3
-rw-r--r-- 1 root root 1 jul 9 18:33 foo3
[root@Pantheon mnt]# lsattr foo3
--------------e--- foo3
[root@Pantheon mnt]# rm -f foo3
rm: no se puede borrar 'foo3': Operación no permitida
[root@Pantheon mnt]# exit
exit
Script terminado en 2018-07-09 18:33:17-03:00I recently installed e2fsprogs in order to protect some files in my file system against involuntary deletion so i ran
chattr -R +i /home/ape/mnt, but i repented because i thought that the meassure was too strong, then
chattr -R -i /home/ape/mntin order to
chattr -R -a /home/ape/mnt but, as the more experienced could notice from the upper code, i had no need of that since the append mode is already compulsively forced by watever is failing on the system or on this user for that hard drive.
The trouble above is that im being unable to delete ANY file even with superuser privileges and even with no flags on the files while on the drive in question.
As you can see from upper, I have an ext4 partition from a different drive than that of the system mounted on /home/ape1/mnt, the partition was recursively marked as inmutable and later unmarked but the practical result was an append only mode just for that hard drive, even when no flags, then as you can notice on the routine, the result of creating a file there is inhability to remove after creation.
Last edited by Automath (2018-07-09 22:27:59)
Offline
I hate these mysteries!!
Offline
how do I list directory attributes?
Offline
The thread is solved, according to your first post, but you are still bumping it? Don't do that:
https://wiki.archlinux.org/index.php/Co … ct#Bumping
Closing
Offline
Pages: 1
Topic closed