Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Accessing older SMB servers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Accessing older SMB servers
Authored by: epicurean on May 27, '05 10:04:11AM

I followed the steps. But, how exactly to I save this entry in vi?

I should know better than to mess in things I'm not 100% familiar with. But I have this exact encrypted password issue and am on my own as far as resolving it.

It would be helpful if someone was willing to detail out the entire process. Including how to delete the nsmb.conf file if I happened to have screwed it up! (which i probably did).



[ Reply to This | # ]
10.4: Accessing older SMB servers
Authored by: attackwolf on May 27, '05 04:31:32PM
Ouch! Good point, the parent post probably should have used a different text editor.
Try using pico in stead of vi. Pico used to be installed with OS X and it shows you the basic commands right at the bottom of the screen. (control-o to save and control-x to quit)

But, as to your question about vi. Vi works in two modes, insert mode where anything you type appears on the screen and edit mode where everything you type is a command.

So, to quit vi after you've typed your stuff, press the escape key to switch to edit mode. (press the letter i to switch back to insert mode if you desire)

Once in edit mode, type :wq

Yes, that's right, you need the colon followed by the w to save followed by the q to quit.
OR
type ZZ

Yes, that's two capital Z's without any colons. That command saves and quits as well.

(One last note about :wq vs ZZ is that :wq will show up at the bottom of the screen because typing : enters a 'command line editing' mode while typing ZZ will just save and quit without showing you anything. )

But like I said, if pico is available use that. I used pico for several years with OS X and other unix/linux os's until I came to my current job where I was told I should learn vi, and it's a great program, but if you don't need a powerful text editor, stick with pico.

To delete the nsmb.conf file type

cd /etc
sudo rm nsmb.conf


Again, to anyone reading this, please note that pico is GOOD. And, nsmb.conf has the letter 'N' in front. (Not that I know what the nsmb.conf file is, but I do know that you wouldn't want to delete your smb.conf file when you meant your nsmb.conf file)

To anyone who wants to learn more about vi, the version installed on mac os x jaguar and newer is VIM. So go to www.vim.org and look around. vi is the old school program, while VIM is Vi IMproved, and improved it is, with lots of neat plugins and features.

[ Reply to This | # ]
10.4: Accessing older SMB servers
Authored by: epicurean on May 28, '05 05:04:42PM

Thanks attackwolf. You are right, pico - for the novice anyway - was much easier. Worked like a champ.

Turns out I must not have really been successful creating the nsmb.conf file with vi anyway. When I went to delete it as you describe, it indicated no file existed.

I'm thinking that because I didn't know what the heck I was doing (again, stupidly dangerous!) I just quit the terminal when I was in vi. Hopefully, that approach didn't leave any additional residue behind (like some tmp file or something).



[ Reply to This | # ]