I think you are making things difficult for yourself here.
You should really be using
sudo instead of
root. Is there any reason you cant use
sudo chmod 777 /file/path/example.txt on the file will allow different users ‘read’, ‘write’ and/or ‘execute’ permissions on the file.
1st digit after chmod represents owner permissions
2nd is owners group permissions
3rd is other permissions
0 = No permissions
1 = Execute permissions
2 = Read permissions
4 = Write permissions
So you add up the numbers you want to make up the permissions for each user/group/other.
Dont know who ‘roo’ is i think you might have created him by mistake.
You probably wont be able to delete
root (Im not going to try) and you wouldnt want to. Lots of system processes run under
ps aux | grep root to see them) and you would kill all those processes in doing so. Most likely rendering your system useless.
Your user tj isnt
root. But he can access
root permissions via
sudo. So if you encounter a error that says ‘Permission denied’ or ‘This needs to be run as root’ or something to that effect then append
sudo to the front of the command, it will give your user
root permissions for that command/process. Using your locked files as an example you could do
sudo rm /locked/file.txt.
root is a user with full permissions. As default other users (like ‘tj’) dont have the same permissions, this is for security and to make them less likely to break something. But they can use
sudo to get those permissions for one off tasks.
Depending on the filesystem of your USB it might not support individual file permissions and you simply might not have mounted the filesystem with write permissions.
Im also not sure what you mean when you say ‘root missing tons of files’.