|
Home > Archive > Red Hat Networking > January 2004 > smb.conf
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Would someone mind cut-and-pasting their smb.conf file, or at least the
portion thereof, which shows the code which sets up Samba for file-sharing
and access from an XP machine? Thanks.
Currently, my XP machine file manager can see the workgroup in which the
Linux machine is located as well as the Samba server, but Samba server
will not allow access.
| |
| Andreas Stuetzner 2004-01-23, 7:48 pm |
|
Dave schrieb:
quote:
> Would someone mind cut-and-pasting their smb.conf file, or at least the
> portion thereof, which shows the code which sets up Samba for file-sharing
> and access from an XP machine? Thanks.
>
> Currently, my XP machine file manager can see the workgroup in which the
> Linux machine is located as well as the Samba server, but Samba server
> will not allow access.
>
>
--
#======================= ACN-Samba Configuration
=====================================
[global]
workgroup = BUERO
server string = Server2
;hosts allow = 192.168.1. 192.168.0. 127. 10.
load printers = no
;printing = lprng
;guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
;ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updat
ed*successfully*
username map = /etc/samba/smbusers
;include = /etc/samba/smb.conf.%m
;obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 10.0.0.1/8
;remote browse sync = 192.168.3.25 192.168.5.255
;remote announce = 192.168.1.255 192.168.2.44
local master = yes
os level = 254
domain master = yes
preferred master = yes
domain logons = yes
;logon script = %m.bat
;logon script = %U.bat
logon path = \\%L\Profiles\%U
wins support = yes
;wins server = w.x.y.z
;wins proxy = yes
dns proxy = no
;preserve case = no
;short preserve case = no
;default case = lower
;case sensitive = no
#============================ [ACN] Share Definitions
==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
;map to guest = bad user
[netlogon]
comment = Network Logon Service
path = /usr/local/samba/lib/netlogon
guest ok = yes
writable = no
share modes = no
[temp]
comment = Temporary Files
path = /home/temp
public = yes
writable = yes
printable = no
# write list = @root
---
Andreas Stuetzner
Computer Scientist and System Administrator
Member of #scene.at and #geekcluster
| |
| Mauriat 2004-01-23, 7:48 pm |
| Dave wrote:
quote:
> Would someone mind cut-and-pasting their smb.conf file, or at least the
> portion thereof, which shows the code which sets up Samba for file-sharing
> and access from an XP machine? Thanks.
>
> Currently, my XP machine file manager can see the workgroup in which the
> Linux machine is located as well as the Samba server, but Samba server
> will not allow access.
>
>
Did you run smbadduser and smbpasswd to give accounts to access the
Samba server?
--
Mauriat (www.mjmwired.net)
----------------------------
Remove 'NOSPAM' to email me.
| |
| Michael Thomas 2004-01-23, 7:48 pm |
| On Sun, 30 Nov 2003 15:12:19 +0000, Dave <davethepave@yahoo.com>
wrote:
quote:
>Would someone mind cut-and-pasting their smb.conf file, or at least the
>portion thereof, which shows the code which sets up Samba for file-sharing
>and access from an XP machine? Thanks.
>
>Currently, my XP machine file manager can see the workgroup in which the
>Linux machine is located as well as the Samba server, but Samba server
>will not allow access.
>
What are the permissions on the shares? Does your user own or have
access to the shares and are they set up to be readable and writeable?
security = user
workgroup = cma
encrypt passwords = Yes
min passwd length = 6
smb passwd file = /etc/smbpasswd
server string = Image Server
load printers = Yes
printcap name = /etc/printcap
[images]
path = /images
valid users = mthomas
public = no
writable = yes
printable = no
create mask = 0765
[binfiles]
path = /binfiles
valid users = mthomas
public = no
writable = yes
printable = no
create mask = 0765
[mtfiles]
path = /images/mtfiles
valid users = mthomas
public = no
writable = yes
printable = no
create mask = 0765
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
| |
| Stephen Harris 2004-01-23, 7:48 pm |
|
"Dave" <davethepave@yahoo.com> wrote in message
news:pan.2003.11.30.15.12.17.710996@yahoo.com...quote:
> Would someone mind cut-and-pasting their smb.conf file, or at least the
> portion thereof, which shows the code which sets up Samba for file-sharing
> and access from an XP machine? Thanks.
>
> Currently, my XP machine file manager can see the workgroup in which the
> Linux machine is located as well as the Samba server, but Samba server
> will not allow access.
>
>
This is a permission problem. I saw someone advise using adduser.
If you haven't gotten very far with this, erase samba 2.2.8 and
download and install the 3.01pre3 which works well and is automated
for some of the configuration tasks.
With version 3.+ after adduser the command is smbpasswd -a username
The username must also be on the win xp machine.
If you want to initially use the swat program change
only_from = localhost to only_from = 127.0.0.1
because though they are supposed to be equivalent, they are not,
if you are using RH9.
Also change in swat: disable = yes to disable = no
or maybe it is enable = no should be changed to enable = yes
I forget whether it is in terms of disable or enable but
the default setting is incorrect so change to the opposite.
To get a feel for this create a username account called root
with administrative priveleges on the win xp machine assuming
you have pro (there may be problems with home) and logon
to both machines as root. If you have root in both smbpasswd
and Windows XP users this will likely work for file sharing
both ways. Next try the user "everyman" on both machines.
If the connection doesn't work both ways you will see that
the problem rests in groups and permissions. Also if you
want to share printers you will need guest ok = yes in
the [printer] share section. If you use google, you can find
posts about this on the linux.samba group and Howto.
On the linux side I use Xsmbrowser for graphical network.
I spent two weeks on this so read docs when it comes to printing.
Regards,
Stephen
| |
| -=- jd -=- 2004-01-23, 7:48 pm |
| Stephen...
I just came across this post and noted you're use of the smb browser.
Quick question: does it allow one to actually work with file on remote
file systems? The newwer versions of RH that I've played with lately
have some sort of "built-in" smb browse capability that seems to work ok
for "lookie only, but no touchie". In other words - you can't actually
do anything with remote files viewed in this manner. One has to copy
them over to the local filesystem and then you are allowed to open it,
play it, etc... just curious about this one that you mention.
Thanks...
-=- jd -=-
Stephen Harris wrote:quote:
> "Dave" <davethepave@yahoo.com> wrote in message
> news:pan.2003.11.30.15.12.17.710996@yahoo.com...
>
>
>
> This is a permission problem. I saw someone advise using adduser.
> If you haven't gotten very far with this, erase samba 2.2.8 and
> download and install the 3.01pre3 which works well and is automated
> for some of the configuration tasks.
>
> With version 3.+ after adduser the command is smbpasswd -a username
> The username must also be on the win xp machine.
>
> If you want to initially use the swat program change
> only_from = localhost to only_from = 127.0.0.1
> because though they are supposed to be equivalent, they are not,
> if you are using RH9.
> Also change in swat: disable = yes to disable = no
> or maybe it is enable = no should be changed to enable = yes
> I forget whether it is in terms of disable or enable but
> the default setting is incorrect so change to the opposite.
>
> To get a feel for this create a username account called root
> with administrative priveleges on the win xp machine assuming
> you have pro (there may be problems with home) and logon
> to both machines as root. If you have root in both smbpasswd
> and Windows XP users this will likely work for file sharing
> both ways. Next try the user "everyman" on both machines.
> If the connection doesn't work both ways you will see that
> the problem rests in groups and permissions. Also if you
> want to share printers you will need guest ok = yes in
> the [printer] share section. If you use google, you can find
> posts about this on the linux.samba group and Howto.
> On the linux side I use Xsmbrowser for graphical network.
> I spent two weeks on this so read docs when it comes to printing.
>
> Regards,
> Stephen
>
>
|
|
|
|
|