Results 1 to 10 of 13
hi guys,i am on the path to installin postfix,the stage where i am is editing /etc/fstab. ive added usrquota and grpquota nicely,thats when it hit me...im a little embarased to ...
- 06-12-2009 #1Just Joined!
- Join Date
- Jun 2009
- Posts
- 9
[SOLVED] /etc/fstab walking on thin ice here guys!!help please!
hi guys,i am on the path to installin postfix,the stage where i am is editing /etc/fstab. ive added usrquota and grpquota nicely,thats when it hit me...im a little embarased to say the least but... how do i save these changes that i have made to /etc/fstab and exit the edit session,or any other file for that matter like main.cf etc. and then how do i delete the swap files that seem to be running in edit sessions???
please help!
- 06-12-2009 #2Just Joined!
- Join Date
- Jul 2008
- Location
- Kenya
- Posts
- 26
Hello, For you save your changes in /etc/fstab and main.cf, you must have root priviledges. I advice you copy the content to gedit/kedit. Then sudo or su and then reopen the files with root priviledges to save.
- 06-12-2009 #3
Do you have GUI interface,if so as collo said use Gedit or other text editor
If you are (command line) using vi editor, open the file using first take a backup
(you need root access for below opertions)
then open viacp /etc/fstab /etc/fstab_bkup
press 'i' you should now get something like "--INSERT--"vi /etc/fstab
now edit the contents .
After editing ,Press "Esc" key
then press :x (it's colon and x)
for more info.
man vi
No need for that..no one knows everything in this world :)im a little embarased to say the- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 06-12-2009 #4Just Joined!
- Join Date
- Jun 2009
- Posts
- 9
root
actually i am using root priviledges,what i did was i took an old machine tht was lying around the office and used it as pilot installation to see how it all goes so its not the actuall server but im doing a test run so to speak.i was following steps i found on this site "how to forge,The Perfect Server Fedora 9 Page 4 ",so now i need to save those changes but dont know how to do so!
- 06-12-2009 #5Just Joined!
- Join Date
- Jun 2009
- Posts
- 9
im using the commandline so let me try tht!
- 06-12-2009 #6
are you refering to
above part?Edit /etc/fstab and add ,usrquota,grpquota to the / partition (/dev/VolGroup00/LogVol00)
vi /etc/fstab
if you want to close that file.
use Esc and : and x ,
that will close and exit from vi and you will get command line (#) again- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 06-12-2009 #7Just Joined!
- Join Date
- Jun 2009
- Posts
- 9
fantastic!!
fantastic,the commandline method worked ,thanx!so tell me,is this how i save any edits in commandline?
- 06-12-2009 #8Just Joined!
- Join Date
- Jun 2009
- Posts
- 9
fantastic!!
the commandline method worked wonderfully!!im relieved!so tell me is this how i save any edit sessions?also how do i delete the numerous swap files i now have due to my lack of knowledge?
- 06-12-2009 #9Just Joined!
- Join Date
- Jul 2008
- Location
- Kenya
- Posts
- 26
As Lakshmipathi pu it across so well. That is how you save you work under vi editor.
Note that different commandline editors have different saving methods.
- 06-12-2009 #10
I found this simple link
vi in 10 minutes - part 1
First find the files using
ls -la
Now remove required file using rm command in interactive mode.
This will prompt you to delete or not?rm -i file.txt
if you use
It won't prompt you for deleting.rm -rf file.txt
Beware undeleting files can't be easy in Linux,you would need file protection tool like giis.(blowing my own trumpet lol
)
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


