LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-08-2005, 11:31 AM   #1
bramadams
LQ Newbie
 
Registered: Jul 2004
Location: Waregem, Belgium
Distribution: Slackware 10.2
Posts: 27

Rep: Reputation: 15
Samba: Windows XP Pro access to Linux box


Hi,

At work we've recently installed a Slackware 10.0 box C with Samba on it. It's connected to the XXX.YYY-domain as a little brother of client A (Windows XP) and server B (Red Hat 9). B acts as a DHCP server for a small private LAN with some Linux clients, a Windows 2000-machine and 2 Windows XP Pro-boxes (of which one is a laptop).

I copied the smb.conf of B to C and made some minor changes. I also gave everyone a Unix account and corresponding Samba account (via smbpasswd). Now, the Linux clients and the Windows 2000-box can access their Samba shares (home directories), the Windows XP clients can not.

What's confusing:
  • Client A finds C in its neighborhood, he can log in and sees the available shares. When accessing his home share, he gets an "Access denied"-error and a message telling him to ask for proper permissions. Even if we make his home share a 777, this message stays the same. Access to the printer map (which is empty because there's no printer attached) on the other hand, is possible without any problem.
  • The other troublesome XP-clients (those behind server B), can't even find C in the first place. On trying to mount the share by name, they get the same error as A did.

So, I wonder whether someone has encountered these problems too? Here's the smb.conf (after tweaking our first one with swat):
Code:
# Global parameters
[global]
	workgroup = OURGROUP
	server string = Samba Server
	obey pam restrictions = Yes
	smb passwd file = /etc/samba/smbpasswd
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
	username map = /etc/samba/smbusers
	unix password sync = Yes
	log file = /var/log/samba/%m.log
	max log size = 1024
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	load printers = No
	dns proxy = No
	ldap ssl = no
	valid users = @users
	hosts allow = XXX.YYY., 127.
	hosts deny = ALL

[homes]
	comment = Home Directories
	read only = No
Any help appreciated,
 
Old 01-09-2005, 02:29 AM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Code:
pam password change = yes
as well as the line about pam restrictions.

Try changing these options to no, or removing the lines.
I don't think pam is included in Slack.
This may be why your error is occuring.

--Shade
 
Old 01-09-2005, 03:20 PM   #3
Beresford
LQ Newbie
 
Registered: Oct 2004
Location: New Zealand
Posts: 28

Rep: Reputation: 15
Correct, there is no pam in Slackware.
 
Old 01-09-2005, 05:03 PM   #4
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
The option you have if you don't want to complicate yourself very much is install dorpline gnome for Slack, it includes the pam package by default (I found that out too late), I don't like pam
 
Old 01-10-2005, 03:35 AM   #5
bramadams
LQ Newbie
 
Registered: Jul 2004
Location: Waregem, Belgium
Distribution: Slackware 10.2
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

I did remove those PAM-lines, but that didn't do much. After removing the DENY ALL, client D (a twin of A) and the clients behind B can access server C. I can't test client A currently, but normally it should work now.

Thanks for the suggestions,
 
Old 01-12-2005, 02:44 AM   #6
bramadams
LQ Newbie
 
Registered: Jul 2004
Location: Waregem, Belgium
Distribution: Slackware 10.2
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

I've been too optimistic . Client A is the only one unable to use Samba correctly. User A's Samba account works, though. We've tried it via a laptop on the same wifi-connection as client A. Both the laptop and client A have the same OS (Windows XP Pro with SP2). So, the problem isn't Slackware-related anymore.

Just for the sake of completeness, part of the error log:

Code:
  NT user token of user S-1-5-21-1153249575-2565324612-427322846-501
  contains 7 SIDs
  SID[  0]: S-1-5-21-1153249575-2565324612-427322846-501
  SID[  1]: S-1-5-21-1153249575-2565324612-427322846-514
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-32-546
  SID[  5]: S-1-5-21-1153249575-2565324612-427322846-1197
  SID[  6]: S-1-5-21-1153249575-2565324612-427322846-1199
[2005/01/11 11:09:13, 5] auth/auth_util.c:make_server_info_sam(844)
  make_server_info_sam: made server info for user nobody -> nobody
[2005/01/11 11:09:13, 3] auth/auth.c:check_ntlm_password(268)
  check_ntlm_password: guest authentication for user [] succeeded
[2005/01/11 11:09:13, 5] auth/auth.c:check_ntlm_password(305)
  check_ntlm_password:  guest authentication for user [] -> [] -> [nobody] succeeded
[2005/01/11 11:09:13, 5] auth/auth_util.c:free_user_info(1298)
  attempting to free (and zero) a user_info structure
[2005/01/11 11:09:13, 10] auth/auth_util.c:free_user_info(1301)
  structure was created for 
[2005/01/11 11:09:13, 3] libsmb/ntlmssp_sign.c:ntlmssp_sign_init(319)
  NTLMSSP Sign/Seal - Initialising with flags:
[2005/01/11 11:09:13, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(62)
  Got NTLMSSP neg_flags=0x60088215
[2005/01/11 11:09:13, 3] smbd/password.c:register_vuid(222)
  User name: nobody	Real name: nobody
[2005/01/11 11:09:13, 3] smbd/password.c:register_vuid(241)
  UNIX uid 99 is UNIX user nobody, and will be vuid 100
[2005/01/11 11:09:13, 3] smbd/process.c:process_smb(890)
  Transaction 3 of length 82
[2005/01/11 11:09:13, 3] smbd/process.c:switch_message(685)
  switch message SMBtconX (pid 31567)
[2005/01/11 11:09:13, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/01/11 11:09:13, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2005/01/11 11:09:13, 2] lib/access.c:check_access(324)
  Allowed connection from  (157.193.92.25)
[2005/01/11 11:09:13, 3] smbd/service.c:make_connection_snum(457)
  Connect path is '/tmp' for service [IPC$]
[2005/01/11 11:09:13, 3] lib/util_seaccess.c:se_access_check(251)
[2005/01/11 11:09:13, 3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user sid is S-1-5-21-1153249575-2565324612-427322846-501
  se_access_check: also S-1-5-21-1153249575-2565324612-427322846-514
  se_access_check: also S-1-1-0
  se_access_check: also S-1-5-2
  se_access_check: also S-1-5-32-546
  se_access_check: also S-1-5-21-1153249575-2565324612-427322846-1197
  se_access_check: also S-1-5-21-1153249575-2565324612-427322846-1199
[2005/01/11 11:09:13, 3] smbd/vfs.c:vfs_init_default(203)
  Initialising default vfs hooks
[2005/01/11 11:09:13, 2] smbd/uid.c:change_to_user(205)
  change_to_user: Invalid vuid used 100 or vuid not permitted access to share.
[2005/01/11 11:09:13, 0] smbd/service.c:make_connection_snum(541)
  Can't become connected user!
[2005/01/11 11:09:13, 3] smbd/error.c:error_packet(118)
  error packet at smbd/reply.c(389) cmd=117 (SMBtconX) NT_STATUS_LOGON_FAILURE
[2005/01/11 11:09:13, 3] smbd/process.c:process_smb(890)
  Transaction 4 of length 43
[2005/01/11 11:09:13, 3] smbd/process.c:switch_message(685)
  switch message SMBulogoffX (pid 31567)
[2005/01/11 11:09:13, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/01/11 11:09:13, 5] auth/auth_util.c:free_server_info(1324)
  attempting to free (and zero) a server_info structure
[2005/01/11 11:09:13, 3] smbd/reply.c:reply_ulogoffX(1207)
  ulogoffX vuid=100
[2005/01/11 11:09:23, 3] smbd/process.c:timeout_processing(1104)
  timeout_processing: End of file from client (client has disconnected).
[2005/01/11 11:09:23, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/01/11 11:09:23, 2] smbd/server.c:exit_server(568)
  Closing connections
[2005/01/11 11:09:23, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to 
[2005/01/11 11:09:23, 3] smbd/connection.c:yield_connection(76)
  yield_connection: tdb_delete for name  failed with error Record does not exist.
[2005/01/11 11:09:23, 3] smbd/server.c:exit_server(611)
  Server exit (normal exit)
Strange thing is: we logged in as a specific user having a UNIX and a Samba account. The log says we're logged in as nobody...

Any suggestions?
 
Old 01-31-2005, 04:30 PM   #7
avaleru
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
Smile suggestion

Hi,

I am definitely newbie by all definitions but I think the problem might be adding some registry info into Windows:
http://www.ccs.uky.edu/docs/samba.htm

regards
 
Old 02-05-2005, 09:25 AM   #8
bramadams
LQ Newbie
 
Registered: Jul 2004
Location: Waregem, Belgium
Distribution: Slackware 10.2
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

We already tried the register hacks, to no avail. But, we also did the following 2 things:
  • browseable = no
  • install the Samba 3.0.10 instead of the standard one included in Slackware 10.0

Apparently, one of the two did the job, so now we can all samba ;-)!

Thanks to everybody for their input,
 
  


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
Access Linux box using windows very slow niloshima Linux - Networking 1 12-01-2005 01:46 AM
Samba - No Write Access from Linux Box HKDude Linux - Networking 6 05-30-2005 02:59 PM
can't access my windows pc from linux box: need password onthos Linux - Networking 11 03-19-2005 09:39 PM
Samba access WIN XP shares from linux box rmanocha Linux - Software 8 10-24-2003 08:28 AM
Linux box - Windows box =Samba? hbidad Linux - Software 7 02-10-2003 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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