LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:53 PM   #1
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
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, 03:04 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

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, 08:32 PM   #3
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Original Poster
Rep: Reputation: 60
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



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

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

All times are GMT -5. The time now is 07:21 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
Open Source Consulting | Domain Registration