+ 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
    780
    Thank Post
    194
    Thanked 189 Times in 119 Posts
    Rep Power
    97

    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 11:35 AM. Reason: spelling

  2. #2

    Join Date
    Jul 2009
    Posts
    478
    Thank Post
    41
    Thanked 89 Times in 76 Posts
    Rep Power
    50
    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)

  3. #3
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    780
    Thank Post
    194
    Thanked 189 Times in 119 Posts
    Rep Power
    97
    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...

  4. #4

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,826
    Thank Post
    104
    Thanked 449 Times in 308 Posts
    Blog Entries
    2
    Rep Power
    262
    On Ubuntu it's
    sudo service smbd restart

    smdb is 'sambda daemon' I suppose.

  5. 2 Thanks to jinnantonnixx:

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

  6. #5

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,826
    Thank Post
    104
    Thanked 449 Times in 308 Posts
    Blog Entries
    2
    Rep Power
    262
    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.

  7. #6
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    780
    Thank Post
    194
    Thanked 189 Times in 119 Posts
    Rep Power
    97
    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!

  8. #7


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    The edugeek wiki is finally back on line.
    heres my config:

    Samba Homedirectory - Wiki

  9. Thanks to CyberNerd from:

    Miscbrah (23rd January 2012)

  10. #8
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    2,152
    Thank Post
    439
    Thanked 236 Times in 215 Posts
    Blog Entries
    2
    Rep Power
    68
    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!

  11. Thanks to cpjitservices from:

    Miscbrah (23rd January 2012)

  12. #9
    Miscbrah's Avatar
    Join Date
    Dec 2011
    Posts
    780
    Thank Post
    194
    Thanked 189 Times in 119 Posts
    Rep Power
    97
    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!

  13. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,800
    Thank Post
    110
    Thanked 582 Times in 503 Posts
    Blog Entries
    1
    Rep Power
    223
    webmin doesnt work well on ubuntu IIRC.

  14. #11
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    2,152
    Thank Post
    439
    Thanked 236 Times in 215 Posts
    Blog Entries
    2
    Rep Power
    68
    New version works splendidly on Ubuntu 11 - or at least it seems to on the test machine I have it installed on

  15. #12

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,498
    Thank Post
    1,185
    Thanked 745 Times in 647 Posts
    Rep Power
    228
    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.

  16. #13
    hit
    hit is offline
    hit's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    321
    Thank Post
    47
    Thanked 50 Times in 48 Posts
    Rep Power
    50
    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, 05:33 PM
  3. Auto discovery for printers and shares
    By Jon in forum Windows
    Replies: 1
    Last Post: 6th December 2006, 11:29 AM
  4. Replies: 3
    Last Post: 17th February 2006, 11:42 AM
  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
  •