Quote:
Originally Posted by jschiwal
What is the filesystem for the partition that contains the directory.
Double check the permissions of the directory, or whether it's a symbolic link to another directory.
If the directory is an NFS mount, rootsquash can prevent writing by root.
Check for attributes (lsattr). Check for ACLs (getfacl). Check for selinux restrictions. (ls -Z)
If the filesystem is corrupt, it might be initially mounted RW but when you try to write to a bad area, change to RO.
|
could not find any sym-links to my directory
output of ls -ltrh
drwxrwxrwx 2 root root 4.0K Aug 31 10:14 <dir-name>
output of df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vdd1 504G 5.8G 473G 2% /mnt/storage
output of fdisk -l
Device Boot Start End Blocks Id System
/dev/vdd1 1 66837 536868171 83 Linux
lsattr <dir-name>
------------- <dir-name>/aaa
-------------<dir-name>/bbb
-------------<dir-name>/cccc
------------- <dir-name>/abxxx
------------- <dir-name>/xyz
Note that aaa,bbb,cccc,abxxx,xyz are the files that were already present in my directory from where I copied.
Now I cant futher create files or directories
getfacl <dir-name>
# file: <dir-name>
# owner: root
# group: root
user::rwx
group::rwx
other::rwx
ls -Z <dir-name>
-rwxr-xr-x root root system_u
bject_r:unlabeled_t aaa
-rwxr-xr-x root root system_u
bject_r:unlabeled_t bbb
-rwxr-xr-x root root system_u
bject_r:unlabeled_t cccc
-rwxr-xr-x root root system_u
bject_r:unlabeled_t abxxx
-rwxr-xr-x root root system_u
bject_r:unlabeled_t xyz