Solved

log in as a admin in red hat 8?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now