LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want to be as powerful as root (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-to-be-as-powerful-as-root-583613/)

abuntu-handicapped 09-10-2007 09:19 AM

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

Hangdog42 09-10-2007 10:01 AM

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.

tommytomthms5 09-10-2007 10:37 AM

sudo chmod a=rwx /file/name

cojo 09-10-2007 10:12 PM

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.

DeusExLinux 09-13-2007 08:11 AM

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.