Unix Technical Forum

samba (smb.conf) config

This is a discussion on samba (smb.conf) config within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I am trying to configure my /etc/samba/smb.conf file to work with windows xp. Here is what I have set ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 02:00 PM
Rory Jakes
 
Posts: n/a
Default samba (smb.conf) config

I am trying to configure my /etc/samba/smb.conf file to work with
windows xp. Here is what I have set up so far.

[global]

netbios name = Samba
workgroup = HOME
security = SHARE

[data]

path = /home/rjakes/data
guest ok = yes
read only = no
browseable = yes
writeable = yes

I can't make it work. I can see my win xp box over the network by
//smb/<computer name> but I cannot see my slackware shared data
directory folder from win xp's "My network places".

I had it working with slack 9.1, but can't find the exact script I was
using. What am I mising?

Thanks in advance
Rory Jakes
roryjakes@yahoo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 02:00 PM
mike
 
Posts: n/a
Default Re: samba (smb.conf) config

Rory Jakes wrote:

>>>

> I had it working with slack 9.1, but can't find the exact script I was
> using. What am I mising?
>
> Thanks in advance
> Rory Jakes
> roryjakes@yahoo.com


First it would help knowing if u use samba 3.x or 2.x. Slight diffrence in
the way you set it up.

But some lines are missing as I can see.


[global]
workgroup = home
server string = Somthing_of your choice
hosts allow = 172.16. # if you want to!
load printers = yes # if You want to
printing = cups # or what ever you choose
log file = /var/log/samba.%m # Not a big must
max log size = 50 # your choice : )
security = user # don't use security=share on nt based systems
#(NT,W2K,XP.
encrypt passwords = yes # This is a must since NT based systems require
#(how the he-- does that spell??)
Here comes a questionmark
[data]
Perhaps you should consider this:

path = /home/rjakes/data
guest ok = yes
read only = no
browseable = yes
writable = yes
---------------
Look here! writable NOT writeable! (Guess the programmer was just as bad in
english as me??)


For the rest check /etc/samba/smb.conf_example or even the howto or man
pages! : )

Micke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 02:00 PM
Dieu Phan
 
Posts: n/a
Default Re: samba (smb.conf) config

Rory Jakes wrote:

> I am trying to configure my /etc/samba/smb.conf file to work with
> windows xp. Here is what I have set up so far.
>
> [global]
>
> netbios name = Samba
> workgroup = HOME
> security = SHARE
>
> [data]
>
> path = /home/rjakes/data
> guest ok = yes
> read only = no
> browseable = yes
> writeable = yes
>
> I can't make it work. I can see my win xp box over the network by
> //smb/<computer name> but I cannot see my slackware shared data
> directory folder from win xp's "My network places".
>
> I had it working with slack 9.1, but can't find the exact script I was
> using. What am I mising?
>
> Thanks in advance
> Rory Jakes
> roryjakes@yahoo.com

if you r a linux amateur like me, just using SWAT to configure samba
then reverse to look back /etc/samba/smb.conf, learn more and fast..
If you like build it from finger by finger, read man smb.conf and a heap
of docs available on web
cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 02:02 PM
Rory Jakes
 
Posts: n/a
Default Re: samba (smb.conf) config

Dieu Phan <phannhatdieu_NOSPAM@yahoo.com.au> wrote in message news:<ce2vhk$1ts$1@lust.ihug.co.nz>...
> Rory Jakes wrote:
>
> > I am trying to configure my /etc/samba/smb.conf file to work with
> > windows xp. Here is what I have set up so far.
> >
> > [global]
> >
> > netbios name = Samba
> > workgroup = HOME
> > security = SHARE
> >
> > [data]
> >
> > path = /home/rjakes/data
> > guest ok = yes
> > read only = no
> > browseable = yes
> > writeable = yes
> >
> > I can't make it work. I can see my win xp box over the network by
> > //smb/<computer name> but I cannot see my slackware shared data
> > directory folder from win xp's "My network places".
> >
> > I had it working with slack 9.1, but can't find the exact script I was
> > using. What am I mising?
> >
> > Thanks in advance
> > Rory Jakes
> > roryjakes@yahoo.com

> if you r a linux amateur like me, just using SWAT to configure samba
> then reverse to look back /etc/samba/smb.conf, learn more and fast..
> If you like build it from finger by finger, read man smb.conf and a heap
> of docs available on web
> cheers

