LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-15-2004, 11:12 AM   #1
Bomb187
Member
 
Registered: Mar 2004
Posts: 37

Rep: Reputation: 15
How do i access /etc/fstab as Root?


Ok, i installed Everything off the cd by choosing Install everything which was 5.3GBs, and i downloaded the mp3 support rpm btu the only thing i'm missing now is NTFS support. i just need to be able to play my mp3s from partition D which is NTFS and copy files from that drive to my linux drive. i don't need write access.

In MDK 9.1 they had a root terminal and a root explorer like program which was easy to config fstab. how would i write and save in the fstab file?
I try wriiting in it but nothing gets written. thanks!
 
Old 03-15-2004, 11:16 AM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
you have to open a text editor as root from a terminal. then make and save the changes.
 
Old 03-15-2004, 11:25 AM   #3
Bomb187
Member
 
Registered: Mar 2004
Posts: 37

Original Poster
Rep: Reputation: 15
how would i enable root in terminal? i try 'Login' then a new line would appear then i type 'root' then a new line appears, then i type my password. but i get a error mesange about wrong login.

Oh and how do i open a text editor threw a terminal?

Last edited by Bomb187; 03-15-2004 at 11:30 AM.
 
Old 03-15-2004, 12:48 PM   #4
Nytehawk
LQ Newbie
 
Registered: Mar 2004
Location: Northern Virginia
Distribution: Fedora Core 2
Posts: 29

Rep: Reputation: 15
Try this:

1) If you are in init 3 (multiuser terminal mode) do one of the following:
a) At the prompt, type su - root (include the hyphen). When prompted for the password, enter the password you provided when you first installed Fedora.

OR

b) press ALT and F2 (or F3,F4...F6) together. This will give you another virtual console. You should see the Login: prompt, where you would type "root". Then it will ask you for the password, and you would type in the password you provided when you first installed Fedora.

2) If you are in init 5 (X) do one of the following:
a) open a terminal window and follow step a above.

OR

b) press CTRL+ALT+F1 (or f2,f3...f6) together, then follow step b above. When you are done, press ALT+F7 to return to your X session.

Once you have established yourself as root, use vi or pico to edit your /etc/fstab. You should see some other lines in the file that will act as examples to help you configure the entry you need to add. At the prompt, type vi /etc/fstab and it will open the file with the vi editor. VI can be very annoying. You can navigate with the cursor keys, press i to enable insert mode, type your changes, press esc to recover from insert mode, then press :wq to save your changes.

Hope that helps.

Last edited by Nytehawk; 03-15-2004 at 12:50 PM.
 
Old 03-15-2004, 12:56 PM   #5
martina-cz
Member
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 40

Rep: Reputation: 15
Open the console (terminal), type:

1. su (you need to be root to edit fstab)
2. type su password
3. cd /etc (this will change the directory to /etc)
4. mc (this will open midnight commander)
5. find fstab
6. press F4 and edit the file
7. press F2 and save the file

Hope this helps :-)
 
Old 03-15-2004, 01:42 PM   #6
Bomb187
Member
 
Registered: Mar 2004
Posts: 37

Original Poster
Rep: Reputation: 15
great martina-cz it works. i can edit it, now i know how to do things in root threw terminal.

Nytehawk thanks, i'll also keep your directions in my notes.
 
Old 03-15-2004, 01:51 PM   #7
Nytehawk
LQ Newbie
 
Registered: Mar 2004
Location: Northern Virginia
Distribution: Fedora Core 2
Posts: 29

Rep: Reputation: 15
The su command will work, but you will not be fully logged in as root. su with the hyphen (su - root) will actually give you all the permissions of root. There are certain things you will not be able to do unless you are completely logged in as root.

Last edited by Nytehawk; 03-15-2004 at 02:02 PM.
 
Old 03-15-2004, 02:05 PM   #8
Bomb187
Member
 
Registered: Mar 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Ok thanks, I made a note of that,
 
  


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
[SuSE fstab] No write access pEeDy Linux - Newbie 7 10-11-2005 02:58 AM
cdrom access : fstab editing guide samael26 Slackware 2 08-17-2005 06:28 AM
fstab, mount and access rights... eliott_ness Linux - General 4 04-17-2005 02:59 PM
I can't access my windows drive as a user, only as root...fstab problems? DiZASTiX Slackware 14 12-29-2004 08:54 PM
fstab, harddrive access, etc kngharv Linux - General 1 02-21-2002 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:56 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