Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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 ...
  1. #1
    Just 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!

  2. #2
    Just 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.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    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)
    cp /etc/fstab /etc/fstab_bkup
    then open via
    vi /etc/fstab
    press 'i' you should now get something like "--INSERT--"

    now edit the contents .

    After editing ,Press "Esc" key

    then press :x (it's colon and x)


    for more info.
    man vi




    im a little embarased to say the
    No need for that..no one knows everything in this world :)
    - 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
    -------------------

  4. #4
    Just 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!

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    9
    im using the commandline so let me try tht!

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    are you refering to
    Edit /etc/fstab and add ,usrquota,grpquota to the / partition (/dev/VolGroup00/LogVol00)
    vi /etc/fstab
    above part?
    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
    -------------------

  7. #7
    Just 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?

  8. #8
    Just 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?

  9. #9
    Just 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.

  10. #10
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    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.
    rm -i file.txt
    This will prompt you to delete or not?

    if you use
    rm -rf file.txt
    It won't prompt you for deleting.
    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
    -------------------

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...