Click to See Complete Forum and Search --> : Boy am I on a role!!! Here's Samba


mychl
12-28-2001, 02:31 PM
Go HERE (http://www.linuxnewbie.org/nhf/intel/network/samba/samba1.html)

But most distros usually come with samba these days, so you can probably skip the install part.

That was easy huh...
:D

rdeschene
12-28-2001, 02:54 PM
mychl. You're from Terra, GET OUT, I'm from Terra too. Hey, do you know this guy...you know...his name is George, or Carmicheal, or something like that...frizzy black hair...wears a baseball cap and drive a rusted-out F-150...you know !?

Well say hi to him from me next time you see him man.

Seriously though, thanks for posting to "How I did it!" I love this stuff. THIS is the part that makes Linux different from other O.S. and apps out there - people, helping people, are the most wonderful people...

Ludootje
12-28-2001, 03:19 PM
i'm +/- 100% certain that if i copy your smb.conf from there, it wont work.. i tried 3 tutorials, configured my smb.conf each time like they said in the tutorial (always different), when it didn't worked i copied the smb.conf from the example in the tutorial, i posted stuff on the networking forum here, though you don't get a lot of replies there.. anyways, it's still not working and i don't feel like losing an hour with your tutorial, and then see that it's still not working :( :( i gave up the networking mandrake8.0<->win98<->mandrake8.0<->win2k for a while alrready..
anyways maybe you could quickly review my smb.conf & the one for the server - which has a printer - and you could see a dumb error..

my smb.conf:

[global]
workgroup = NETWERK
netbios name = HUGO
#btw if anyone could explain what the netbios name is..

server string = Samba %v in share mode
security = SHARE
encrypt passwords = Yes
log level = 0
log file = /opt/samba/var/log.%m
name resolve order = bcast host wins
socket options = TCP_NODELAY
# This turn on the WINS server included in nmbd
wins support = Yes
# this is a valid Unix user
guest account = smbguest
# default unix permission when creating files and directories
create mask = 0600
directory mask = 0700
[public]
comment = A share without password
path = /opt/samba/test-share
read only = No
guest ok = Yes
#[private]
#comment = A share with password
#path = /opt/samba/test-share-2
# all users defined here must be in /etc/passwd and in smbpasswd (we use encrypted=yes)
#username = shareuser1, shareuser2
#read list = shareuser1
#write list = shareuser2
#hp695c is name which appears in the /etc/printcap file
[hplaserjet4ml]
comment = A printer from HP
# /opt/samba/tmp should be set 'chmod +trwx'
path = /opt/samba/tmp
print ok = Yes
browseable = No
# If you want a share name different from the name in the printcap file
# Then give here there real printer name, from printcap
#printer name = lp
# The printer name as defined in the Windows drivers list
printer driver = HP LaserJet 4ML PostScript


ow, and i want the other computers to have access to my computer (my /home/ludo and every subdir, read-write-execute) without any password

the smb.conf for the mandrake8.1 server with a printer, access without a pass, read-write-execute

global]
workgroup = NETWERK
netbios name = HUGO
server string = Samba %v in share mode
security = SHARE
encrypt passwords = Yes
log level = 0
log file = /opt/samba/var/log.%m
name resolve order = bcast host wins
socket options = TCP_NODELAY
# This turn on the WINS server included in nmbd
wins support = Yes
os level = 65
# this is a valid Unix user
guest account = smbguest
# default unix permission when creating files and directories
create mask = 0600
directory mask = 0700
[public]
comment = A share without password
path = /opt/samba/test-share
read only = No
guest ok = Yes
#[private]
#comment = A share with password
#path = /opt/samba/test-share-2
# all users defined here must be in /etc/passwd and in smbpasswd (we use encrypted=yes)
#username = shareuser1, shareuser2
#read list = shareuser1
#write list = shareuser2
#hp695c is name which appears in the /etc/printcap file
[hplaserjet4ml]
comment = A printer from HP
# /opt/samba/tmp should be set 'chmod +trwx'
path = /opt/samba/tmp
print ok = Yes
browseable = No
# If you want a share name different from the name in the printcap file
# Then give here there real printer name, from printcap
#printer name = lp
# The printer name as defined in the Windows drivers list
printer driver = HP LaserJet 4ML PostScript


[ 28 December 2001: Message edited by: Ludootje ]

mychl
12-28-2001, 03:56 PM
First of all, I need to specify that the NHF referred to above is NOT my own. It's been here at LNO for quite a while.

Second, I'll post my smb.conf for ya... it's much simpler.

Ludootje
12-28-2001, 04:05 PM
maybe simpler, but is with a server with a printer, and a 2k & an 98?
i used the linuxjunior NHF, and two others from which i don't remember the urls etc..

mychl
12-28-2001, 04:06 PM
################################################## ########
# SAMBA CONFIGURATION ###
################################################## ########
#Written by Mychl ###
################################################## ########

################################################## ########
#GLOBAL PARAMETERS ###
################################################## ########
workgroup = STARFLEET
netbios name= ENTERPRISE
domain master = ENTERPRISE
server string = Samba SMB Server
interfaces = 192.168.1.1/24 127.0.0.1/24
bind interfaces only = Yes
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
read bmpx = No
time server = Yes
socket options = TCP_NODELAY
os level = 65
preferred master = Yes
dns proxy = No
wins support = Yes
guest account = smbuser
hide dot files = No

################################################## ##########
#SHARES CONFIGURATION
################################################## ##########
[public]
comment = Public
path = /home/samba
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes

[MP3]
comment = Music
path = /usr/music/mp3
read only = No
create mask = 0664
directory mask = 0775
guest ok = Yes


using testparm will let you see a dump of everything, so you can scroll back up through it to see other options that aren't using.

Also, make sure you refer back to the NHF above to see what you need to do to your windows machine. And make sure to add a user and group for samba to use.

Let me know if I can be of any more assistance...

Good Luck

mychl
12-28-2001, 04:08 PM
Originally posted by Ludootje:
<STRONG>maybe simpler, but is with a server with a printer, and a 2k & an 98?
i used the linuxjunior NHF, and two others from which i don't remember the urls etc..</STRONG>

Set it up without the printer first. Add it after you get it working