LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2013, 06:02 PM   #1
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Rep: Reputation: Disabled
Question debian file server


Hey I need a good guide on how to make a debian file server because all of the tutorials I can find don't work



Thanks,
Lukas
 
Old 10-08-2013, 07:34 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,346
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
I use a Debian file server in my home network, using Samba, because we have both Windows and Linux computers.

I don't know what you've tried, but you need to have samba server installed and configured to start at boot (I think that, when you install it, Debian assumes that you want it to run at boot or you wouldn't have installed it--it's been a long time, but I think that's how it happened; I don't recall having to do any additional configuration). This command will tell you whether it's running:

Code:
$ ps -A | grep smb
 3711 ?        00:00:01 smbd  <--Samba server daemon
 3733 ?        00:00:00 smbd
Then there are three steps:

1. Pick the directories that you want to be shared and configure them in the directory settings to be shared with the proper read/write permissions for user, group, and others. In most cases, the shares reside in someone's (not root's) home directory. On my file server, one is there and the others reside on an external USB hard drive which is configured in /etc/fstab to mount (by UUID so the directories are always located in the same cyber-place) at boot.

2. Configure your sharing in the Samba configuration file (normally /etc/samba/smb.conf). (Note: if you have problems with smb.conf and wish to post it here for comments, please post on the relevant stuff and not all the stuff that has been remarked out!) In case it helps, here's a bit from my own smb.conf:

Code:
# Global parameters

[global]
workgroup = workgroup
security = share
encrypt password = yes
smb passwd file = /etc/samba/smbpasswd
show add printer wizard = No
wins support = no

[sharefiles]
path = /home/frankbell/sharefiles
guest ok = yes
read only = no
available = yes
browsable = yes
public = yes
writable = yes


[files]
path = /media/sdb1/files
guest ok = yes
read only = no
available = yes
browsable = yes
public = yes
writable = yes
3. Add user accounts to samba via the smbpasswd command. The user accounts must exist in Linux before they can be added to your Samba smbpasswd file.

I suggest that you consult Samba by Example (also available as a PDF here). It starts with very simple shares and progresses to extremely complex ones, with examples of the proper configuration for each one. I found an example that worked for me by about page 20.

Last edited by frankbell; 10-08-2013 at 07:36 PM.
 
Old 10-09-2013, 09:24 PM   #3
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Thanks for your detailed information I'll try that tomorrow (I have tons of work to do) and reply back what happens.
 
  


Reply

Tags
debian, server



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dhcp server restart, no such file - Debian janlinux Linux - Server 4 01-02-2012 01:13 PM
Help Setting Up A Debian File Server? golmschenk Linux - Server 1 08-08-2010 03:51 PM
Debian file server installed - now what ? jchambers Linux - Newbie 4 11-24-2007 07:13 PM
Debian file sync from Win2000 FTP server twentyninehairs Linux - Networking 3 07-16-2007 08:56 AM
LXer: File Server Configuration in Debian Using Samba LXer Syndicated Linux News 0 05-03-2007 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration