Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3560

General Questions • How do you change the permissions of a file exactly?

$
0
0
I am trying to read the boot log file and I don't have permission.
I have read several "manuals" and they are VERY vague as to how to write the line Exactly.
So, I tried to use chmod but messed up some how.

The file in question is /var/log/boot.log.
I tried "sudo chmod -rw-r--r-- /var/log/boot.log" and ended up making the file ----------
next I tried "sudo chmod +rw-r--r-- /var/log/boot.log" and ended up with --w-------
after more reading I tried "sudo chmod a=rw-r--r-- /var/log/boot.log" and ended up with --w--w--w-

What is the correct line to get it to be -rw-r--r--?

Thanks.

Statistics: Posted by Noidly1 — 2025-01-11 01:39 — Replies 0 — Views 8



Viewing all articles
Browse latest Browse all 3560

Latest Images

Trending Articles



Latest Images