• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux noob in need: Command to make a file

clicknext

Banned
I'm setting up samba on redhat9, and I need to create an "smb.conf" file. I can't figure out the command for it, though. It's such a stupid question that I can't seem to find it on google. Can someone tell me what it is? And is there a way to do it through GUI alone too?
 
you may need a little more experience in linux before jumping right into configuring samba. first to answer your question, you should use a notepad tool called "vi" but, i don't want to explain to you how to work it. search google if you're interested, an easier way is to type

cd /etc/
; this will put you in the samba config dir
pico samba.conf
; this will run pico, an editor like vi, on a blank file called samba.conf

what you should be doing anyway is using an example .conf file, which is included in your copy of samba. run vi (or pico) on that file and edit what you wish, and make sure it ends up in /etc/samba.conf (cp original.file /etc/samba.conf)
 
I've actually set up a very basic samba network going between 2 computers at a different place as a test, but that time I had samba installed with RedHat, so it made an smb.conf for me. This is the first time I've had to make a file that isn't a type listed in the KDE right click menu.
 
If you have installed Samba then there is already a generic smb.conf file located in /etc/samba. Choose your favorite editor and have at it, there are already explanations in the file as to what some of the options there do. If you would like to use a graphical configuration tool, try searching for webmin in google. I personally haven't used this but a friend of mine tried it and said it was easy. Third and finally, there is the web based interface that comes with samba called SWAT. It takes a bit of work to get it going but once you do I don't know of any tool that could configure samba more thoroughly than SWAT.

Oh, I hear there is a new tool in redhat 9 that is supposed to let you configure smb shares much easier but I haven't played with it at all. More of a CLI guy, although not that skilled at it.
 
pico is a nice simple text editor... or joe, and a couple others that are simple. You use crtl- plus whatever button to do stuff.

VI (or VIM, or Elvis) is a pain to use utill your are used to it, never had much experiance with emacs, but both those are realy advanced...


Um as far as making a smb config from stratch.. It's probably not worth it, just copy a sample config you think you like and then just edit it to fit your needs. Most configs have good comments to hint at what does what, and combined with the man files and online howto's it's not that hard to figure out 80-90 percent of the stuff you need to know without much hassle.

 
Back
Top