LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2002, 06:16 PM   #1
miker
LQ Newbie
 
Registered: Feb 2002
Location: Coppell, Texas
Distribution: RedHat 7.2
Posts: 5

Rep: Reputation: 0
Question Samba and Win XP


I have installed Linux 7.2 and Samba 2.2.1a. My network consists of the Linux server, a desktop with Win XP, and a laptop with Win 2K. I have a Linksys Cable Modem Router which serves as a DHCP server. All devices are set-up for DHCP.

Each device can successfully ping the other devices. The Linux server shows up in the Windows Network Places -- Workgroup Servers. I can access, read, and write files from the Linux Server. I can't "see" or access two public "shares" I've set-up on the Linux server: /tmp and /home/public from either of the Windows machines. I renamed the Linux server from the default (linuxhost) to "linuxsrvr". As "linuxhost" I am able to access the internet through a browser. As "linuxsrvr", I can not access the internet. Don't know if the problems I have are related.

Any suggestions on why I can't access files on the Linux server from Windows??
 
Old 02-19-2002, 09:05 AM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
try to post the samba configuraion file
 
Old 02-19-2002, 10:17 AM   #3
miker
LQ Newbie
 
Registered: Feb 2002
Location: Coppell, Texas
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
Samba and Win XP

Unfortunately I am unable to "attach" files. Is there a specific section of the smb.conf file I should focus on? (I tried to cut-n-paste but the file exceed the allowed 1000 characters).
 
Old 02-19-2002, 10:25 AM   #4
Dammie
LQ Newbie
 
Registered: Feb 2002
Posts: 2

Rep: Reputation: 0
I have a problem too. I just cant login in Linux. Its is saying time after time that i dont have any permission.

Im using WindowsXP and Redhat 7.1 (with default samba).

I made de same user in linux as with i login in WindowsXP.


Could anyone tell me why this is ??


Thx
Dammie
 
Old 02-19-2002, 06:49 PM   #5
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
you need to enable encrypted password support for your samba. windows demands it, or else you can edit windows registry and enable plain passwords. personally i think it is good if you enable encrypted passwords in samba.


configure Samba to use encrypted passwords:

in the [global] section of /etc/smb.conf, add the following lines:

encrypt passwords = yes
smb passwd file = /etc/smbpasswd

and then create the smbpasswd file by this command

cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd

now you need to add passwords to the users who are present in the /etc/passwd file and who will access the share

this is done like this in the console

smbpasswd username

remember this username should be in the passwd file.
 
Old 02-19-2002, 06:52 PM   #6
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
hello miker,
i think we need to take a look at the share's section of the smb.conf file. did you enable the encryption for samba??
 
Old 02-19-2002, 08:13 PM   #7
miker
LQ Newbie
 
Registered: Feb 2002
Location: Coppell, Texas
Distribution: RedHat 7.2
Posts: 5

Original Poster
Rep: Reputation: 0
Samba and Windows XP

Thanks manthram...
encrypted passwords are enabled and security is set to "user":

[global]
security = user
encrypt passwords = yes

In the shares section I created the following "public" share which should be viewable by any user:

[public]
comment = Public Directory
path = /home/public
public = yes
writable = yes
printable = no

I've created the path /home/public with rwx permissions for everyone (for testing)

I've created a user account on the Window XP system that has the same name as my Linux logon and the same password.

Theoretically I should be able to see the directory /home/public from the Windows machine but I get "path not found"...
 
  


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
Win->Samba works, Samba->Win does'nt work outburst Linux - Networking 2 10-30-2003 08:31 AM
Win 95/98 and XP with Samba mankey Linux - Networking 1 04-26-2003 10:01 AM
win xp won't login to samba after reboot but win 2k works great davidekholm Linux - Networking 1 04-04-2003 09:44 AM
win xp won't login to samba but win 2k works great mrtwice Linux - Networking 4 03-28-2003 01:27 PM
Setting up Samba with SuSe 8.1 and Win 2K/Win XP Pro crstine Linux - Networking 1 12-11-2002 06:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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