LinuxQuestions.org
Visit Jeremy's Blog.
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 11-29-2009, 07:33 PM   #1
naquad
Member
 
Registered: Feb 2007
Posts: 34

Rep: Reputation: 15
samba and separate user database


Hi all.

People, i don't want my samba to work with passwd/shadow.
I want totally separated user database. How do i do this?

P.S. Samba version is 3.4.3, current config is:

[global]
workgroup = MSHOME
server string = Linux
netbios name = Naquad
interfaces = eth1 eth2
obey pam restrictions = Yes
passdb backend = smbpasswd:/etc/samba/smbpasswd
pam password change = no
unix password sync = no
syslog = 0
log level = 10
log file = /var/log/samba/log.%m
max log size = 1000
load printers = no
dns proxy = no
panic action = /usr/share/samba/panic-action %d
client code page = 866
character set = utf-8
wins support = yes
name resolve order = lmhosts hosts bcast
 
Old 11-29-2009, 09:18 PM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Samba can use following as backend
tdbsam and
ldap

you can setup openldap server for storing samba users and group information. For more information visit http://www.samba.org/samba/docs/man/Samba-Guide/

Thanks
 
Old 11-30-2009, 12:19 PM   #3
naquad
Member
 
Registered: Feb 2007
Posts: 34

Original Poster
Rep: Reputation: 15
it does, but if user doesn't exist in /etc/passwd it says: Failed to add entry for user <username>.
 
Old 11-30-2009, 11:22 PM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
What is in your /etc/nsswitch.conf

If you specify ldap as passwd and group backend i don't think duplicate account sort of error come.

/etc/nsswitch.conf

passwd files ldap
group files ldap

thanks
 
Old 12-01-2009, 10:54 AM   #5
naquad
Member
 
Registered: Feb 2007
Posts: 34

Original Poster
Rep: Reputation: 15
my nsswitch.conf

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files dns
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

P.S. i don't want to setup ldap. i don't know ldap services and imho it has no sense for 10 users.
 
  


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
DBI Connect Failed:Access denied for user ''@'localhost' to database <database> error kaplan71 Linux - Software 3 06-05-2009 12:39 PM
Root and User: Separate but Equal soulseraph Linux - Software 3 07-07-2006 05:51 PM
User Logins on separate machine steve007 Linux - Newbie 2 08-23-2005 03:55 AM
Separate Partitions for Separate User groups volvic Slackware - Installation 2 09-16-2004 02:42 AM
Anyone else think there ought to be a separate Samba forum? TruckStuff Linux - Networking 14 10-05-2002 10:30 AM

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

All times are GMT -5. The time now is 01:58 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