I want to be as powerful as root
Hi All,
Can anyone tell me how i can give myself the same 'powers' as root from the terminal? I have already tried using the 'Users and groups' from administration but didnt seem to work Im programming something and cant compile and run cos it keeps saying i dont have permissions for the one file. Thanks |
Access to a file should be handled through that file's permissions, not by becoming root. Care to elaborate a bit on the problem?
Other options would be using su to become root, or sudo to give root permissions to a specific command. However, it is probably worth looking at the file permissions first. |
sudo chmod a=rwx /file/name
|
Hangdog is right. You should try to fix your problem on the file permission level first. Running personal program as root is a very bad idea. You can crash your system. Provide us more detail of your problem and we will try to help you solve your problem.
|
is it permissions for that file, or what the file is trying to do. If a program you are compiling is accessing a protected directory (one a user does not have permissions for, kernel source and whatnot), then you have to use su -. If it's just the file you are trying to run, then it is a permissions error. A chmod or chown could help you out (depending on if you user owns the file or not...)
|
All times are GMT -5. The time now is 08:52 AM. |