Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-12-2007, 02:15 AM   #1
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?

Old 06-12-2007, 02:44 AM   #2
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 593

Rep: Reputation: 30
You can make the /etc/passwd to smbpasswd by using "cat /etc/passwd>|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
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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:
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       =
        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.


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration