LinuxQuestions.org
Visit Jeremy's Blog.
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 05-23-2003, 11:58 AM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Samba is really starting to irritate me, can anyone help?


Hi all,

I have used Samba for a while now, and I have always thought I was pretty decent at it. I just recently installed the latest RPM and have setup the smb.conf file. Here's a copy of it:

# Samba config file created using SWAT
# from 192.168.5.16 (192.168.5.16) # Date: 2003/03/31 14:40:35

# Global parameters [global]
workgroup = BARTLETT
server string = File Server
encrypt passwords = Yes
min passwd length = 3
log file = /var/log/samba/log.%m
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
local master = Yes
dns proxy = No
wins support = Yes

[sokhan]
valid users = sokhan
comment = My Stuff
path = /home/sokhan
writable = yes
browseable = No

[john]
valid users = john
comment = My Stuff
path = /home/john
writable = yes
browseable = No

[nancy]
valid users = nancy
comment = My Stuff
path = /home/nancy
writable = yes
browseable = No

[chris]
valid users = chris
comment = My Stuff
path = /home/chris
writable = yes
browseable = No

[public]
comment = Save important files here
path = /home/public
public = yes
writable = yes
guest ok = yes
read only = no
create mode = 777
directory mode = 777

Basically, this Linux machine (RH8) is running Samba, and what I want to happen is this:

Users chris, john, nancy, and sokhan each be able to map a network drive from their Windows machines to their home folders on the Linux box. Only these users can access their respective folders, ie john is the only one with access john. The public directory is to be accessible by all users, as it will be seen in "Network Neighborhood". Now, I have setup ALL the windows boxes to use (and automatically) login with the same usernames and passwords that samba has. This all used to work, but I had to wipe and reinstall this linux machine, so I had to reinstall samba. All of the users have been created on the linux box (hostname goliath), and all of the smbusers have also been created with the proper passwords.

What is happening is that when I try to map a drive on my personal windows machine (I am chris), it asks me for the username and password. First of all, it shouldn't ask me that since the windows machine is already logged in with the proper username and password. Secondly, even after I supply the info, it just tells me to do it again, as if the info is wrong! This goes on in perpetuity. I am not getting any error messages, it just keeps asking me for the username and password, but never connects. Could this be a permissions ot ownership problem with the home directories on the linux box? All the home directories are owned by their respective users and all their permissions are set to 777. The only folder not owned by it's user is "public" because it is owned by root. Can someone p[lease help me troubleshoot this? This is driving me nuts! Thank you very, very much.

Chris
 
Old 05-23-2003, 12:27 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Hi Chris!

A few pointers:
1) "[global]" should be on a line by itself
2) You should have "security = user"
3) You need to tell samba which password file to use "smb passwd file = /etc/samba/smbpasswd"
 
Old 05-23-2003, 12:49 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,317

Rep: Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006Reputation: 4006
Asking for a password is normal. I would of expected somekind of error message if something wasn't correct.

BTW this will automatically create shares for home directories for each user.
Code:
  [homes]
    comment = Home Directories
    browsable = no
    writable = yes
What version of windows are you using?
 
Old 05-23-2003, 12:52 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Windows wont ask for a password - if your login details are the same on both machines. This is a bit of a security flaw asyour details are sent over the network automatically.
 
Old 05-24-2003, 12:18 PM   #5
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Original Poster
Rep: Reputation: 30
Hi again, David,

I'll check on those things when I get back home, but right now, I am out of state on a short vacation. Please check back later, as I will post further findings soon. Thanks!

Chris
 
Old 05-24-2003, 01:33 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Cool - have a nice time!
 
  


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
Starting Samba agallant AIX 7 10-31-2004 06:30 AM
Starting samba lethargic Linux - Newbie 3 02-04-2003 01:54 PM
starting samba chrismiceli Linux - Networking 3 10-23-2002 11:10 PM
Starting Samba AMDPwred Linux - General 5 01-27-2002 11:14 PM
M$ is beginning to irritate me.... Stephanie General 1 01-15-2002 02:24 PM

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

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