*nix Thread, Password for an SMB share? in Technical; Hi all. Bear with me because this is going to be painful...
I'm totally new to Linux here, as in ...
-
23rd January 2012, 11:56 AM #1
Password for an SMB share?
Hi all. Bear with me because this is going to be painful...
I'm totally new to Linux here, as in REAL-noob-new, and I've gotten all excited and dove into half-written tutorials here and there in the hopes of getting a samba server at least working.
My objective is to have one folder shared on the server for Linux and Windows clients on the domain, with a password required to get onto the share by users.
I've tried and failed to set up winbind for password authentication (and had to knock out all sorts of things in different .conf files to turn it off again after!) so everything might be in such a mess that I'll need to reinstall, like, everything. I was hoping before embarking on the winbind thing that there just might be a way to set up a simple username/password prompt somehow (doesn't even need to be domain-related) but I tried and couldn't do it.
On a marginally related note how the £*$# do you restart the samba service anyway? Nothing I've googled works and I just bounce the server every time I change smb.conf.
Smelly smelly thing...
But yes if anyone's got any clue how to steer me right it'd be great. Spent a few days on and off looking into it but I'm just making more mess than progress now. If you're reading this and you're feeling me and can help I'd be mega grateful!
Thanks!
Last edited by Miscbrah; 23rd January 2012 at 12:35 PM.
Reason: spelling
-
-
IDG Tech News
-
23rd January 2012, 12:30 PM #2 
Originally Posted by
Miscbrah
On a marginally related not how the £*$# do you restart the samba service anyway? Nothing I've googled works and I just bounce the server every time I change smb.conf.
Depends on which distribution you use, but for Debian/Ubuntu i find running ' /etc/init.d/samba restart' (without quotes) will restart it. You'll also need to use sudo for ubuntu (ie. sudo /etc/init.d/samba restart). On debian, you'll either need to install/configure sudo (or use the root account which isn't really recommended)
-
-
23rd January 2012, 12:36 PM #3 Thanks for the help!
Urgh, but I got bash: /etc/init.d/samba: No such file or directory I'm using Ubuntu server if that's any good...
-
-
23rd January 2012, 01:14 PM #4 On Ubuntu it's
sudo service smbd restart
smdb is 'sambda daemon' I suppose.
-
2 Thanks to jinnantonnixx:
computer_expert (23rd January 2012), Miscbrah (23rd January 2012)
-
23rd January 2012, 01:16 PM #5 The Ubuntu documentation is usually pretty good; this might be a good starting point.
https://help.ubuntu.com/community/Samba
You might want to look at something called SWAT, which is a GUI configuration manager for Samba, operated from a web browser pointing to the server. It's OK, and good if you need to get something up and running quickly. It's best to get to grips with the smb.conf files though, that's the proper way to do it.
-
-
23rd January 2012, 01:16 PM #6 
Originally Posted by
jinnantonnixx
On Ubuntu it's
sudo service smbd restart
smdb is 'sambda daemon' I suppose.
Oh bloody hell that was amazing and worked. Thanks!
-
-
23rd January 2012, 01:18 PM #7 The edugeek wiki is finally back on line.
heres my config:
Samba Homedirectory - Wiki
-
Thanks to CyberNerd from:
Miscbrah (23rd January 2012)
-
23rd January 2012, 01:24 PM #8 I prefer to use something like CentOS for Samba... it's what I would recommend anyway... although on a different note if you are hosting samba on a clean Linux server..... setup and install webmin it's got an nice easy web interface for managing samba, works on all versions of Linux!
-
Thanks to cpjitservices from:
Miscbrah (23rd January 2012)
-
23rd January 2012, 03:16 PM #9 Thanks guys!
I can't say I understand much from having a GUI but that in itself is a huge leap forward from "conf? What? What domain?"
OMG a GUI!
-
-
23rd January 2012, 03:52 PM #10 webmin doesnt work well on ubuntu IIRC.
-
-
23rd January 2012, 04:06 PM #11 New version works splendidly on Ubuntu 11 - or at least it seems to on the test machine I have it installed on
-
-
23rd January 2012, 06:27 PM #12 
Originally Posted by
Miscbrah
My objective is to have one folder shared on the server for Linux and Windows clients on the domain, with a password required to get onto the share by users.
Assuming you get winbind set up correctly, the idea is that your Windows client connects to the share with the appropriate credentials, so password typing in neccesary. There's a thread over here:
Configuring Samba
Which I've updated a few times with bits and pieces I've come accross as I set up various Samba systems.
-
-
23rd January 2012, 07:20 PM #13 What other services are you going to run on the Linux server? If it is purely for file shares I wouldn't bother with any of the Ubuntu/fedora/Debian etc. and just use freeNAS (FreeNAS 8 | Storage For Open Source). It has NFS, CIFS, TFTP protocols and AD integration. I recently built one and had it up and running in less than an hour.
-
SHARE:
Similar Threads
-
By Dos_Box in forum Hardware
Replies: 17
Last Post: 2nd May 2007, 10:27 AM
-
Replies: 4
Last Post: 12th December 2006, 06:33 PM
-
Replies: 1
Last Post: 6th December 2006, 12:29 PM
-
By Kyle in forum General Chat
Replies: 3
Last Post: 17th February 2006, 12:42 PM
-
By tosca925 in forum Scripts
Replies: 12
Last Post: 12th September 2005, 10:47 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules