Solved

log in as a admin in red hat 8?

Posted on 2004-09-17
5
180 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

738 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