LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-26-2011, 05:08 PM   #1
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Rep: Reputation: 15
Samba users problem


Hi guys.

I am having some problems trying to connect to a samba share from my windows 7 laptop. I have just set up CentOS 5.5 and have installed webmin. Using webmin I have created a samba share called "Staff" I created a unix user named Staff and made that user into a samba user.

The problem is this: When I try to connect to the "Staff" share in windows, it asks me for a username and password. I try imputing the username Staff and its password and it is rejected every time.

HOWEVER, When I comment out the line "passdb backend = tdbsam" from the global section of the smb.conf, I can access the share just fine. the only problem is, I can also access the share using any random username and password therefore the username and password doesnt matter.

Here is my smb.conf

Code:
[global]
	cups options = raw
	netbios name = KISKA
	winbind enum users = no
	default service = global
	workgroup = NUS
	winbind enum groups = no
	os level = 20
	domain master = yes
	null passwords = yes
	winbind trusted domains only = no
	encrypt passwords = yes
	security = SHARE
	passdb backend = tdbsam
	preferred master = no
	load printers = no


[Staff]
	guest account = staff
	delete readonly = yes
	writeable = yes
	path = /nusdata/staff
	force directory mode = 755
	force group = staff
	force create mode = 755
	force user = staff
	valid users = staff,admin,@staff,@admin
	case sensitive = yes
	available = yes
#	revalidate = yes
I am planning on completely deleting my unix users and rebuilding the smbpasswd database from scratch. I will post updates as I keep testing.

Any help would be appreciated!!
 
Old 03-26-2011, 06:14 PM   #2
linux hates me
Member
 
Registered: May 2009
Distribution: fedora 14 and CentOS 5.5
Posts: 71

Original Poster
Rep: Reputation: 15
well removing and re-making my users and groups didnt do anything

help is still needed!!
 
Old 03-27-2011, 01:43 AM   #3
brak44
Member
 
Registered: Aug 2010
Location: Brisbane Australia
Distribution: Centos, Fedora
Posts: 87

Rep: Reputation: 24
Samba & Win 7

When you begin again follow the last page of this guide exactly
http://www.bizux.com.au/Joining%20Sa...indows%207.pdf
 
Old 03-27-2011, 10:05 AM   #4
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5 / 6 / 7
Posts: 107

Rep: Reputation: 16
I trust you have created the samba password file correctly.
Code:
su - root
cat /etc/passwd | mksmbpassws.sh > /etc/samba/smbpasswd (or the path to your smbpasswd file)
then
Code:
chmod 600 /etc/samba/smbpasswd
Check smb.conf is using the passwd file you created

Now either create a new smaba user using swat (web admin)
or
Code:
smbpasswd username
make sure the share is readable and/or writeable by the user you have just created

Code:
service smb restart
Hope this helps.
 
  


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
Problem accessing Samba shares simultaneously by multiple users SKYNAT Linux - Newbie 2 01-29-2008 05:25 AM
Samba users permissions problem Jordi Linux - Server 3 04-26-2007 02:48 AM
problem creating samba users pjbgravely Slackware 3 11-21-2005 06:51 AM
problem samba users Paxmaster Linux - Networking 2 01-22-2005 10:44 PM
Map to share then allow users to access subfolders problem in SAMBA ryanzietlow Linux - Software 1 03-26-2004 06:31 PM

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

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