Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-01-2008, 01:37 PM   #1
LQ Newbie
Registered: Aug 2008
Location: Stockton, California, USA
Distribution: debian
Posts: 10

Rep: Reputation: 0
how do you edit fstab

What steps are used to edit fstab?
su is an issue.
Old 09-01-2008, 01:45 PM   #2
Registered: Sep 2007
Location: Folsom, California
Distribution: Ubuntu, Mint, Debian, Suse
Posts: 305

Rep: Reputation: 32
Well you have to have privileges. Either become root or use sudo.
Of course then you'll likely have to be root to edit sudo to allow your user to use sudo.

Why is su an issue?

I just su root
then vim /etc/fstab
Old 09-01-2008, 03:08 PM   #3
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
What is your su issue?

For what reason do you wish to edit /etc/fstab? (The point in this question is that there may be some other way to achieve your objective -- whatever it is -- which does not require any change to fstab. For example, the fuse (File system in User Space) system may let you do what you want to do without your needing any root access.)
Old 09-01-2008, 03:51 PM   #4
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,917
Blog Entries: 28

Rep: Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208Reputation: 2208
Originally Posted by Redbug View Post
What steps are used to edit fstab?
su is an issue.
excerpt from 'man su'

       su - change user ID or become super-user

       su [-] [username [args]]

       su is used to become another user during a login session. Invoked with-
       out a username, su defaults to becoming the super  user.  The  optional
       argument  -  may be used to provide an environment similiar to what the
       user would expect had the user logged in directly.
Is the issue that you can't become root or that you don't know how?

In order to make changes to the '/etc/fstab' you must be root and use a text editor to edit the '/etc/fstab' file;

excerpt from 'man fstab'
       fstab - static information about the filesystems

       #include <fstab.h>

       The  file fstab contains descriptive information about the various file
       systems.  fstab is only read by programs, and not written;  it  is  the
       duty  of  the system administrator to properly create and maintain this
       file.  Each filesystem is described on a separate line; fields on  each
       line are separated by tabs or spaces.  Lines starting with '#' are com-
       ments.  The order of records in fstab  is  important  because  fsck(8),
       mount(8),  and umount(8) sequentially iterate through fstab doing their
'fstab' is a static file of information that should only be changed by the 'superuser' or 'root'. If you would provide us with more information as to what you are attempting to do then we could possibly direct you.
Old 09-01-2008, 04:10 PM   #5
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,661
Blog Entries: 56

Rep: Reputation: Disabled
In the terminal:
gksu gedit /etc/fstab
Easy, huh?


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
fstab not edit-able? lefty.crupps MEPIS 1 06-06-2005 06:36 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 12:30 PM
fstab edit craigers Linux - Software 15 12-03-2004 07:02 AM
Help me edit my fstab Slovak Slackware 3 11-26-2004 11:12 AM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 11:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 AM.

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