Re: NEWBIE: Configuring Linux-Windows network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marcus Zingmark wrote:
Ankush Grover skrev:



On 9/19/05, *Marcus Zingmark* <blackline@xxxxxxxxxxxxxxxxxxx <mailto:blackline@xxxxxxxxxxxxxxxxxxx>> wrote:

I'm totally new to both Linux and Samba and since I'm not an expert on
    Windows networks either I'm in need of a guide (or so), for newbies,
    about configuring a network between Linux and Windows systems. In my
    case, my Linuxmachine running FC4 and my laptop (cordless network,
    WinXP).

    Would be great if someone could send me a link or otherwise guide me
    through this.


hey,

1) Edit the /etc/samba/smb.conf file

change
workgroup = to your windows workgroup for ex mygroup
hostsallow =  to your network id for ex 192.168.1. 127.

uncomment these lines in smb.conf file
encrypt passwords = yes
  smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
username map = /etc/samba/smbusers

after editing the smb.conf file ,save the file

2) Adding samba users

smbpasswd -a linuxuser(this linux user should be created before running this command)

3) Edit /etc/samba/smbusers file

linux user = windows user

for ex if there is a user john on linux and u want to access john's file through windows with user john2

john(linux user) = john2(windows user)

save the file

4) Test the samba configuration file

testparm

5) Start the samba service

service smb start

6) Now try to access the files through windows.


Note: the ports 137,138,139 should be open and also check whether SELinux is on or off.


for more reading

http://hr.uoregon.edu/davidrl/samba.html
http://www.linuxheadquarters.com/howto/networking/samba.shtml

Regards

Ankush Grover

So I followed the guide, as you said. How do I check if those ports are open? Is there a problem if SELinux is on? I think it is, not really sure.

About that linuxuser = windowsuser

I want to share files from my account, which is "blackline" in linux, and the user on the windowscomputer is "Larsas", so then, should I write "blackline = Larsas"?

How do I share files then, from the Linuxmachine? Where do I put files I want to share?

After doing what you told me i entered "Show all computers in workgroup" from Windows, there i saw "Larsas" and "Samba Server (Localhost)"


Hi, try the following article, it goes in detail about this.

http://www.reallylinux.com/docs/sambaserver.shtml

Brgds
THT


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux