Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-10-2007, 10:19 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 16

Rep: Reputation: 0
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.


Last edited by abuntu-handicapped; 09-10-2007 at 10:36 AM.
Old 09-10-2007, 11:01 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
Old 09-10-2007, 11:37 AM   #3
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
sudo chmod a=rwx /file/name
Old 09-10-2007, 11:12 PM   #4
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
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.
Old 09-13-2007, 09:11 AM   #5
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
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...)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this pc powerful enough? trapperjohn117 Linux - Hardware 5 01-11-2007 04:54 PM
which powerful QT or GTKMM? Barq Linux - General 1 03-13-2005 12:39 PM
More powerful 'kill' chii-chan Linux - General 8 04-27-2004 02:16 PM
Powerful Linux for you...... avols143 Linux - Distributions 3 02-21-2004 04:16 PM
powerful magnets whansard General 3 05-20-2003 04:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration