LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-02-2009, 08:48 AM   #1
txchien
LQ Newbie
 
Registered: Apr 2009
Location: HCMC-VIETNAM
Posts: 9

Rep: Reputation: 0
Can't login linux


Login Linux with message:
"Give root password for maintenance"

Reason:
I was to mount 2 partitions with 2 folders and add text in the file "/etc/fstab". I have a problem with save file:
E45: 'readonly' option is set (add ! to override)

Please help me.
Thanks.
 
Old 05-02-2009, 09:08 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
It looks like you're logged in as "you" and you're trying to edit the system file /etc/fstab; that file can only be written to by the super-user (root). To edit that file, you must know the root password and you can temporarily become root with the su or sudo utilities (both require the root password); e.g.,
Code:
su
Password: <type the root password>
# vi /etc/fstab
You exit su (or sudo) by typing Ctrl-D or exit at a command prompt.

If you do not know the root password, you will not be able to edit system files.

Whenever you attempt to edit a file that you do not own or a file that you do own but is read-only, the editor will want you to override with a "bang" (the exclamation point); in vi or its derivatives, you would enter
Code:
:w!
Again, however, if you do not own or have write permission, that will fail.

Take a look at the manual pages for su and sudo for more information.

Hope this helps some.
 
Old 05-02-2009, 09:51 AM   #3
txchien
LQ Newbie
 
Registered: Apr 2009
Location: HCMC-VIETNAM
Posts: 9

Original Poster
Rep: Reputation: 0
thanks "tronayne"
so, I mount 2 partitions with 2 folders and add text in the file "/etc/fstab", then auto mount when power-on.
I have a problem when login:
"Give root password for maintenance"
After, I login with password of root, in text mod:
"repair filesystem" #

now, I want login with text mod normal, example:
[root@localhost root#]
please help me!!!
 
Old 05-02-2009, 10:18 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
txchien:

What Linux distro are you using?

It seems your system is needing a system file check while mounted as read only.

To make things simple, if no important file is at stake, you better reinstall your Linux.

hope this helps. goodluck
 
Old 05-02-2009, 10:25 AM   #5
txchien
LQ Newbie
 
Registered: Apr 2009
Location: HCMC-VIETNAM
Posts: 9

Original Poster
Rep: Reputation: 0
I am using CentOS 5.0
 
  


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
Eee PC 1000 Linux Laptop - Just setup a login account for privacy, now can't login!!! martinkettle Linux - Laptop and Netbook 3 10-28-2008 05:21 AM
cannot login to FC3 linux but can login to FC2 linux and windows XP boot powah Linux - General 3 04-18-2006 02:53 PM
netware login using linux - one login? 686plus Linux - Networking 1 01-16-2006 09:24 AM

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

All times are GMT -5. The time now is 12:08 AM.

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