Solved

Permission Denied woes.!!!

Posted on 2000-04-10
2
327 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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