LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2005, 02:56 PM   #1
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Rep: Reputation: 0
Samba Configuration


Hi there,

I am very new to linux, I have RedHat 9 installed with Samba 2.2.7a-7.9.0 installed on my test PC, I am using Swat web tool to configure this Samba server.

I did create couple of accounts under linux, Do need to create separate account in samba psswd file or can I use the same linux account to authenticate against sabma server ?

I did create a share in samba , and try to access it from a windows xp machine, it didn't work for me until I add the user in swat password tab.

What is the purpose of this swat password tab ?
 
Old 07-21-2005, 05:24 PM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
For some reason, Linux uses separate user ids and passwords for samba than it does for its main authentication, then when you log into samba using a samba username, this is mapped back to a linux username which allows it to do permissions checking etc. So yes, you do need entries in both smbusers and smbpassword - a bit of a pain I know, I came across this same issue.
 
Old 07-22-2005, 06:05 AM   #3
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
u really have to create a seperate password file for samba. in the conf: file for samba u have to unhash the lines "samba userfile = /etc/samba/smbpasswd" . after that u have to add the users as usual linux accounts. now u must add the users in /etc/passwd for samba by the command " cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd". this creates the samba passwd file from the local passwd file. now use the command "smbpasswd username" to create the password for the users. without this step u cant use the useraccounts. restart samba. feel free to ask questions ....... vimal
 
Old 07-22-2005, 08:54 AM   #4
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Original Poster
Rep: Reputation: 0
hi, What is the purpose of the Password tab Swat web tool ? can we add linux or sanba users here ?
 
Old 07-22-2005, 01:01 PM   #5
randy1970
LQ Newbie
 
Registered: Jul 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Hi Vimal,

I did the following.

I add " smb user file= /etc/samba/smbpasswd",
" smb user passwd file = /etc/samba/smbpasswd " in smb.conf file.

and also I did the mksmbpasswd.sh command to create the smbpasswd file. But I can not access samba shares until I manually go and each user in swat password tab.


What is the purpose of smbpasswd , smbusers file ?


Thnaks,
 
Old 07-24-2005, 09:22 AM   #6
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
smbusers defines the users that are permitted to connect using samba, and it maps the samba usernames to the linux user ids that are stored in /etc/passwd. smbpasswd defines the password for each samba user.
 
  


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
Samba Configuration halod Linux - Networking 1 09-02-2005 07:46 AM
Samba Configuration EzehM Linux - Networking 6 06-24-2004 02:46 PM
I need some Samba configuration help... GetCool Linux - Networking 2 11-17-2003 05:36 PM
Samba configuration littlegreenman Linux - Networking 14 09-10-2003 11:55 AM
SAMBA Configuration lee foster Linux - Newbie 4 10-23-2002 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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