Jump to content

OK so I've been trying to set up a home server the last few days. 2 days ago I got Samba working on Debian 8.6 (finally) and I could access the files from the Windows computers at home and I copied the files from our old hard drives over to the network. Then yesterday I shut the computer down to re do some cabling and stuff and I was working on trying to get it so I could access the home server even when not on the network when I realized it wasn't even visible on my home wifi network anymore. Wat. So following some instructions I completely reinstalled Samba with :

sudo apt-get remove --purge samba
sudo apt-get install samba

and then

sudo apt-get remove --purge smbclient libsmbclient
sudo apt-get install smbclient libsmbclient

(Well without the sudo. I already used su so I was root).

 

And I went into the smbd.conf file and edited it to add all my network shares at the end, and...

It worked. It showed up. But then completely randomly it disappeared from the network.

 

So I want to make sure, after reinstalling Samba, is this what you're supposed to do, assuming I have folders /home/user/family, /home/user/user1, and /home/user/user2 that I want to setup and users user1 and user2 and both should be able to access family, only user1 access user1, and only user2 access user2 (also assuming I've already made the folders)?

 

smbpasswd -a user1

(enter password)

smbpasswd -a user2

(enter password)

chown user1 /home/user/family

chown user1 /home/user/user1

chown user2 /home/user/family

chown user2 /home/user/user2

cp /etc/samba/smb.conf /etc/samba/smb.bak (just in case)

nano /etc/samba/smb.conf

 

Now, I'm not sure on what I'm supposed to do with the smb.conf file. Do I just add in the following to the end? Do I delete everything and redo it?

 

[family]
path = /home/user/family
valid users = user1, user2
read only = no

[user1]
path = /home/user/user1
valid users = user1
read only = no

[user2]
path = /home/user/user2
valid users = user2
read only = no

Any help is greatly appreciated :) 

Make sure to quote me or tag me when responding to me, or I might not know you replied! Examples:

 

Do this:

Quote

And make sure you do it by hitting the quote button at the bottom left of my post, and not the one inside the editor!

Or this:

@DocSwag

 

Buy whatever product is best for you, not what product is "best" for the market.

 

Interested in computer architecture? Still in middle or high school? P.M. me!

 

I love computer hardware and feel free to ask me anything about that (or phones). I especially like SSDs. But please do not ask me anything about Networking, programming, command line stuff, or any relatively hard software stuff. I know next to nothing about that.

 

Compooters:

Spoiler

Desktop:

Spoiler

CPU: i7 6700k, CPU Cooler: be quiet! Dark Rock Pro 3, Motherboard: MSI Z170a KRAIT GAMING, RAM: G.Skill Ripjaws 4 Series 4x4gb DDR4-2666 MHz, Storage: SanDisk SSD Plus 240gb + OCZ Vertex 180 480 GB + Western Digital Caviar Blue 1 TB 7200 RPM, Video Card: EVGA GTX 970 SSC, Case: Fractal Design Define S, Power Supply: Seasonic Focus+ Gold 650w Yay, Keyboard: Logitech G710+, Mouse: Logitech G502 Proteus Spectrum, Headphones: B&O H9i, Monitor: LG 29um67 (2560x1080 75hz freesync)

Home Server:

Spoiler

CPU: Pentium G4400, CPU Cooler: Stock, Motherboard: MSI h110l Pro Mini AC, RAM: Hyper X Fury DDR4 1x8gb 2133 MHz, Storage: PNY CS1311 120gb SSD + two Segate 4tb HDDs in RAID 1, Video Card: Does Intel Integrated Graphics count?, Case: Fractal Design Node 304, Power Supply: Seasonic 360w 80+ Gold, Keyboard+Mouse+Monitor: Does it matter?

Laptop (I use it for school):

Spoiler

Surface book 2 13" with an i7 8650u, 8gb RAM, 256 GB storage, and a GTX 1050

And if you're curious (or a stalker) I have a Just Black Pixel 2 XL 64gb

 

Link to comment
https://linustechtips.com/topic/714077-help-setting-up-samba-on-debian/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×