LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-21-2003, 11:37 AM   #1
siva
LQ Newbie
 
Registered: Mar 2003
Posts: 3

Rep: Reputation: 0
Problems - Samba on Windows network


I installed Red Hat 7.1 on my machine, upgraded it yesterday with the latest files (using RH Update Agent). Downloaded Samba sources and compiled. I can see my machine in Network Neighbourhood on a Win2K PC but trying to open them gives a message like
"\\ Linuxbox is not accessible. The network path was not found." Similar problems were reported in other threads but none of the suggested solutions work for me. I am interested in seamless movement of files from/to my LINUX box (migrating from Win2K Prof. to RH Linux 8.0). Please advise where/what I am wrong. I have created a user called root in my Win2K machine, blanked out password of Guest. There is a RH LINUX 7.x on the n/w that has been offering all services for over two years. I even tried with that machine's smb.conf file with no luck.

Given below is my smb.conf file:
(have excluded commented lines)

[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
workgroup = MILKYWAY

# server string is the equivalent of the NT Description field
server string = P-Samba

; Netbios name added by Siva
netbios name = preethi

# this tells Samba to use a separate log file for each machine
# that connects
log file = /usr/local/samba/var/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups.
dns proxy = no

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes


#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S

[test]
comment = Test share
path = /root/testshare
read only = no
public = yes
browseable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes

Thank you for your patient study of this request.

Cheers,
Siva
 
Old 03-21-2003, 11:56 AM   #2
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Have you done the smbpasswd thing?

I'm not entirely sure if your Guest thing will work, and if you *have* created an account on your Win2K machine called root, (and I assume given it a password) you'll need to create a samba password file to authenticate it.

I don't see any authentication lines in your smb.conf so here's an example :

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

Your passwords will be stored in the file above. To create root's do this :

smbpasswd -a root <password>

I think.. *ponder*. The -a thing 'adds a user' but I've never done it for root, as root.. So you might just as well off log in as root on your linux box and

smbpasswd
New SMB password: <password here>
Retype new SMB password: <password again>

Now, when you're root on your NT box you should be able to see shares on your Linux box. If your passwords are different on both boxes you'll be prompted for the right password on the Linux box.

There are tools to sync passwords on the two boxes but they can come later

Slick.
 
Old 03-25-2003, 02:13 PM   #3
siva
LQ Newbie
 
Registered: Mar 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Exclamation Samba-Win2K problem solved

I was able to install samba with minimum effort by installing RedHat Linux 8.0 from their CD (after formatting the hard drive) and by following the steps in the documentation (Customization of RH Linux 8.0).

I had earlier installed 7.1 from CD and upgraded using Update Agent. The foll. could also be the reasons for smooth installation:

1. Changed name of computer to a new name (unused earlier on any windows or linux machines on the network). Was wondering if my Win2K DNS remembered the machine name-IP address combinations and refused connection when combination is same but OS changed.

2. Changed IP address to an address unused earlier on any m/c on the n/w. We use static IPs on our network

3. Chose to have no firewall.

Thank you Slick for your detailed reply. I think I am now equipped to learn about password sync feature. Kindly throw some light on this.

Cheers,
Siva
 
Old 03-27-2003, 12:09 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
did you add samba users.

normal users are different from samba users
 
Old 03-27-2003, 11:07 AM   #5
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Um.. I think he's got his users set up now.

To do the password syncronisation stuff you need to look at these parameters in your smb.conf file :

# Use password server option only with security = server
# The argument list may include:
# password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
# password server = *
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd


# The following are needed to allow password changing from Windows to
# update the Linux sytsem password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

Essentially you pass it the name of your primary domain controller, and tell your box what password program to use to change passwords on your local machine. Tell it to authenticate using domain, and um.. I think that's it.

Note: I don't do this. So my experience with it is limited - I don't trust my domain controllers and use my Linux box as the authoratitive user dump instead of my NT boxes.

If someone else with experience with this would like to jump in here, you'd be more than welcome.

Slick.
 
  


Reply


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
Debian, samba and windows network millz Debian 1 10-25-2005 12:43 PM
can't configure windows network printer with samba garyozzy Linux - Networking 3 08-18-2005 06:45 PM
Samba Error with Windows Network wfernley Linux - Networking 3 04-14-2005 04:43 PM
Samba/ Windows network problems (Newbie question) cheese6590 Linux - Software 4 04-11-2005 12:17 AM
How to connect to a Windows network using Samba ? wlaw Linux - Networking 3 09-05-2004 11:57 PM

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

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