LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-05-2014, 02:53 PM   #1
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 331

Rep: Reputation: 59
Samba 4 simple file sharing


I have recently made the mistake of doing a dist-upgrade on Debian Jessie and have been unable to mount samba shares with "session setup failed: NT_STATUS_UNSUCCESSFUL" type errors. It seems the problem has been that my samba server has been upgraded to version 4.1.11-Debian.

All the tutorials I could find explains how to set samba up as an active directory domain controller. This seems much more involved than what I need since I only have a few windows PCs & I also need samba to access shares from my android tablets.

So far I have configured /etc/samba/smb.conf with "samba-tool domain provision" as a standalone server.

I have added users with "pdbedit -a -u smbuser"

When I try to get information about the user with "wbinfo -i smbuser", I get this:
Code:
failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
Could not get info for user smbuser
Is there any way to set up Samba4 just as a standalone server without messing with domains?

Regards,
Stefan
 
Old 08-06-2014, 04:04 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,473

Rep: Reputation: Disabled
Sure; security = user still works the way it always has. No AD, no domains, no provisioning; just local users (with passwords stored in the smbpasswd database) and the possibility of redirecting unknown users or bad passwords to a guest acount.
 
Old 08-06-2014, 09:32 PM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 331

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by Ser Olmy View Post
Sure; security = user still works the way it always has. No AD, no domains, no provisioning; just local users (with passwords stored in the smbpasswd database) and the possibility of redirecting unknown users or bad passwords to a guest acount.
Thanks for the suggestion. The "security = user" was already placed in my smb.conf file by "samba-tool domain provision". I was not able to authenticate & it looked like there was a domain authentication problem with this error when I tried to look up info on a specific samba username: "WBC_ERR_DOMAIN_NOT_FOUND". What setting should I have in my resolve.conf to make samba happy?


Code:
       workgroup = HNET
        realm = HOME.LAN
        netbios name = D3
        server role = standalone server
        passdb backend = samba_dsdb
        printcap name = /dev/null
        load printers = no
        disable spoolss = yes
        printing = bsd
        security = user
        dns proxy = no
        map to guest = Bad User
        wide links = yes
        public = yes
Regards,
Stefan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Simple file sharing between UBuntu 12.04 and an old Xp machine Youri77 Linux - Networking 2 12-04-2012 11:18 AM
Opera Unite for simple file sharing between virtual machines. mjolnir Linux - Virtualization and Cloud 3 06-29-2010 10:10 AM
A simple Bash file for importing SAMBA users from a file jax8 Linux - Newbie 11 02-09-2009 10:12 AM
Simple file sharing ionmich SUSE / openSUSE 2 02-13-2007 04:59 AM
Simple Linux FIle Sharing?????? Nerd2 Linux - Networking 5 07-12-2003 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration