Comments on Setting Up A Linux File Server Using Samba

Setting Up A Linux File Server Using Samba I struggled for ages getting Samba to work reliably and made quite a few wrong turns on the way. I was just trying to set up a simple Linux file server to store music, photos etc. but eventually found a foolproof (probably) way to do it. The following works and has been tested several times on fresh installations. This is not meant to be a high security setup, all folders are accessible to everybody for read, write and delete. If you have stroppy teenagers who want exclusive access to their own area on the server, then you can use this as a starting point. A few simple changes would achieve that level of security but it is beyond the scope of this tutorial.

18 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anonymous

In your very first paragraph, you complain of Samba how-to's that only work with a specific distribution (which, moreover, don't mention this).

Then, the first line of Step 1 is to get Ubuntu.

One would have thought from the Introduction (which I frankly was excited to read) was that you were interested in creating a distribution-agnostic how-to.

You punked me. Well done.

By: Aizenmyou

Yeah, I stopped reading after "Download Ubuntu Server" and went to the comments.

Sure enough, LOL

By: jp

Same for me...from Download Ubuntu jump to coments section...LOL isnt there other than ubuntu fans.

By: Damon Hill

Ubuntu fans. I'm out of here...

By: Chris

Install updates :-

sudo apt-get update 

This command above does not actually install the updates, it just updates the repo cache.

The command below actually updates the distro packages.

sudo apt-get upgrade

You can also combine the two and have them run one after the other with

sudo apt-get update && sudo apt-get upgrade

By:

I agree about vi, I don't understand way so many people like it. I find it quite maddening and I forced my self to use it for few weeks, but had to stop because I started breaking things out of frustration. I gave Emacs a good chance too and I think it is good program, but overkill most of the time. So I use Nano 95% of the time. To some of the commenters: Be nice, you were all beginners at one time.

By: Anonymous

I have to say I *love* vi/vim.  I spend lots of time editing text files on various Linux distros (CentOS on our cluster, Ubuntu and Debian for my personal machines), and vim is one of the first programs I install when setting up a new Linux box. Nano is like notepad in MS Windows -- very easy to use but also very limited functionality. For very basic editing (as in the guide here), it's adequate. But if you want to do something more powerful -- search and replace with regular expressions, syntax highlighting, multiple open files, etc., you really need something more powerful.

That is where vim comes in. Yes, it initially has a steep learning curve, and there are more options/features than even I am aware of, but if you spend any amount of time editing complex text files, it (or another similarly powerful editor) is a must-have program. It's my favorite text editor on any platform bar-none (I haven't tried emacs, so I won't comment on that). Don't be afraid to give it another try and explore its more advanced features. Once you really learn the features you need and use, your productivity will really skyrocket.

By: Wayne Smith

Tutorial is right on with a "get it done" tone. Just spent too long trying a Packaged route.. with more loss of hair.

 

vi ?? the only editor I'll use when system work needs to be done. It's common across all Unix, Linux and even Cray super computers. It's worth the learn and not too awkward once you're aware of it.

 

By: Vin

Well done alibro! A big thank you for this guide! With it i've managed to set up a Ubuntu 12.04 home server as a central file storage. And have just  set up Putty for remote terminal access. With your guide, the Ubuntu Server Guide and this youtube video:

http://www.youtube.com/watch?v=1m2xop5dQHc

Am just familiarising myself with it now if you have any other recommendations!

To some of the commenters -this guide works and theres nothing else like it online as far as i can see!

 

By: vivek

this is the first tutorial that really worked on linux mint... thnx a lot and keep up the good work..

 

By: vivek

kindly post a video for using a samba server as a domain controller.

By: Lewis Balentine

H'mmmm .... this tutorial seems to require having a MS Windows box around someplace. 

By: pixel

If you read along a bit further, it states how to connect from a ubuntu workstation as well. It's a simple walk through, great for those that don't know how.

By: Jacob

Did nobody else notice there are two step 5's?

By: rhelguy

horrible guide

By: sean

I only use vi when I edit text programs. It is a habit from years of doing it. Once you get use to it, it is simple. I hate when people btch about! anyways, CentOS is my fav linux distro. I run more than a few production servers at my company on it. They have been up for a year before I had a forced reboot!

By: Newman

Then by all means fhelguy, do a better one.  It's so easy to complain.

By: Newman

No, he didn't write a distribution-agnostic how to guide. He told you up front to download the Ubuntu server. My ex-wife used to complain all the time too.