On 11/6/24 7:56 AM, ajh-valmer via tde-users wrote:
Hello,
since a longtime, in this directory :
/var/run/user/1000/
I have this sub-directory "doc" :
d????????? ? ? ? ? ? doc
Impossible to delete it.
What it is and happens ?
Sorry Andre for the diversion,
If you are still working on this, and you have run a fsck on the filesystem
and it's fine, then simply log in (or su) to root and fix the permissions on
the directory and file. I don't see the actual permission in the thread, but
as root, change the directory so it is read/write user and group readable,
e.g. minimum of 0750 and the same for the "doc" subdirectory.
You likely do not need to change the permissions on /var/run/user/1000/,
just confirm owner is rwx (read, write, execute). For directories the 'x'
executable bit controls the "descend into" permission, so even if you have rw
permissions on that dir but no 'x', your "doc" subdir will still be
borked.
So I would approach it like:
(1) ls -al /var/run/user/1000/
(confirm owner octet is rwx, if not chmod 0750 /var/run/user/1000/)
(2) ls -al /var/run/user/1000/doc
(what are the permissions now if you changed the parent perms)
(3) chmod 0750 /var/run/user/1000/doc
(repeat all the way down until you can read and verify all you need)
(4) if necessary, set the perms on doc to 0770 or 0777 temporarily.
If you don't get it solve in this manner, then update your post with the
output of:
# ls -al /var/run/user
# ls -al /var/run/user/1000
# ls -al /var/run/user/1000/doc
and we will go from there.
--
David C. Rankin, J.D.,P.E.