Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-13-2003, 06:07 PM   #1 (permalink)
M3GAPL3X
Code Monkey
 
M3GAPL3X's Avatar
 
Join Date: Mar 2003
Location: California
Posts: 57
M3GAPL3X is on a distinguished road
Send a message via AIM to M3GAPL3X
Samba?

Hi all,

Does anyone have any good tutorials on Samba? I am really having a hard time following some of the ones that I have found so far, especially the one on http://www.justlinux.com

Thanks!
__________________
--------------------------
M3GAPL3X@linuxmail.org
M3GAPL3X is offline   Reply With Quote
Old 03-13-2003, 06:58 PM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
what do you need to know how to do?
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-13-2003, 07:08 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
here's a config that i found a while ago. it works if you change the parameters to fit your system.
Code:
##################################################
######## 
# SAMBA CONFIGURATION ### 
##################################################
######## 
#Written by mychl ### 
##################################################
######## 

##################################################
######## 
#GLOBAL PARAMETERS ### 
##################################################
######## 
workgroup = STARFLEET 
netbios name= ENTERPRISE 
domain master = ENTERPRISE 
server string = Mychl's Samba 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 
#root directory = /home/samba 
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 = samba 
hide dot files = Yes 

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

[Music] 
comment = MP3 Server 
path = /home/mychl/music 
read only = No 
create mask = 0664 
directory mask = 0775 
guest ok = Yes
Then turn samba on by doing [SHELL]# /etc/init.d/smb start [/SHELL] as root
sde is online now   Reply With Quote
Old 03-13-2003, 07:21 PM   #4 (permalink)
Kernel_Killer
Regular Contributor
 
Kernel_Killer's Avatar
 
Join Date: Feb 2003
Location: indisclosed
Posts: 210
Kernel_Killer is on a distinguished road
Go way to learn for the beginning SAMBA user is to use WebMin. Makes SAMBA setup easy.
Kernel_Killer is offline   Reply With Quote
Old 03-13-2003, 09:33 PM   #5 (permalink)
M3GAPL3X
Code Monkey
 
M3GAPL3X's Avatar
 
Join Date: Mar 2003
Location: California
Posts: 57
M3GAPL3X is on a distinguished road
Send a message via AIM to M3GAPL3X
Thanks for the file sde...
I had a question on the file though. Can the Netbios name be anything?

Now,
What do I configure on the Windows side?
__________________
--------------------------
M3GAPL3X@linuxmail.org
M3GAPL3X is offline   Reply With Quote
Old 03-13-2003, 09:54 PM   #6 (permalink)
Kernel_Killer
Regular Contributor
 
Kernel_Killer's Avatar
 
Join Date: Feb 2003
Location: indisclosed
Posts: 210
Kernel_Killer is on a distinguished road
The NetBIOS name can be anything. As long as the workgroup matches on the Win machine, nothing else should be done on the Win side. You might not be able to browse for the SAMBA server, so you might just have manually enter it like so:

\\<SAMBAserverNetBIOSname>\<ShareFolderName>
Kernel_Killer is offline   Reply With Quote
Old 03-14-2003, 06:03 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
just make sure that windows is part of the same workgroup. also, setup a shared folder for whatever you want to share.

that should be it.
sde is online now   Reply With Quote
Old 03-14-2003, 06:54 AM   #8 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
you may need to add users to the system & to samba.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-14-2003, 07:30 AM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,470
sde is on a distinguished road
add users to samba?

i didn't have to add users anywhere with that config so long as the directory i was pointing to was shared.
sde is online now   Reply With Quote
Old 03-14-2003, 08:02 AM   #10 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
RH7.2 has it here: /etc/samba/smbusers

it depends on how secure you want to run your server.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-14-2003, 08:57 AM   #11 (permalink)
M3GAPL3X
Code Monkey
 
M3GAPL3X's Avatar
 
Join Date: Mar 2003
Location: California
Posts: 57
M3GAPL3X is on a distinguished road
Send a message via AIM to M3GAPL3X
Quote:
\\<SAMBAserverNetBIOSname>\<ShareFolderName>
I had a question about that.

The SAMBA server name is located in the /etc/hosts/ file right? I also had a question about the <SharefolderName>. If my shared folder is /home/shared, will the syntax look like this/

"\\<Sambaservername>\home\shared"

Sorry about this question. I would test this, but I am not at home right now.

Thanks!
__________________
--------------------------
M3GAPL3X@linuxmail.org
M3GAPL3X is offline   Reply With Quote
Old 03-14-2003, 09:19 AM   #12 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
/etc/samba/smb.conf

in the [global] block:
netbios name = SERVERNAME

for this "
"\\<Sambaservername>\home\shared""

[shared]
path = /home/shared
valid users = root
read only = No

that would be \\servername\shared
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 03-14-2003, 03:42 PM   #13 (permalink)
Kernel_Killer
Regular Contributor
 
Kernel_Killer's Avatar
 
Join Date: Feb 2003
Location: indisclosed
Posts: 210
Kernel_Killer is on a distinguished road
Adding users is is good thing, and not letting anonymous user in. Just make a account on your Linux (or UNIX) box, and then use smbadduser to make that user a samba user. You can then use smbpasswd username to change that user's password.
Kernel_Killer is offline   Reply With Quote
Old 03-14-2003, 08:01 PM   #14 (permalink)
M3GAPL3X
Code Monkey
 
M3GAPL3X's Avatar
 
Join Date: Mar 2003
Location: California
Posts: 57
M3GAPL3X is on a distinguished road
Send a message via AIM to M3GAPL3X
Thanks all...I was wondering, where the heck does get the bolded font from?

[Administrator@Administrator]$ smbclient -U% -L king
added interface ip=192.168.0.101 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.5]

Sharename Type Comment
--------- ---- -------
test Disk for testing only
IPC$ IPC IPC Service (Samba 2.2.5)
ADMIN$ Disk IPC Service (Samba 2.2.5)

Server Comment
--------- -------
LINUX Samba 2.2.5

Workgroup Master
--------- -------
WORKGROUP

I don't see that server name anywhere. Not even in the /etc/hosts or /etc/resolv.conf file.

Thanks!
__________________
--------------------------
M3GAPL3X@linuxmail.org
M3GAPL3X is offline   Reply With Quote
Old 03-15-2003, 06:22 AM   #15 (permalink)
Kernel_Killer
Regular Contributor
 
Kernel_Killer's Avatar
 
Join Date: Feb 2003
Location: indisclosed
Posts: 210
Kernel_Killer is on a distinguished road
I don't think you should see it their, since samba is it's own interface. Just as long as it's set in smb.conf, that's what the SAMBA daemons will use.
Kernel_Killer is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
samba renegade Linux / BSD / OS X 2 01-04-2003 03:54 PM
load management/samba Admin Linux / BSD / OS X 1 09-13-2002 08:39 AM


All times are GMT -8. The time now is 10:50 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting