LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-04-2003, 10:59 AM   #1
homerz
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
How to login as root?


I want to edit a file that only the root can edit. what is the complete command that i can enter from a terminal so i can login as root and be able to edit the file? Thanks.
 
Old 11-04-2003, 11:02 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
When you're logged in as a normal user, type su. You will be prompted for root's password. You'll see the prompt change from a $ character to # to indicate you're in root mode when you have entered the password. When you're done doing what it is you want to do, type exit. You will see the prompt change back to a dollar sign to indicate you're back to being your normal self.

Håkan
 
Old 11-04-2003, 11:37 AM   #3
tmillard
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
If you have Midnight Commander, you may use Control+C (I think.)
If not you may select it useing the F9 key to get the drop down menus to get to the command.

If you dont have MC then you will have to use somthing like chmod o-w /file/to/protect
 
Old 11-04-2003, 11:37 AM   #4
tmillard
Member
 
Registered: Sep 2003
Distribution: Gentoo
Posts: 74

Rep: Reputation: 15
If you have Midnight Commander, you may use Control+C (I think.)
If not you may select it useing the F9 key to get the drop down menus to get to the command.

If you dont have MC then you will have to use somthing like chmod o-w /file/to/protect

Take a look at <B>man chmod</B>
 
Old 11-04-2003, 09:33 PM   #5
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
you probably need to type su -, it will give you full root access.
 
Old 11-04-2003, 11:43 PM   #6
DreamTrout
LQ Newbie
 
Registered: Nov 2003
Location: Niagara Falls (circa 1700)
Distribution: Sirius 2.240
Posts: 1

Rep: Reputation: 0
Angry YDL newbie @log in

:newbie: Just picked up a mac G3 with YDL 3.0 pre-installed on a partition with OS 9.2 using BootX. When linux is chosen, I'm so green that after two days of searching I can't seem to have a clue as to how to get pass the login and password startup screen. No notes as to how or if installer gave a password for the root user......any help appreciated.

Rather be fishin'
Thanks,

DreamTrout

Last edited by DreamTrout; 11-09-2003 at 01:06 PM.
 
Old 11-05-2003, 01:57 AM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Re: How to login as root?

- Retarded Response -

Last edited by Azmeen; 11-05-2003 at 01:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

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

All times are GMT -5. The time now is 03:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration