Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: xor on April 27, 2020, 08:08:09 AM

Title: How to grant full access authorization. (for all folders and all files)!?
Post by: xor on April 27, 2020, 08:08:09 AM
How to grant full access authorization. (for all folders and all files)!?
Title: Re: How to grant full access authorization. (for all folders and all files)!?
Post by: Rich on April 27, 2020, 08:45:28 AM
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:
Code: [Select]
sudo editor filename
If you need to copy a file to a directory that doesn't belong to you:
Code: [Select]
sudo cp -a filename directory
If you need to make a subdirectory in a directory that doesn't belong to you:
Code: [Select]
sudo mkdir directory/subdirectory
If you need to perform several commands on files or directories that don't belong to you:
Code: [Select]
sudo su

# Perform your commands

exit
Title: Re: How to grant full access authorization. (for all folders and all files)!?
Post by: xor on April 30, 2020, 03:19:44 AM
Code: [Select]
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:
Code: [Select]
sudo editor filename
If you need to copy a file to a directory that doesn't belong to you:
Code: [Select]
sudo cp -a filename directory
If you need to make a subdirectory in a directory that doesn't belong to you:
Code: [Select]
sudo mkdir directory/subdirectory
If you need to perform several commands on files or directories that don't belong to you:
Code: [Select]
sudo su

# Perform your commands

exit
Title: Re: How to grant full access authorization. (for all folders and all files)!?
Post by: Rich on April 30, 2020, 07:46:51 AM
Hi xor
Code: [Select]
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.