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.
I am trying to compile a program, and I need to modify the Makefile. However, I cannot modify the Makefile using emacs, because it keeps saying that the Makefile is READONLY. I have changed the permission using 'chmod 777 Makefile', but somehow this does not have an effect (the 'ls' command show that the Makefile is writable after I did the chmod).
Log in as root, check your user groups for your primary login id and add/subtract groups you need/don't need. Then check the ownership of the file, make sure you have access to it as main user. Log in as yourself and whack away.
Frosty man, thanks for your reply.
The file is owned by root, and even though I logged in as root, I am still unable to modify the file. I must have missed something here, it's kind of weird that I was able to play with the file permission but not able to modify it.
Tar can keep permissions. So whatever permissions they tarred it with might be what you un-tar it with. It's weird that you can't change it even as root. The only thing I can think of is that a process is using it and hence blocking it. But why would that be for a makefile? I dunno. Something's definetly wrong when root can't edit a file because it's read only. You can try changing the ownership to root or whatever else. Though I can't imagine why that would help since permissions SHOULD be irrelevant for root. Weird. Have you tried deleting it and extracting it again?
Thanks for all the reply,
I've tried delete the file, even the tar-file, and download it again from the internet, still I was unable to edit. I've changed the ownership also, still didn't work. I'm just going to leave it alone for right now, and get back to it again later.