LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-31-2003, 12:18 PM   #16
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30

check your permissions in the smb.conf file for those files.

and make sure you have the unix sync set to yes

If you don't have it, add this line to your smb.conf file somewhere

unix password sync = yes

Last edited by scottpioso; 05-31-2003 at 12:41 PM.
 
Old 05-31-2003, 12:42 PM   #17
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Also, make sure you add this line to your smb.conf file. I was checking over mine. This is so your smb users will automatically be mapped to the unix users file.

Unix users can map to different SMB User names
username map = /etc/samba/smbusers


And make sure you go into your smbusers file and add your samba users there like this:

# Unix_name = SMB_name1 SMB_name2

for instance, if your name is Joe on Linux and your samba name is the same, you'd type this:

Joe = Joe


Last edited by scottpioso; 05-31-2003 at 12:49 PM.
 
Old 06-01-2003, 12:59 AM   #18
aldanor
LQ Newbie
 
Registered: Dec 2002
Location: Nashville, TN
Distribution: Red Hat 8.0
Posts: 8

Rep: Reputation: 0
I added username map = /etc/samba/smbusers
I already had unix password sync = Yes
Also, I added Nathan = Nathan to the smbusers file.

Still not allowing access to public share.

Here's the latest smb.conf file:

# Samba config file created using SWAT
# from 192.168.1.101 (192.168.1.101)
# Date: 2003/06/01 00:46:01

# Global parameters
[global]
workgroup = HOBBITON
netbios name = PIPPIN
server string = Red Hat Linux 8.0 File Server
encrypt passwords = 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 = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = Yes

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[public]
path = /home/Nathan/temp
valid users = Nathan
read only = No
guest ok = Yes
hosts allow = 192.168.1


And, here's my smbusers file:

# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
Nathan = Nathan

I'm not exactly sure how to set permissions for the share, so that may be the problem. Well, that and my ignorance

Thanks for all your help so far.
 
Old 06-01-2003, 03:24 AM   #19
engnet
Member
 
Registered: May 2003
Posts: 30

Rep: Reputation: 15
xp and samba

XP to samba, I always do the following and never have a problem getting a connection

in xp/2000 u will need to run regedit or regedit32

go to the following and change these settings:

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Netlogon\Parameters]
"requirestrongkey"=dword:00000000
"requiresignorseal"=dword:00000000


[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Netlogon\Parameters]
"requirestrongkey"=dword:00000000
"requiresignorseal"=dword:00000000


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
"requirestrongkey"=dword:00000000
"requiresignorseal"=dword:00000000

Then local sec pol's

Domain member: Digitally encrypt or sign secure channel data (always)

set to Disabled

Domain member: Digitally encrypt or sign secure channel data (when possible)

set to Disabled

Domain member: Digitally sign secure channel data (when possible)

set to Disabled

Hope this helps

Chris
 
Old 06-01-2003, 07:09 AM   #20
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Hi Nathan,

First of all, I think you need to change where it says valid users in the homes directory and put your users in there separated by commas. I think there is a way to use variables to set up new users to automatically set up a file system but I don't know how to do that yet. Secondly, you have an ACL set up to only allow access from host 192.168.1. You're missing the last octet firstly, and secondly, is that what you really want to do because how you have it right now, only that host would be allowed access to the folder, and you need to make sure that you have that folder actually created.

And insert a browseable = yes and a writable = yes statement into the public share.

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[public]
path = /home/Nathan/temp
valid users = Nathan
read only = No
guest ok = Yes
hosts allow = 192.168.1

Last edited by scottpioso; 06-01-2003 at 07:13 AM.
 
Old 06-01-2003, 03:43 PM   #21
aldanor
LQ Newbie
 
Registered: Dec 2002
Location: Nashville, TN
Distribution: Red Hat 8.0
Posts: 8

Rep: Reputation: 0
taking the 192.168.1 out of the hosts allow section seemed to solve the problem.

Thanks!
 
Old 06-01-2003, 03:58 PM   #22
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
No problem. Glad I could help.
 
  


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
!@#$%^&ing windopes XasPeration! Charred General 25 07-12-2005 01:29 PM
SAMBA & CUPS (Linux & Windows Printing) xcythe Linux - Networking 4 06-12-2005 11:46 AM
SuSE9 && Samba && Win2k DaFrEQ Linux - Software 2 01-27-2004 07:45 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
(*&@ING Winblows! patientzero Linux - Software 33 09-14-2003 06:55 PM

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

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