LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-16-2002, 01:13 PM   #1
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Rep: Reputation: 15
Question Samba and win98SE


I am having a strange occurance.
For some reason I cannot connect to a shared directory on my Linux box from my win98SE system.
When I connect, it asks for a password, which I type in, only to be told that the password is invalid.
This happens on a public directory and one that I have set up for only two users.
But, I can access both directories from my win2k box and my macintosh using my username and password.
I had security in my smb.conf set to user. I tried changing it to share, but it had no effect.
Am I missing something basic or what?
 
Old 07-16-2002, 01:18 PM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
first check to make sure you're either
A) using Encrypted Passwords

or

B) not using Encrypted Passwords


Then make sure that the user you're connecting with exists in both the linux machine and the samba context (you used smbpasswd, right?)
 
Old 07-16-2002, 06:08 PM   #3
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
I'm assuming that since Win98SE defaults to encrypted passwords that thats what I'm using. I haven't altered the registry to use plaintext passwords.

What I don't understand is why I can access the system from my Win2k and Macintosh systems.

My passwd and smbpasswd files do match.

I'm stumped.
 
Old 07-18-2002, 11:23 PM   #4
sudheermt
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
[global]
...... other configuration....

security = user # requires user to have system account
encrypt passwords = yes #< To work with Win95, Win98 we need >



check this out
http://ps-ax.com/samba-fq.html

sud's
 
Old 07-23-2002, 12:35 PM   #5
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
Maybe I'm not explaining this right.
I have encrypted passwords = yes
I have security = user
I have the user and password both under linux and samba.
I have no trouble logging in from 2 separate Win2k machines or my macintosh.
I only have problems logging in with my Win98 SE machines.
A problem I didn't have when this same Linux box was running Red Hat 7.1. I reloaded the system with Mandrake 8.2. Is there an issue with Mandrake 8.2 and Win98?

Here are the steps I follow from Win98:
I click on Network Neighborhood.
I click on my linux server name (server)
I click on the directory I want to access (downloads)
I am presented with a "Enter Network Password" dialog box
saying
You must supply a password to make this connection
resource: \\server\downloads
password:
When I type in my password, I get an error box stating the password is incorrect.

When I access the linux box from Win2k , I am presented no dialog box asking for a password.

I'm stumped.
 
Old 07-25-2002, 01:57 PM   #6
chosmer
Member
 
Registered: Feb 2002
Location: Vermont
Distribution: Fedora Cores
Posts: 39

Rep: Reputation: 15
Can you try using plaintext (regedit on win98, and encrypt=no in smb.conf) and see if you are still prompted. It may not be what you eventually want..but may aid troublshooting.
 
Old 07-26-2002, 12:26 AM   #7
sudheermt
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
I. >Here are the steps I follow from Win98:
>I click on Network Neighborhood.
>I click on my linux server name (server)
Did you login to samaba ( server) using username/passwd what you have created in linux box, ?
If No, goto network neighbourhood, properties, &
set workgroup same as, your samba workgroup name
& in
i.e [global]
workgroup = <Workgroup Name> # Same as win98se network properties workgroup & domain spcified in client for microsoft networks properties.

make usre your win98 is configured to login to
samba domain, .. (domain=workgroup same as whhat you specify in smb.conf WORKGROUP)
then login, using username/password created in linux.

II. >I click on the directory I want to access (downloads)
in smb.conf,
[downloads]
.. your other configuration
path = < full Path to downloads >
guest ok = Yes

example for share called, files
[files]
comment = files directory
path = /mnt/files
browseable = yes
guest ok = yes
public = yes
writable = yes < If you want your user to write to the forlder, or else make it 'writable = no'>

best of luck..
Sud's
 
Old 07-26-2002, 01:14 AM   #8
LinuxHaven
Member
 
Registered: Jul 2002
Posts: 35

Rep: Reputation: 15
I can suggest 3 troubleshooting suggestions:

Try using the same account info from your W2K machine for your Win 98 machine to log on to Samba in order to simplify things. That is, make sure you aren't using an invalid user/password combination by using the one from W2K which you know already works. If the other user account works, and you know that the account info you are using for Win 98 DOES work, maybe your folder permissions are not set correctly.

Second, make sure in Windows 98 SE that you are logged in as the user that has permissions to access SAMBA.

Third, check if your Windows 98 machine is indeed using encrypted passwords by modifying this line to read:
encrypted passwords = no

If those don't work, maybe a firewall is interfering. Swap cables (or just IPs with the W2k machines) to see if Samba lets you in.
 
Old 07-26-2002, 11:46 AM   #9
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
I did try using the same account info from my win2k machine on the win98 machine. The result was the same.
I tried encrypt password = no. But then the shared directory on the Linux box wouldn't show at all in network neighborhood.
I don't understand this at all. When I was running Red Hat 7.1 on this Linux box, I was able to connect with the Win98SE boxes with no problem. I haven't changed anything on the Win98 boxes.

Anyway, here is my smb.conf file.

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/07/17 10:37:46

# Global parameters
[global]
workgroup = WORK
server string = File-Server
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
domain master = False
dns proxy = No
hosts allow = 10.168.110. 127.
printing = cups

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[downloads]
comment = file downloads
path = /home/downloads
guest account =
valid users = Bob Mary
admin users = Bob Mary
read only = No

My linux usernames and samba usernames are identical. Still I added these lines to smbusers:
Bob = Bob
Mary = Mary

I had an issue with the firewall on RH 7.1. when I first set it up. But I would think if the firewall was an issue here it would also block the win2k and Mac machines from connecting.
 
Old 07-26-2002, 12:07 PM   #10
LinuxHaven
Member
 
Registered: Jul 2002
Posts: 35

Rep: Reputation: 15
I see the line "encrypt passwords = yes", but where's this?
smb passwd file = /etc/samba/smbpasswd
 
Old 07-26-2002, 12:49 PM   #11
artman62
Member
 
Registered: Nov 2001
Distribution: Mandrake 8.2
Posts: 97

Original Poster
Rep: Reputation: 15
LinuxHaven,

You had me going there for a minute, until I remembered that SWAT only saves a condensed version of my smb.conf.

Here is the full smb.conf.

# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2002/07/26 12:47:04

# Global parameters
[global]
coding system =
client code page = 850
code page directory = /var/lib/samba/codepages
workgroup = WORK
netbios name =
netbios aliases =
netbios scope =
server string = File-Server
interfaces =
bind interfaces only = No
security = USER
encrypt passwords = Yes
update encrypted = No
allow trusted domains = Yes
hosts equiv =
min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = No
password server =
smb passwd file = /etc/samba/smbpasswd
root directory =
pam password change = No
passwd program = /bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
lanman auth = Yes
use rhosts = No
log level = 0
syslog = 1
syslog only = No
log file = /var/log/samba/log.%m
max log size = 50
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
large readwrite = No
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
announce version = 4.5
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max packet = 65535
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
unix extensions = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max smbd processes = 0
max disk size = 0
max open files = 10000
read size = 16384
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
stat cache size = 50
use mmap = Yes
total print jobs = 0
load printers = Yes
printcap name = lpstat
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
strip dot = No
character set =
mangled stack = 50
stat cache = Yes
domain admin group =
domain guest group =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = Auto
local master = Yes
domain master = False
browse list = Yes
enhanced browsing = Yes
dns proxy = No
wins proxy = No
wins server =
wins support = No
wins hook =
kernel oplocks = Yes
oplock break wait time = 0
add share command =
change share command =
delete share command =
config file =
preload =
lock dir = /var/cache/samba
utmp directory =
wtmp directory =
utmp = No
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
time offset = 0
NIS homedir = No
source environment =
panic action =
hide local users = No
host msdfs = No
winbind uid =
winbind gid =
template homedir = /home/%D/%U
template shell = /bin/false
winbind separator = \
winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
comment =
path =
alternate permissions = No
username =
guest account = nobody
invalid users =
valid users =
admin users =
read list =
write list =
printer admin =
force user =
force group =
read only = Yes
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
inherit permissions = No
guest only = No
guest ok = No
only user = No
hosts allow = 10.168.110. 127.
hosts deny =
status = Yes
nt acl support = Yes
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
write cache size = 0
max print jobs = 1000
printable = No
postscript = No
printing = cups
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer name =
use client driver = No
default devmode = No
printer driver =
printer driver file = /etc/samba/printers.def
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide unreadable = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs object =
vfs options =
msdfs root = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[downloads]
comment = file downloads
path = /home/downloads
guest account =
valid users = Bob Mary
admin users = Bob Mary
read only = No
 
Old 07-26-2002, 07:44 PM   #12
XASCompuGuy
LQ Newbie
 
Registered: Jul 2002
Posts: 10

Rep: Reputation: 0
Ok. From your near "gotcha", I suspect that perhaps you did not generate the smbpasswd file from your /etc/passwd file? Type this in your console (as root of course):
cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

This will generate a smbpasswd file from your system password file. Note that this DOES NOT copy your system password files, merely generates a list of users for Samba. Then, run smbpasswd <username> to generate a password. The password used for Samba need not be the same as the password used to logon to your Linux machine. After that, try logging in from the Windows 98 machine.
 
Old 07-28-2002, 02:14 PM   #13
LinuxHaven
Member
 
Registered: Jul 2002
Posts: 35

Rep: Reputation: 15
Did you try XASCompuGuy's suggestion? Other than that, I don't know what's wrong.
 
Old 07-29-2002, 02:26 AM   #14
sudheermt
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
I suggest not to use SWAT, instead you make smb.conf manualy
add only lines which is required,.

I will modify my smb.conf, to match yours.
make user, you addes users , using smbpasswd command
#smbpasswd -a -u <username> press enter, it will ask for passwd... confirm passwd.

thanks
Sudheer
 
Old 07-29-2002, 03:11 AM   #15
sudheermt
LQ Newbie
 
Registered: Jul 2002
Posts: 11

Rep: Reputation: 0
Below is smb.conf, modified, please go through the comment,
make necessary changes, to make it suitable for your machine go through, log file in log file = /var/log/samba/. I am Using Samba as Domain controller. ( I have not NT domains) on Redhat 7.2, the clients are all WIN98SE. be sure to use, smbpasswd command to update samba passwd file.


[global]
workgroup = <work>
server string = File-server
netbios name = <computer name>
printcap name = /etc/printcap
load printers = yes
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
log file = /var/log/samba/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
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
password level = 8
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*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
remote announce = <boradcast address>
local master = yes
os level = 33
domain master = yes
preferred master = yes
# Enable this if you want Samba to be a domain logon server for
# Windows95/98 workstations.
domain logons = yes
# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
logon path = \\%L\home\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
dns proxy = no
case sensitive = no

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
public = no

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


# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes


[MyFolder]
comment = My Folder
path = /usr/local/myfolder
public = yes
browseable = yes
guest ok = yes
read only = no
# below, I have added no of users in group mentioned ie cstaff and users
# here users in group cstaff & users can access / read write to this share
write list = @cstaff, @users
force group = +users
force create mode = 0775
force directory mode = 0775
writeable = yes

# My Documents directory,for people in
# the "cstaff" group

[My-Documents]
path = /usr/local/myDocuments
public = yes
only guest = yes
read only =No
printable = No
write list = @cstaff, @users
force group = +users
force create mode = 0775
force directory mode = 0775

-------------------------
Sud's
 
  


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
ICS between Linux and win98se cythrawll Slackware 16 03-31-2006 06:38 AM
from win98se to mepis 3.3.1 gm2fz Linux - Newbie 2 07-20-2005 12:59 PM
LILO - cannot boot WIN98SE dreavien Linux - Software 2 07-11-2004 02:58 PM
Win98SE to Linux Question LinuxLou Linux - Newbie 10 12-01-2003 03:25 PM
win98se partition exigent Linux - Hardware 6 08-18-2002 01:06 PM

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

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