Solved

log in as a admin in red hat 8?

Posted on 2004-09-17
5
181 Views
Last Modified: 2013-12-06
I have windows background and just installed linux. I have  some hard time understanding the envirement here. For some reason, i am logging as a user but i dont have enough permission to install new applications that is why i need to log in as admin and to change my permission. How could i do this?
Thanks in advance...
0
Comment
Question by:Carl3003
[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
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
avizit earned 30 total points
ID: 12089845
1)you can logout and try logging in as  user "root"

2)also you can try the command

su


and then you should be prompted for the password (in some distros they have disabled the su command for normal users , in such cases you have to use the first method ,i.e logout and login as root
0
 

Author Comment

by:Carl3003
ID: 12089944
ok that worked and how do you change the user's pesmission. For instance i want to make users to have admin previledges
0
 
LVL 6

Assisted Solution

by:blkline
blkline earned 20 total points
ID: 12089986
No, you don't want to make users have admin privileges.  

What you want to do is use sudo to give them only the privs that they need.  If the machine in question is your own, then use log in as root when you need to do this.  Otherwise, check out the sudo command (man sudo) so that you can, from a regular user, gain temporary privilege to do what you need.  The nice thing about sudo is that it allows you to give granular privs, e.g.  userA can only run certain commands.

0
 
LVL 11

Expert Comment

by:avizit
ID: 12089995
you can make give the normal user write /execute permission in all directories and programs neede
but it is  "NOT ADVISABLE"  as when you have such privilege you can potentially destroy the system for example

doing and "rm -rf *" while you are on the '/' directory and you thought you were somewhere else..

hence it is good to let only the root have these privilege

you can "su" to root whenever you want to do install etc and be back as normal user for other things



0
 

Author Comment

by:Carl3003
ID: 12092524
i did this.. It works fine now..
Thanks
0

Featured Post

Independent Software Vendors: 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

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…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

623 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