+ Post New Thread
Results 1 to 13 of 13
*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 ...
  1. #1
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    168
    Thank Post
    38
    Thanked 25 Times in 15 Posts
    Rep Power
    7

    Unhappy 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

  2. IDG Tech News

  3. #2

    Join Date
    Jul 2009
    Posts
    368
    Thank Post
    34
    Thanked 67 Times in 57 Posts
    Rep Power
    43
    Quote Originally Posted by Miscbrah View Post
    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)

  4. #3
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    168
    Thank Post
    38
    Thanked 25 Times in 15 Posts
    Rep Power
    7
    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...

  5. #4

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    895
    Thank Post
    38
    Thanked 171 Times in 128 Posts
    Rep Power
    111
    On Ubuntu it's
    sudo service smbd restart

    smdb is 'sambda daemon' I suppose.

  6. 2 Thanks to jinnantonnixx:

    computer_expert (23rd January 2012), Miscbrah (23rd January 2012)

  7. #5

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    895
    Thank Post
    38
    Thanked 171 Times in 128 Posts
    Rep Power
    111
    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.

  8. #6
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    168
    Thank Post
    38
    Thanked 25 Times in 15 Posts
    Rep Power
    7
    Quote Originally Posted by jinnantonnixx View Post
    On Ubuntu it's
    sudo service smbd restart

    smdb is 'sambda daemon' I suppose.
    Oh bloody hell that was amazing and worked. Thanks!

  9. #7


    Join Date
    Jan 2006
    Posts
    6,456
    Thank Post
    324
    Thanked 740 Times in 557 Posts
    Rep Power
    201
    The edugeek wiki is finally back on line.
    heres my config:

    Samba Homedirectory - Wiki

  10. Thanks to CyberNerd from:

    Miscbrah (23rd January 2012)

  11. #8
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    1,053
    Blog Entries
    4
    Thank Post
    200
    Thanked 109 Times in 104 Posts
    Rep Power
    29
    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!

  12. Thanks to cpjitservices from:

    Miscbrah (23rd January 2012)

  13. #9
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    168
    Thank Post
    38
    Thanked 25 Times in 15 Posts
    Rep Power
    7
    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!

  14. #10
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114
    webmin doesnt work well on ubuntu IIRC.

  15. #11
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    1,053
    Blog Entries
    4
    Thank Post
    200
    Thanked 109 Times in 104 Posts
    Rep Power
    29
    New version works splendidly on Ubuntu 11 - or at least it seems to on the test machine I have it installed on

  16. #12

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    4,707
    Thank Post
    968
    Thanked 598 Times in 521 Posts
    Rep Power
    198
    Quote Originally Posted by Miscbrah View Post
    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.

  17. #13
    hit
    hit is online now
    hit's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    193
    Thank Post
    19
    Thanked 28 Times in 28 Posts
    Rep Power
    43
    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:
+ Post New Thread

Similar Threads

  1. Help me find a mains cable for an APC rack UPS
    By Dos_Box in forum Hardware
    Replies: 17
    Last Post: 2nd May 2007, 10:27 AM
  2. Replies: 4
    Last Post: 12th December 2006, 06:33 PM
  3. Auto discovery for printers and shares
    By Jon in forum Windows
    Replies: 1
    Last Post: 6th December 2006, 12:29 PM
  4. Replies: 3
    Last Post: 17th February 2006, 12:42 PM
  5. 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
  •