LinuxQuestions.org
Review your favorite Linux distribution.
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 09-01-2008, 12:37 PM   #1
Redbug
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, 12:45 PM   #2
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 302

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, 02:08 PM   #3
PTrenholme
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, 02:51 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,765
Blog Entries: 27

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

NAME
       su - change user ID or become super-user

SYNOPSIS
       su [-] [username [args]]

DESCRIPTION
       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;

Code:
excerpt from 'man fstab'
NAME
       fstab - static information about the filesystems

SYNOPSIS
       #include <fstab.h>

DESCRIPTION
       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
       thing.
'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, 03:10 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

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


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

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

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