Originally Posted by skinney
totally new to linux
i'm running ubuntu server 12.4 on an old PC
i'm trying to make a home server
i've been tying to follow...
but i notice when i try and execute commands from these howto's they dont work. i copy them letter for letter but i still get errors.
also when i edit the smb.conf and exit with "ZZ" it leaves a swp file and when i try and open it again i get a message the the swp file is there.
ps shouls i have posted this in the server section?
This is a guess because you don't say specifically which file you are trying to edit, but if ZZ fails to work in Vim, it maybe because you started vim in your user account, and the file you are trying to change is for root only, ie you do not have permission to write to that file. Do
ls -l /path/to/file
~ $ ls -l /etc/fstab
-rw-r--r-- 1 root root 699 Oct 9 08:12 /etc/fstab
If you are not logged in as root, vim will open this file as read-only, and will let you make changes in its buffer
after issuing this message
W10: Warning: Changing a readonly file
but it will not write your changes to the file itself, instead producing this dialog
File permissions of "fstab" are read-only. ZZ
It may still be possible to write it.
Do you wish to try?
"fstab" E212: Can't open file for writing
Press ENTER or type command to continue