Text-editing options:
sudo nano /etc/smb.conf
sudo vim /etc/smb.conf
sudo emacs /etc/smb.conf
I'd create a copy first, particularly if you don't have a full backup of your disk.
sudo cp /etc/smb.conf /etc/smb.conf-save
If you're just getting going with a shell text editor, then you'll probably want to use
nano and then work your way to
vim or
emacs or (if you prefer a GUI editor) have a look at
textwrangler and its text-mode capabilities, or at
macvim and its GUI interface.
Using many of the GUI-facing editors and saving out RTF files and other such (and text files can be encoded in many different ways) can lead to configuration file corruptions and problems with tools or even with booting the operating system.
Using Textedit.app is a common way to corrupt Unix-layer files, too.
So Mac os saves the sharing folder settings in a .plist file in /Users/TechnoPhil/Library/Preferences?
Off-hand, I haven't needed to look at the details of the implementations underneath the
serveradmin tool and Server Admin in this area.
And FWIW, I would not expect to see the server-wide share settings in /User. I'd expect to see those over in /Library. The [file and directory structures used by Mac OS X|http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFil eSystem/BPFileSystem.html] are a superset of those found on Unix and POSIX platforms.
Mac OS X and Mac OS X Server make heavy use of plist files, yes. This is tied into the
plutil tool, as well as the
defaults command, and at various tools that are part of Xcode including Property List Editor.app and such.
If you're coming over from Linux and want to know more about the platforms, then read the manuals end-to-end for a high-level introduction to the norms and expectations, and then have a look at Amit Singh's Mac OS X Internals book, then start Googling around for details and procedures.
It can also help if you make an effort to forget a whole lot of what you know about Linux administration, particularly around how management is based on editing command files. Mac OS X works differently, and is managed entirely differently than Linux.
Put another way, you look likely to be headed for a learning experience here. Have fun, but definitely have a backup first.
Shell commands are unforgiving of errors. Shell commands with
sudo are particularly unforgiving. Have a backup. Or three.