Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
YES you would have to do an 'su -' in order to edit a file with those permissions. So, try this:
(enter root password when prompted)
Then try editing the file, putting back the ! in the first line.
If it is failing because the partition is mounted read-only, try remounting it like this:
mount -t <filesystem-type> -o remount,rw <device> <mountpoint>
This should make it remount as read-write so that you can edit it. To find out what <filesystem-type>, <device>, and <mountpoint> it is using already, just type the 'mount' command by itself and you can find out. This will also tell you how it is mounted: 'ro' is read-only 'rw' is read-write.
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Maybe I'm giving a very stupid suggestion here, but some files say they are read-only, even when logged in as root. when using vi as your editor, and you just type :wq it will mention the fact that it's read-only.. (Yes even as root!) No worries, edit the file and end then with :wq! (Exlamation point just overrules the r-o option....)
I want to thank everyone for helping me and also advise what worked!!!
None of the above worked other than booting from CD and using the rescue option and then typing chroot /mnt/sysimage. I was then able to edit the file and reboot.
Just one question, when the server rebooted, i noticed that when it came to mount points it said there were no mountpoints. Is this anything to worry about? However, i can get into my server now just fine and it is working!!!