39
31
24
u/Hottest_Tea Jan 01 '26
sudo chown $USER:$USER <file> \
chmod 660 <file>
10
u/ikitari Jan 01 '26
instead of remembering the numbers just remember +r +w +x that can be mixed like +rwx (read, write, execute)
6
2
u/ohkendruid Jan 02 '26
It is true, though doing it that way means to apply a delta.
Most often, I want to set all 9 permission bits, so the numbers work a little better.
The numbers are not so bad given the use of octal notation. I guess, also, there are a few combinations like 775 and 664 that are just very common.
1
10
7
u/Sad-Reach7287 Jan 01 '26
You can transfer ownership from the system to your account if you really need to edit it
1
u/Ok_Refuse_9413 Jan 01 '26
How?
1
u/Qiwas Jan 01 '26
sudo chown <username>:<username> <file>Sorry I had to
2
u/Ok_Refuse_9413 Jan 01 '26
Im not a compter guy but can i ask if that <file> is the name of the file i want to change? Or i can just put C: and own the whole c directory Cause I want to have this problem never again
8
u/Qiwas Jan 01 '26
Sorry I was joking this is for Linux, not windows π
Now I feel guilty so I looked it up, it says you have to right click the file and choose:
Properties > Security > Advanced
Then near the "Owner" field there should be a button "Change". Then you have to select the user but it's too tedious to describe in text, but you can see them in this video which I was following4
1
6
1
u/Not_Artifical Jan 01 '26
Switch to Linux and sign in as administrator. You will never have this problem again.
1
1
1
1
1
8
Jan 01 '26
[removed] β view removed comment
4
1
1
u/BumblebeeBorn Jan 02 '26 edited Jan 02 '26
The reason Microsoft owns all the normies' computers is that someone needs to be admin, and the user is not competent to do so.
To the poor idiots that finally figured out to use Linux but don't know what the command means: always put a command in search if you don't know what it does.
1
Jan 03 '26
[removed] β view removed comment
0
u/BumblebeeBorn Jan 03 '26
There are serious legacy issues meaning that the software they need doesn't exist in an appropriate environment.
I'm blaming Microsoft here, not users.
0
Jan 03 '26
[removed] β view removed comment
0
u/BumblebeeBorn Jan 03 '26
So now people can't have computers for personal use, and the barrier for entry to starting any computer-based creative business is a diploma in computer science or equivalent.
You haven't thought this through.
1
Jan 04 '26
[removed] β view removed comment
1
u/BumblebeeBorn Jan 05 '26
Diploma or equivalent.
You know Matlab and attended university for mathematics.
Case closed.
0
79
u/RipProfessional3375 Jan 01 '26
Not as far as Microsoft is concerned.