************
************

I have tried your suggestions and to no avail. I am running the
following now and it still does not work:

[global]

netbios name = Samba
workgroup = HOME
security = SHARE
;encrypt passwords = yes

[data]

path = /home/rjakes/data
read onfiltered = no
guest onfiltered = yes
guest ok = yes
read only = no
browseable = yes
writable = yes

I tried it with encrypt passwords = yes uncommented and it did not
work either. I displayed folders from a Samba link on both windows
machines on my network with 9.1, but I don't know what configuration I
used. I changed the spaelling of writable (above) and by the way I am
running Samba 3.x.

Please help.
Rory Jakes
roryjakes@yahoo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 02:02 PM
mike
 
Posts: n/a
Default Re: samba (smb.conf) config

Rory Jakes wrote:


> I tried it with encrypt passwords = yes uncommented and it did not
> work either. I displayed folders from a Samba link on both windows
> machines on my network with 9.1, but I don't know what configuration I
> used. I changed the spaelling of writable (above) and by the way I am
> running Samba 3.x.
>
> Please help.
> Rory Jakes
> roryjakes@yahoo.com


Are u sure you have the users on you server then? You must have them as
ordinary user and samba users. 'smbpassw -a username' you don't have to set
the same password as the unix password BUT the same as it is on the wdos
account.
Then u uncomment the encrypt passwords line.

If still not working then run the guide to setup a network on the XP again.
I have to do that once or twice a week since of some reason the XP-box
loses it's contact to smb once in a while with no reason. (W2K didn't) My
other clients running Slack 9.1, 10.0 and Mandrake 10 never done either.
But XP should spell Xellent Pollution.

Micke
Micke
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 02:07 PM
NixerX
 
Posts: n/a
Default Re: samba (smb.conf) config

Add this line to the share section:
guest only = yes
or try
public = yes


if all else fails check your unix permissions on the shared folder and
adjust accordingly.

For a peer to peer id say chown <linux username>:users
/path/to/shared/folder
then chmod 770 that same folder.

-J


On Tue, 27 Jul 2004, mike wrote:

> Rory Jakes wrote:
>
>
> > I tried it with encrypt passwords = yes uncommented and it did not
> > work either. I displayed folders from a Samba link on both windows
> > machines on my network with 9.1, but I don't know what configuration I
> > used. I changed the spaelling of writable (above) and by the way I am
> > running Samba 3.x.
> >
> > Please help.
> > Rory Jakes
> > roryjakes@yahoo.com

>
> Are u sure you have the users on you server then? You must have them as
> ordinary user and samba users. 'smbpassw -a username' you don't have to set
> the same password as the unix password BUT the same as it is on the wdos
> account.
> Then u uncomment the encrypt passwords line.
>
> If still not working then run the guide to setup a network on the XP again.
> I have to do that once or twice a week since of some reason the XP-box
> loses it's contact to smb once in a while with no reason. (W2K didn't) My
> other clients running Slack 9.1, 10.0 and Mandrake 10 never done either.
> But XP should spell Xellent Pollution.
>
> Micke
> Micke
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 02:08 PM
slacker
 
Posts: n/a
Default Re: samba (smb.conf) config

my sincere apologies if you have already found the answer, and for this
late reply, but i dont check the newsgroup too often.

you need to make the share "public" by adding "public = yes" under the
data share.

another problem i experienced with samba 3 is they've changed the
default security-level from share to user. this was an issue for me
because i like to have a pulicly accessible guest share, that didnt
require a special login to access. i got around this by adding "map
guest user = Bad User" under the general config of samba.

by doing this, the client will still be prompted for a login into the
samba server. however if they enter a user name which does not exist,
then they will automatically be mapped to a guest account, and thus able
to access the public share.

a bit off track there, but it might be a problem you'll experience once
you get the share to display in the first place (seeing that you want to
make use of a guest account) ;-)

anyway hope that helps.

Dieu Phan wrote:
> Rory Jakes wrote:
>
>> I am trying to configure my /etc/samba/smb.conf file to work with
>> windows xp. Here is what I have set up so far.
>>
>> [global]
>>
>> netbios name = Samba
>> workgroup = HOME
>> security = SHARE
>>
>> [data]
>>
>> path = /home/rjakes/data
>> guest ok = yes
>> read only = no
>> browseable = yes
>> writeable = yes
>>
>> I can't make it work. I can see my win xp box over the network by
>> //smb/<computer name> but I cannot see my slackware shared data
>> directory folder from win xp's "My network places".
>>
>> I had it working with slack 9.1, but can't find the exact script I was
>> using. What am I mising?
>>
>> Thanks in advance
>> Rory Jakes
>> roryjakes@yahoo.com

>
> if you r a linux amateur like me, just using SWAT to configure samba
> then reverse to look back /etc/samba/smb.conf, learn more and fast..
> If you like build it from finger by finger, read man smb.conf and a heap
> of docs available on web
> cheers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 02:08 PM
Rory Jakes
 
Posts: n/a
Default Re: samba (smb.conf) config

NixerX <root@seraphim.jspazi.com> wrote in message news:<Pine.LNX.4.58.0407291117350.16533@seraphim.j spazi.com>...
> Add this line to the share section:
> guest only = yes
> or try
> public = yes
>
>
> if all else fails check your unix permissions on the shared folder and
> adjust accordingly.
>
> For a peer to peer id say chown <linux username>:users
> /path/to/shared/folder
> then chmod 770 that same folder.
>
> -J
>
>
> On Tue, 27 Jul 2004, mike wrote:


******************
******************

I found a way to make it all work. It turns out that I needed to make
/etc/rc.d/rc.samba an executable and then reboot, then I found that I
could share files with a variety of configurations in
/etc/samba/smb.conf.
Thanks for all your help!!
>
> > Rory Jakes wrote:
> >
> >
> > > I tried it with encrypt passwords = yes uncommented and it did not
> > > work either. I displayed folders from a Samba link on both windows
> > > machines on my network with 9.1, but I don't know what configuration I
> > > used. I changed the spaelling of writable (above) and by the way I am
> > > running Samba 3.x.
> > >
> > > Please help.
> > > Rory Jakes
> > > roryjakes@yahoo.com

> >
> > Are u sure you have the users on you server then? You must have them as
> > ordinary user and samba users. 'smbpassw -a username' you don't have to set
> > the same password as the unix password BUT the same as it is on the wdos
> > account.
> > Then u uncomment the encrypt passwords line.
> >
> > If still not working then run the guide to setup a network on the XP again.
> > I have to do that once or twice a week since of some reason the XP-box
> > loses it's contact to smb once in a while with no reason. (W2K didn't) My
> > other clients running Slack 9.1, 10.0 and Mandrake 10 never done either.
> > But XP should spell Xellent Pollution.
> >
> > Micke
> > Micke
> >

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 02:08 PM
Rich Grise
 
Posts: n/a
Default Re: samba (smb.conf) config

Rory Jakes wrote:
> NixerX <root@seraphim.jspazi.com> wrote in message
>> Add this line to the share section:
>> guest only = yes
>> or try
>> public = yes
>>

>
> I found a way to make it all work. It turns out that I needed to make
> /etc/rc.d/rc.samba an executable and then reboot, then I found that I
> could share files with a variety of configurations in
> /etc/samba/smb.conf.


Just for the sake of pedantry, after setting rc.samba executable,
you don't have to reboot - this isn't Windoze. Just restart inetd:
# kill -HUP `cat /var/run/inetd.pid`

Dawg! I love Slackware!

Cheers!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 02:09 PM
Scott McMillan
 
Posts: n/a
Default Re: samba (smb.conf) config

On Fri, 30 Jul 2004 02:56:24 GMT, Rich Grise <null@example.net> wrote:

>Rory Jakes wrote:
>> NixerX <root@seraphim.jspazi.com> wrote in message
>>> Add this line to the share section:
>>> guest only = yes
>>> or try
>>> public = yes
>>>

>>
>> I found a way to make it all work. It turns out that I needed to make
>> /etc/rc.d/rc.samba an executable and then reboot, then I found that I
>> could share files with a variety of configurations in
>> /etc/samba/smb.conf.

>
>Just for the sake of pedantry, after setting rc.samba executable,
>you don't have to reboot - this isn't Windoze. Just restart inetd:
># kill -HUP `cat /var/run/inetd.pid`


This will activate swat, assuming the line for swat exists in
/etc/inetd.conf and is not commented out. To start/stop samba, you
simply need:

/etc/rc.d/rc.samba [start|stop]

>
>Dawg! I love Slackware!
>
>Cheers!
>Rich



Scott McMillan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com