Solved

Permission Denied woes.!!!

Posted on 2000-04-10
2
328 Views
Last Modified: 2010-04-20
I am getting "permission denied" errors.  I want to change permission so that I can modify files, LILO etc...  I use redhat 6.1, the gnome desktop.  I am home/hopkins, I need to be the root user.  how can I access as root.
0
Comment
Question by:Mustard
2 Comments
 
LVL 1

Accepted Solution

by:
philiph_elvis earned 50 total points
ID: 2702727
Ok, to become root you use the "su" command.  Open up a terminal window and type "su" at the prompt.  You will be asked for the root password, which you supplied when you installed Linux.

You can then change file permissions with chmod.  Some background: files have three sets of permissions: owner, group, and other.  Each set corresponds to a different set of people:

Owner: the person who actually owns the file
Group: anyone in the same group as the owner
Other: everyone else.

To view the permissions and ownership of a file, use "ls -l".  This will show you three sets of permissions.  'r' means read, 'x' means eXecute, and 'w' means write.  the three sets correspond to owner, group and other.

So, to allow the current owner to execute a fuile, you would do:

chmod u+x filename

You can change file ownership using "chown".

The root user has absolute ability to change all permissions and ownership.  Other users can only operate on files for which they have appropriate permissions  and ownership.  Obviously you can't just change the ownership of a file which belongs to another user (you can 'give away' a file to someone, however).

In general you want to do as little as possible as root, to avoid damaging your system (since the root user could erase any file, for instance).
0
 

Author Comment

by:Mustard
ID: 2704295
The answer pointed me in the right direction.  However, if i had no previous underestanding, it probably would not have worked.  I would have liked to see more "type this, then at this prompt type this, etc...."  overall, a good expaination.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
trouble on installing syslog-ng on CentOS 7 7 92
Check for Linux process in script 7 65
Can't connect to FTP 17 93
NTPD Client Port Usage 12 60
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question