LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-12-2007, 02:15 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Samba setting


I've installed samba in my Linux.
I want to let the Linux user read/write their files
from WinXP.

However, the passwords in Linux are different from the passwords in Samba.

I want to make them "equal". The Samba passwords follow the change of Linux passwords.

When I add "smb passwd file = /etc/samba/smbpasswd" in
smb.conf, the testparm don't read this line.

My questions:
How to make the passwords "equal"?
What is the use of "swat"? Is it use for the setting of samba through browser?

Thanks.
 
Old 06-12-2007, 02:44 AM   #2
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
You can make the /etc/passwd to smbpasswd by using "cat /etc/passwd>mksmbpasswd.sh|cat >/etc/samba/smbpasswd" .
Ofcourse you can use swat to browse windows share in Linux. If you find any difficulty to install and configure SWAT, You can go for windows share in nautilus(any window), and on the address bar type smb:/// and enter. This will bring you all windows share to you.

ALL the best
 
Old 06-12-2007, 02:44 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
added "port = 901" to the posted file.

Use the "smbpasswd" program to create linux users & passwords corresponding to the Windows users.

Check if your distro supplies a samba-doc package. It includes three Samba 3 books, including "Samba 3 by Example" which will guide you step by step on setting up several different possible configurations. It may also contain the html version of "Using Samba 2nd Ed.".

Yes, samba swat allows you to configure samba via a browser interface. Before you use it, you need to configure xinetd to allow access to it.

Here is my /etc/xinetd.d/swat file:
Code:
cat /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
        port            =  901
        socket_type     =  stream
        protocol        =  tcp
        wait            =  no
        user            =  root
        server          =  /usr/sbin/swat
        only_from       =  127.0.0.1
        log_on_failure  += USERID
        disable         =  no

}
It is possible that this file exists, and you just need to change "disable = yes" to "disable = no".

Then restart the xinet daemon with "sudo killall -SIGHUP xinetd". This will cause it to restart, reloading the config files.

Now point your web browser on the server to "http://localhost:901".

Last edited by jschiwal; 06-16-2007 at 06:43 PM.
 
  


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
Setting Samba up-> sharptech Linux - Networking 6 02-15-2007 02:05 PM
Help setting up Samba? snakeo2 Linux - Newbie 17 03-25-2004 06:32 AM
Setting up Samba Inexactitude Linux - Networking 1 10-29-2003 10:08 PM
Setting Up Samba tapanga Linux - Newbie 13 10-26-2003 11:07 PM
Setting Up Samba bytebrowser Linux - Networking 3 06-30-2003 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:19 AM.

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