Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: xor on April 27, 2020, 08:08:09 AM
-
How to grant full access authorization. (for all folders and all files)!?
-
Hi xor
How to grant full access authorization. (for all folders and all files)!?
You don't.
If you need to edit a file that doesn't belong to you:
sudo editor filename
If you need to copy a file to a directory that doesn't belong to you:
sudo cp -a filename directory
If you need to make a subdirectory in a directory that doesn't belong to you:
sudo mkdir directory/subdirectory
If you need to perform several commands on files or directories that don't belong to you:
sudo su
# Perform your commands
exit
-
sudo chown -R username:username /*
does this work! ?
Hi xor
How to grant full access authorization. (for all folders and all files)!?
You don't.
If you need to edit a file that doesn't belong to you:
sudo editor filename
If you need to copy a file to a directory that doesn't belong to you:
sudo cp -a filename directory
If you need to make a subdirectory in a directory that doesn't belong to you:
sudo mkdir directory/subdirectory
If you need to perform several commands on files or directories that don't belong to you:
sudo su
# Perform your commands
exit
-
Hi xor
sudo chown -R username:username /*
does this work! ?
On most files, yes.
On loop mounted extensions (/tmp/tcloop) and possibly a few others, no.
Blindly changing the ownership of all the files on the system may create other problems.
When sane people are bothered by a fly, they reach for a flyswatter, not a shotgun.