I was wondering if I can do a tail on screen session files,
so I went into /var/run/screen/S-Username
.
This is what I found on that directory (using ll -l
)
XXXX@ubuntu:/var/run/screen/S-XXXX $ ll -a
total 0
drwx------ 2 XXXX XXXX 60 XXXX 5 09:42 ./
drwxrwxr-x 3 root utmp 60 XXXX 5 09:42 ../
prwx------ 1 XXXX XXXX 0 XXXX 5 09:42 3031.pts-1.ubuntu
I’ve tried googling for “Linux file permissions”,
and no one seems to mention the p
flag. Can anyone
tell me what the p
permission flag is?
P.S: Also, it seems that I can’t do cat
or tail
on that file either.
644 - owner can read/write, group/others can read only. Some directory permission examples: 777 - all can read/write/search. 755 - owner can read/write/search, others and group can only search.
Hence the -rwxrwxrwx above indicates that user, group, and other have read, write and execute permissions for that file or in other words: the owner of the file, anyone in the file's group, and everybody else has read, write, and execute permissions for that file).
To give the owner all permissions and world execute you would type chmod 701 [filename]. To give the owner all permissions and world read and execute you would type chmod 705 [filename].
The execute permission grants the ability to execute a file. This permission must be set for executable programs, in order to allow the operating system to run them.
p
stands for FIFO, a named pipe. So it's not a permission, but a file type (just like d
for directory).
You can't use cat
or tail
to get its content, because a FIFO isn't a regular file, it's used for inter-process communication.
It's not a permission. The p
means that it's a named pipe, not a regular file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With