Conor Mac Aoidh wrote:
> Hi,
>> This is my first time sending an ilug email. I am pretty much a complete
> newbe to linux. I just had a question as to using the VIM command. I am
> trying to use this to create a new file in a new directory. It keeps
> returning the error "E212: Can't open file for writing" and after googleing
> the error it turns out that I do not have enough privilages to do what I
> want to do. I am logged in as root. Does anyone know how I can get the
> privileges that I need? Or can anyone recommend another method of achieving
> what I want do do - as i'm not sure if VIM should even be used for this
> purpose!
>> Thanks
>
Hi Conor,
perhaps the file or directory should not be written to by the user that
you are at this point.
This line of thinking gives me two questions:
What is the result of you typing "id" without the quotes.
What is the file and in what directory do you want to save it?
What distribution of GNU/Linux are you using?
{/flame bait}
Welcome to the camp of there are many ways we can do many things, if you
chose one way that is fine, there may be better ways also, that is also
fine.
Regards,
Paul O'Malley
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!