samba issues
Hi
I am trying to set samba up and following this guide http://www.bilot.com/?p=510 i'm on vi /etc/samba/smb.conf but it has gone horribly wrong. I click ENTER get into insert mode put in the content and then hit ESC, followed by :wq but I'm getting the following error message /etc/samba/smb.conf'' E212: cant open file I think I might have accidently deleted, or removed the file or summat, actually I have no idea because I can't seem to quit at all!! Any help is greatly appericated!! |
Quote:
Try to use nano or any humanly usable editor. Vi is evil :-) Also don't forget that some configuration file cannot be altered without being a sudoer. I mean : type sudo before the command to become root. |
Quote:
In regards to the nano comment, that is your opinion and shouldn't be stated as fact. I personally hate nano and only do my file editing in vi/vim. You could also use emacs as it can be a bit more user-friendly for a first time user. However, all of these will do the job. Here is a halfway decent vi cheat sheet I found by doing a quick google. I have one that I created and have it hung up on a wall next to my desk as remembering all of it would make me crazy. http://media.smashingmagazine.com/wp...-01-large2.jpg |
It does indeed sound like a permissions issue.
You'll need to get into root user either directly Code:
su - Code:
sudo su - Always backup a file before editing. As above, editors are a matter of personal choice, although I will point out that vi has been the default guaranteed-to-be-installed editor on just about all forms of *nix for years if not decades now (inc rescue situations). Well worth learning the basics just in case your favourite other editor is not available. Personally I'm happy to stick with vi/vim .. |
I managed to escape the program eventually, I had issues with the firewall on samba so i have turned it off while I get it up and running. I have created a samba user called rob and now on my windows 7 machine i'm putting in \\192.168.215.162\rob comes up with the windows login and tell me to enter the password which I do but nothing happens just tells me that the password is wrong any ideas??
|
Did you enter the password into smbpasswd?
The most helpful Samba reference I have found is Samba by Example. |
Okay I realised I didn't have selinux set to disable, I have now done this restarted samba and it works. By this I mean I saved a file test.txt with test in notepad on windows to my linux machine. I then opened in linux ls -la vi test.txt and inserted a few more lines of rubbish and opened in notepad. All works beautifully!!
However, I did the follow command ln -s /var/www httpd To symbolically link the /var/www file with a new folder called httpd however I cannot access this via windows any ideas??? |
All times are GMT -5. The time now is 08:39 AM. |