LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2003, 05:05 AM   #1
sharathkv
Member
 
Registered: Jul 2003
Distribution: HP-UX
Posts: 35

Rep: Reputation: 15
How do I change "fstab" to Write/Edit Mode?


Hi,

I am unable to edit the "fstab" of /etc/fstab.

I logged in as root and tried to change the permissions of
"fstab" in the following sequence:

i) cd ..
ii) cd ..
iii) cd etc
iv) chmod -r fstab ( I am not sure whether this synatx is correct)

But I got a "permission denied" message.

1) Do I have to login as "root" to add an entry into
the "/etc/fstab" or can I do it logged in as a normal user.

2) Does the RedHat OS keep a separate "fstab" for each user
or does it access a single file for all users?

Here I am basically trying to make an entry into "fstab" so that
the RedHat OS will detect my Windows OS partition as well.

ThankYou
Sharath
 
Old 07-29-2003, 05:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) root only. that's the point of root existing, so people can't bugger around with things like that.

2) no, that's nonsense i'm afraid. completley wrong scope. fstab is not related to user accounts in anyway at all.
 
Old 07-29-2003, 05:11 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
2. A central file, but it can contain data to allow users to mount/umount and use a certain device.

Cool
 
Old 07-29-2003, 06:09 AM   #4
t_caplette
LQ Newbie
 
Registered: Jul 2003
Location: Victoria Britsh Columbia
Distribution: Ydl, Redhat, a bit of slack.
Posts: 13

Rep: Reputation: 0
i found to edit fstab, all you need to do is open the path to fstab in your browser. Now you are looking at fstab now what you want to do is open it in a text editor and make your changes. Save the changes and reload fstab. Hopefully that helps you out.
 
Old 07-29-2003, 08:52 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
hi Sharathkv

As Root - use an Editor from the Command line.

Open a terminal

su
root password

vi /etc/fstab

Second - No - there's only 1 filesystem table file - /etc/fstab
 
  


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
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-07-2005 12:44 AM
Trying to use "vidcontrol" to change resolution in console mode sether *BSD 2 09-10-2004 02:46 AM
RH9 "remounting root filesystem in read-write mode" ChrisHax Linux - Newbie 3 07-23-2004 10:54 PM
Why I can only write in mounted windows partition in "su" mode Allen T Linux - Software 5 02-18-2003 02:10 AM

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

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