Can I use Ubuntu as a file server? [duplicate]

In our company we would like to install Ubuntu server for file sharing, is it possible to use Ubuntu as file server for windows based client Operating systems.

what is the procedure to make Ubuntu file server, and i have installed Ubuntu 12.4 server.


The important thing to remember is that Desktop and Server are the same underlying OS, with different packages & configuration In Windows that isn't true (tx to @jay-bazuzi)

This is a step-to-step answer.

Install samba

sudo apt-get  install  samba samba-common

Install some dependencies for Configuration tools

sudo apt-get install python-glade2

Installa samba configuration tool

sudo apt-get install system-config-samba

Make a new user Jones

adduser   Jones

Make a Linux password for user jones

passwd pirat9

Open samba configuration tool.

samba configuration tool

Add the folder you want to share and setup the permissions

enter image description hereenter image description here

Create a samba user

sudo smbpasswd -a  jones
New SMB password
retype New SMB Password

You can chose any directory you want to share by right click on the folder directory and open the share options

enter image description here

Now at this point if your ubuntu server has ip: 192.168.1.10 you can access to your folder with a Linux Machine typing on Nautilus address bar:

smb://192.168.1.10/pirat9

or on a windows machine with:

\\192.168.1.10\pirat9

Thanks Linuxman for screen and refs: http://www.unixmen.com/howto-install-and-configure-samba-share-in-ubuntu/


The short answer is yes, you can set up file sharing with Samba. See

  • https://help.ubuntu.com/14.04/serverguide/samba-fileserver.html

There's also a beginner-friendly tutorial here http://www.howtogeek.com/74459/how-to-create-samba-windows-shares-in-linux-the-easy-way/. If you search for Samba in the Ubuntu Software Center, you'll find a nice little GUI for this.


File Servers

If you have more than one computer on a single network. At some point you will probably need to share files between them. In this section we cover installing and configuring FTP, NFS, and CUPS.

FTP Server

Network File System (NFS)

iSCSI Initiator

CUPS - Print Server

SOURCE -> File Servers

Windows Networking

Computer networks are often comprised of diverse systems, and while operating a network made up entirely of Ubuntu desktop and server computers would certainly be fun, some network environments must consist of both Ubuntu and Microsoft® Windows® systems working together in harmony. This section of the Ubuntu Server Guide introduces principles and tools used in configuring your Ubuntu Server for sharing network resources with Windows computers.

Introduction

Samba File Server

Samba Print Server

Securing a Samba File and Print Server

Samba as a Domain Controller

Samba Active Directory Integration

SOURCE -> Windows Networking


From my point of view, you have taken the first step towards a good and stable file server :) I have also managed a Windows server 2003 in the past at the company I was working. In the end we migrated towards SuSE Enterprise. I would always recommend a Linux server for every job that includes the word server in it.

So now, because you are new Ubuntu, I am wondering if you are new to Linux environments? Also, you haven't mentioned what your file server is suppose to do. If you only want to manage home files (movies, music, etc...) between internal desktops/laptops, then I would reckon a regular Ubuntu installation would be enough.