LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2004, 03:02 PM   #1
PhantomGhost
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Question complete newbie...how do you log in as root?


Just now got Mandrake linux 10.0....i am slowly figuring this thing out, I have never used linux before, but I dont know how to log on as root, can someone please tell me how? Thanks

also, can you make it so that your main user name has root abilities? I have gotten the error that I dont have permissions to do several things, its a bit annoying, Thanks for the help anyone.
 
Old 05-15-2004, 03:12 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you use the Mandrake Control Centre you can install the gdm package and then choose that as your display manager. That will allow you to login as root. It's a bad idea to log in as root unless you really need to. As you've found out, there are strict limits to what a normal user can do and once you've got your system sorted out that's a good thing. It's too easy to screw things up when you have the power to do anything so check your brain is engaged before you become root. To just do simple things it's easy to become root in the terminal with
su
password
To edit a text file use
gedit /path/to/file
or
kate /path/to/file
 
Old 05-15-2004, 03:13 PM   #3
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
to log in as root open the console
type su
and then the password
 
Old 05-16-2004, 12:57 PM   #4
Charlie Chan
LQ Newbie
 
Registered: May 2004
Location: Byan, Texas USA
Distribution: Fedora 1 and it updates
Posts: 20

Rep: Reputation: 0
Start tab on Task Bar > System Tools > Terminal - enter "su -". The prompt will change from a $ to a # sign. You will have to enter the Admin password but it will not show what you type will doing so.
 
Old 05-16-2004, 02:10 PM   #5
Squall
Member
 
Registered: Jan 2004
Location: The land of the free and the home of the brave
Distribution: Slack 10
Posts: 239

Rep: Reputation: 31
I'd like to reiterate something: not only is it a bad idea to always use root, it's A TERRIBLE one too. Say, you wanted to delete everything on your floppy in root by typing "rm -rf /mnt/floppy" but you accidently press enter when you type the "rm -rf /" part. Kiss your system goodbye, because the essential files are already deleted. I recomment doing this command

Code:
echo "alias rm='rm -i'" >> ~/.xinitrc
this will acsk you permission when deleted files.

In addition to su, you could type
su -c "command"
that will do one command after your password and then go back to the normal account

There is also "sudo" but I never bothered to learn it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie > root can log in to a gui, users suddenly can't Influx Slackware 18 10-09-2005 10:09 AM
Where can I get a 'Complete' Boot Log? rickh Debian 5 05-31-2005 03:29 AM
ATI (StartX fails to start) complete log Killkenny Mandriva 1 02-09-2005 05:39 PM
Newbie screwed up and can't log as root anymore chumley115 Linux - Software 3 03-12-2004 02:20 PM
Help Please..complete newbie. scoops98 Linux - Software 7 11-27-2001 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration