LinuxQuestions.org
Help answer threads with 0 replies.
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-22-2006, 03:47 PM   #1
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Suse 9.3 Fileserver question


I'm trying to set up a network using Suse 9.3 for the fileserver for the first time. I've got 3 MS windows clients (2 xp and 1 2k). All 4 machines are using a Netgear wireless router although the Linux fileserver and one of xp boxes are connected directly to the router. I'm using the KDE interface and YaST to set up the Linux fileserver.

I can see the network using Konquerer from the linux machine, but when I attempt to browse to the linux box from windows machines I see

users on Samba
groups on Samba
profiles on Samba

when I click on the icon from WinXP I get a login screen, but the username and password I put into the linux box for root or any other user doesn't seem to work. I also can't login to the smb://linux/users from the linux machine itself.

What am I missing?

Thanks!

Last edited by insight; 02-22-2006 at 04:11 PM.
 
Old 02-22-2006, 03:58 PM   #2
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
It is not enough to create Unix users. You must also create Samba users to match the Unix users. Do this using the following command:

smbpasswd -a unix_user

Then you shoud be able to log in with your username and password.

~Myles
 
Old 02-22-2006, 04:15 PM   #3
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I've got it. Thanks!!!

Last edited by insight; 02-22-2006 at 04:20 PM.
 
Old 02-22-2006, 04:26 PM   #4
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Spoke too soon. Now I can access smb shares from linux, but windows boxes now see the linux box but instead of a login screen it says:

\\Linux\users is not accessible. You might not have permission to use this network service. Contact the admininstrator of this server to find out if you have access permissions. The network path was not found.
 
Old 02-22-2006, 04:42 PM   #5
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Might we see your smb.conf file? That might help in determining the problem.

~Myles
 
Old 02-22-2006, 05:02 PM   #6
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, I can save to the windows client machines, but can't access the linux box from them. And I can ping the linux server from winxp...

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-04-04
[global]
workgroup = INSIGHT
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
idmap gid = 10000-20000
idmap uid = 10000-20000

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes

[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[clientfiles]
comment = Directory for client files
inherit acls = Yes
path = /home/lbunnell/ClientFiles
read only = No

Last edited by insight; 02-23-2006 at 11:45 AM.
 
Old 02-23-2006, 12:04 PM   #7
Dmjmusser
Member
 
Registered: Nov 2005
Location: Detroit, Michigan -- USA
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Okay...well, I'm gonna be blunt with my opinion about your smb.conf file.

It's too dang big.

There...got that out...

Seriously, though, if this is just a file server, you don't need all that junk about domain logons and network services. I've got a really simple setup for my file server that works well if you're interested.

~Myles
 
Old 02-23-2006, 08:04 PM   #8
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Please, I have no idea what I'm doing
 
Old 02-23-2006, 08:13 PM   #9
dnorseman
Member
 
Registered: Aug 2003
Location: Chicago, USA
Distribution: RHEL, CentOS, Ubuntu
Posts: 43

Rep: Reputation: 15
Just do something basic like this.

[global]
workgroup = workgroup
server string = Name
hosts allow = 192.168.1.
log file = /var/log/samba/%m.log
max log size = 50
security = user
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[homes]
comment = Home Directories
browseable = no
writable = yes

This should get you going. Then add shares as necessary.
 
Old 02-24-2006, 09:14 AM   #10
insight
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Same problem using this smb.conf - can see linux from windows but can't access. Linux can access windows box

anything else I could try?

anything about my network setup you might need to know? I'm using a Netgear Router MR814v2

smbd.log:

[2006/02/24 04:54:29, 0] lib/util_sock.c:get_peer_addr(1150)
getpeername failed. Error was Transport endpoint is not connected


Last few lines from winxp's samba log file:


[2006/02/24 04:38:02, 1] smbd/process.crocess_smb(1084)
Connection denied from 192.168.0.4
[2006/02/24 04:38:50, 1] lib/util_sock.c:get_peer_name(1109)
Gethostbyaddr failed for 192.168.0.4
[2006/02/24 04:38:50, 0] lib/access.c:check_access(328)
Denied connection from 192.168.0.4 (192.168.0.4)

Last edited by insight; 02-24-2006 at 09:58 AM.
 
  


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
Best distro for a P3 fileserver? LoginError Linux - General 5 01-17-2006 08:45 AM
fileserver ultramagneus Linux - Newbie 1 03-09-2005 07:54 AM
Assistance- Windows Fileserver, SuSE Clients- How do we communicate? ZingSter Linux - Networking 1 02-17-2005 01:44 PM
Fileserver setup stabile007 General 4 08-15-2004 07:43 PM
Using Samba As Fileserver thepurpleblob Linux - Networking 5 09-02-2003 02:10 PM

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

All times are GMT -5. The time now is 11:09 AM.

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