The root user of Linux doesn't have permission to read/write a regular file, unless all users have permission to read/write this file, like below:
drwxrwsrwx ....... file_name
However the owner of the file can still read/write this file.
AND:
0) not the problem of execution, just read/write
1) not the problem of device because regular user can read/write it.
2) the result of command id
:
uid=0(root) gid=0(root) groups=0(root)
so I don't think it's the problem of group.
So what other problems could be?
drwxrwsrwx ....... file_name
and the seventh letter (s
instead of-
orx
) isn't a typo, then thes
means aSUID
Bit is set -> S**(et) **U**(ser) **ID on execution. This means that other users can execute*file_name*
with the same permissions as the user who owns*file_name*
. But asroot
is above all users, it should be able to read the file. Guessing that you are on a GNU/Linux system: What message do you get when trying to read this file asroot
user? Also: Please describe how you do log in asroot