Hi Connor,
Welcome to linux, and congratulations!
It seems to me that the E212 error might be caused
by an issue that's very, very typical for newbies:
"permissions".
Linux files can be configured to permit certain
users to read, write or execute them.
You should be able to see who's allowed to write
to this file by doing something like
$ ls -l /directory/subdirectory/filename
and then changing the permissions with a command
like
$ chmod 777 /directory/subdirectory/filename
Here's the big but.
But, if you haven't done so already, I suggest
studying linux permissions first.
A short and sweet introduction is at
http://www.ahinc.com/linux101/permission.htm
You'll need to know it.
Thanks,
Kingsley
On 12/01/08 18:47, 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
>> --
> Conor
>>http://macaoidh.name> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/
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!