LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2002, 08:34 PM   #1
mdjames0
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Rep: Reputation: 0
Samba


Thanks for the goods from those of you who answered by posting.

I have a new question. I'm using Distro RH 7.3 but did not have RH install Samba. I've installed the newest version of samba and I cant get it to work right.

I have to constantly restart samba for my win98 computer to see my linux box plus when it does show up I can't access the share I set up in smb.conf.

I don't know what to do in terms of setting up samba to work write. Can some one offer some help.

Thanks,

Mike James
 
Old 08-06-2002, 08:37 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
If you want an easy/easier time of setting up Samba, search for something called SWAT. It's a GUI tool (accessed through your browser) that can make the setting up of a Samba server a little easier... and it comes with great documentation on what each little bit of the samba conf file does!
 
Old 08-07-2002, 09:38 AM   #3
mdjames0
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the suggestion Thymox. The only thing is that I'm not using KDE or Gnome for my linux box. I'm using the Console for this system. If any one has other suggestions please feel free to give them. I'm going nuts trying to figure out how how to get Samba to work.

mike james
 
Old 08-07-2002, 10:40 AM   #4
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
Post your smb.conf
 
Old 08-07-2002, 11:58 PM   #5
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
your smb.conf file will generaly in /etc/samba . If you havent set it up yet, there might be one called smb.conf but rather
smb.conf-sample or something along those lines. If this is the case, do you know how to write an smb.conf file?
 
Old 08-08-2002, 12:34 AM   #6
mdjames0
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Here is my smb.conf

workgroup = WORKGROUP
Server String = ANGIEWEB WEB SERVER
[test]
comment = test directory
path = /home/test
valid users = test
public = no
writeable = yes
printable = no
create mask = 0765
 
Old 08-08-2002, 01:42 AM   #7
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
how come you have no [global] section?
 
Old 08-08-2002, 10:20 AM   #8
mdjames0
LQ Newbie
 
Registered: Jul 2002
Posts: 7

Original Poster
Rep: Reputation: 0
This is a simple smb.conf file. I got this from the redhat website. They said that this is a simple means of setting up samba. I use the smbclient on my linux box an it works. But on win98, it doesn't work right. If anyone has any suggestions about global sections, please let me know.

Thanks
 
Old 08-08-2002, 04:36 PM   #9
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
This is how I set up samba on my network. baer in mind that I was setting up for a Win2k network, but theres little difference.


my smb.conf:

[global]
workgroup = home
log file = /var/log/samba/log.%m
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

[share]
comment = Network Storage Space
path = /home/Storage
browsable = yes
writable = yes
read only = no


You may not need the line that pertain to encrypting the passwords and such, but there good to have. If you do decide to have the passwords encrypted, you'll need toi create an empty called "smbpasswd" (w/o quotes) in the /etc/samba directory.

You'll need to add a samba user to the system to do that, use the command "smbpasswd -a username". For this work, the username that your trying to make a samba user, must be a system user, aka someone who can use the nix box by itself. If not than just create it using the "adduser" command, and then add the samba user.


Try doing that and we'll get into starting samba on system boot.
 
Old 08-16-2002, 02:46 AM   #10
snr4999
LQ Newbie
 
Registered: Jul 2002
Location: melaka
Posts: 8

Rep: Reputation: 0
i'm new on samba ...please help me with this problem....i have run samba but when i run this command ......smbclient -L 10.100.4.124(my client pc ip) i got this error.......called name not present......when i open network neighbourhood...i only can see what my client pc share..not my server sharing...
please........
 
Old 08-16-2002, 04:20 AM   #11
snr4999
LQ Newbie
 
Registered: Jul 2002
Location: melaka
Posts: 8

Rep: Reputation: 0
please help me.......i can see server from my pc client.......any suggesion to me...
surpose to ican see bonggo(myserver) and nadiah (pc client) but i just can see nadiah......

[global]
workgroup = sayang
server string = Samba SMB Server
interfaces = 10.100.4.148/255.255.255.0 127.0.0.1
bind interfaces only = yes
log file = /usr/local/samba/var/log.%m
max log size = 50
time server = yes
os level = 65
preferred master = yes
dns proxy = no
domain master = yes
wins support = yes
guest account = smbusers
hide dot files = no
security = share
# ssl CA certFile = usr/share/ssl/certs/ca-bundle.crt
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

[jadual2]
comment = jadual2
thats my smb.conf file.....
please help me...... i have stuck here for one week
 
Old 08-16-2002, 04:23 AM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Snr4999, is your Samba running? Try
ps -e|grep sm
And look if you can see 'smbd'. If you can't start your Samba ('/etc/rc.d/init.d/smb start' should work).
 
Old 08-17-2002, 01:40 AM   #13
ryandelany
Member
 
Registered: Dec 2001
Location: Orange County, CA
Distribution: RedHat 7.2, 7.3, 8.0
Posts: 66

Rep: Reputation: 15
As a sidenote, SWAT is accessible from a browser on ANY machine that can see your Linux machine on the network. You don't have to run it locally.

It does make things pretty easy, assuming you set it up correctly in the first place.

Ryan
 
Old 08-20-2002, 12:19 AM   #14
snr4999
LQ Newbie
 
Registered: Jul 2002
Location: melaka
Posts: 8

Rep: Reputation: 0
my samba is running...when i check the process...the problem before its ok...it just because i run wrong command....
the next problem is why i can not see my samba server on pc client win98...
please some tell me what can i do to fix this problem
 
Old 08-20-2002, 03:17 PM   #15
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
Can you see your Samba using other machines/other OSes (not w98)? Can you connect your own share using smbclient or any other method (Konqueror, LinNeighbourhood...)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 02:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 10:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 06:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 02:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration