Solved

Permission Denied woes.!!!

Posted on 2000-04-10
2
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

724 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