LinuxQuestions.org
Help answer threads with 0 replies.
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 02-15-2005, 03:36 PM   #1
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Rep: Reputation: 15
Samba driving me insane


I have been trying to get a few things to work and nothing is working right.

I installed/uninstalled samba numerous times to try to get anything to work and nothing is working so far.

I try to load the swat thing that is suppose to help me set up samba (because I don't have any samba set-up windows for it like my book says I should) and it says that I can't install it because there is no samba-common file, so I try to run the rpm of the samba-common file and it tells me that there is a newer version of the file already installed

I was trying to installing the windows thing for sharing from the add/remove program and it tells me that there is no samba-common file present and that I can't proceed.

What is going on here. I have un-installed samba thru the terminal and when I run a "rpm -qi samba" command it tells me that samba is not installed?????? So I try to re-install it and it tells me that it is already installed!!!!!

I just don't get it. I need to be able to share on a Windows network with two computers and a printer but I can't get anywhere with this.

I don't know if this helps any but when I thought I had samba installed I could ping my Windows computer with no loss of data and I could open a browser window and type in the address for the router and I could view the set-ups for the router.

Is there maybe something that I am just not doing correctly to add people or see other computers on my network???

Thank you,
 
Old 02-15-2005, 04:38 PM   #2
buldir
Member
 
Registered: Mar 2004
Location: Fairbanks, AK USA
Posts: 135

Rep: Reputation: 15
I would go here (http://fedoranews.org/contributors/s...nley/fc3_note/), scroll down to the section listed Apt and Synaptic, and follow the procedure for installing apt and synaptic. Apt, in my opinion, does a much better job than yum for resolving dependencies and synaptic is a nice gui for apt. Follow the directions to a T. Once you do all that, fire up synaptic (look in your main menu somewhere), and do a search for "samba". Install samba, samba-client, and samba-common. Apt should update any of these files with ease.

For setting up samba, here's some good advice:

Make sure you have your local workgroup name entered in your /etc/samba/smb.conf file. See:

http://www.samba.netfirms.com/index.htm
http://home.nyc.rr.com/computertaijutsu/samba.html
http://compnetworking.about.com/lib...ly/aa062499.htm

If you want your Windows boxes to see your Linux box (samba server), then you will need to open up ports 139/tcp and udp/137/138 on your Linux box. You can do this in the "security/firewall" section I believe. Also consider any software firewalls running on your Windows boxes (Microsoft or 3rd party). I have never used SWAT and find that editing my /etc/samba/smb.conf file via the command line works fine. Make sure you restart the samba server after making any changes. As root in the command line interface type:

# /etc/rc.d/init.d/smb restart

The link listed above is awesome for setting up various packages and post-install tweaks for FC3. I hope this helps.

Last edited by buldir; 02-15-2005 at 06:48 PM.
 
Old 02-16-2005, 09:53 AM   #3
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
Thank you for the help

I can now open windows files on linux and print to my network computer.

I still can't access the linux computer from my XP laptop. It tells me that I dont have privalages . On my ME desktop it gives me a prompt to enter a password but my password doesn't work. It is trying to connect to //localhost/IPC$. I think that has something to do with it. I don't know where the IPC$ thing came from but at least I have a start.

On my XP machine it says also that there are duplicate names and to open my system from the control panel to change the name, but there is only the one "Mobile" machine on my network???

Other than that I am very happy with the progress so far. now to get the other machines to connect and I will be in business.

Thank you again,
 
Old 02-16-2005, 02:34 PM   #4
buldir
Member
 
Registered: Mar 2004
Location: Fairbanks, AK USA
Posts: 135

Rep: Reputation: 15
I'm glad I was helpful to you! Setting up Samba can be stressful...it took me seemingly forever before I could connect and see my fiancee's Windows XP box on our home network. Keep at it though. Once you get everything set up, document what you did and save the /etc/samba/smb.conf file to a safe place.

"I still can't access the linux computer from my XP laptop. It tells me that I dont have privalages "

This sounds like you don't have the NetBIOS Compatible Transport Protocol installed. On your XP laptop, go to Start | Control Panel | Network Connections. Right click on the icon for your ethernet device (Local Area Connection) and select "Properties". In the window, you will see a list that says "This connection uses the following items". Make sure you have "NetBEUI Protocol" and "NWLink IPX/SPX/NetBIOS Compatible Transport Protocol" listed. If not, install them. Simply click the "Install" button below the list and choose "Protocol"...click the "Add" button ans select the protocols I mention. Click OK and wait a second or two for it to install. Once that's done, go back to the main Local Area Connection Properties box and click on the "Advanced" tab. Check that Windows XP is not running a firewall. I am not sure if you have Windows XP service pack 2 installed, you can turn on/off the firewall with service pack 1 as well. It's up to you if you want to turn it off or allow a specific port/IP address to have access.

"It is trying to connect to //localhost/IPC$. I think that has something to do with it. I don't know where the IPC$ thing came from but at least I have a start."

I have never used Windows ME, but for the "folder" address, try:

//the IP address of your Linux box/name of shared folder on your Linux box

Make sure you have properly set up a shared folder on your Linux box in the smb.conf file. I have never been able to connect from Windows to Linux via Samba when the user names are not the same. Meaning, if your Windows user name is "monkey" and your Linux user name is "gorilla", you may have problems. Also, the password is your samba password, not your Linux user password, unless they're the same of course. Finally, you may want to consider installing Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) on your Windows machines and simply log into your Linux box using SSH. You will have to enable SSH and allow it to come through the Linux firewall of course. It depends on your setup...if you use your Linux box as a print server, Putty will not help you. If you simply want to transfer files back and forth, then consider Putty/SSH. The problem with setting up Samba between Linux and Windows is that you must deal with firewall/network/user name settings on both ends.

Last edited by buldir; 02-16-2005 at 04:03 PM.
 
Old 02-16-2005, 03:37 PM   #5
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
Talking I DID IT!!

I finally got it. I had to un-comment two lines in the smb.conf file and that was all it took.

Thanks to your help too of course.

I think I am going to really like this Linux stuff. How much fun is it when you can download all this stuff and not have to pay Mr. Gates a fee so that he can continue construction of his house!!!!

Windows could be on its way out if I can find enough programs that I can incorporate into my business.

Have a good day!!!
 
Old 02-16-2005, 03:51 PM   #6
buldir
Member
 
Registered: Mar 2004
Location: Fairbanks, AK USA
Posts: 135

Rep: Reputation: 15
Fantastic! Yes, there are many advantages to using Linux, including monetary. I switched because I don't like being one of the many sheep herded by the Shepherd Gates. Free as in freedom! Could you please post the two lines you are referring to, for the benefit of others? Thanks.

Last edited by buldir; 02-16-2005 at 04:00 PM.
 
Old 02-16-2005, 06:54 PM   #7
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
sure can,

the funny thing is that I went back at one point and add the semi-colon to these two lines in the /etc/samba/smb.conf file:

; security = user
; encrypt passwords = yes

I hope this does help others.

Thanks again for all of the help everyone.

 
Old 02-16-2005, 07:26 PM   #8
buldir
Member
 
Registered: Mar 2004
Location: Fairbanks, AK USA
Posts: 135

Rep: Reputation: 15
Here's a generic /etc/samba/smb.conf, which you would have to edit to your needs. workgroup, netbios name, hosts allow, and Share Definitions must be changed.


# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors. Also, run
# /etc/rc.d/init.d/smb restart as root in a command line terminal after making
# any changes to this file.
#
#======================= Global Settings =====================================
[global]

# 1. Server Naming Options:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = name_of_workgroup

# netbios name is the name you will see in "Network Neighbourhood",
# but defaults to your hostname
netbios name = name_of_your_computer

# server string is the equivalent of the NT Description field
server string = Linux

# 4. Security and Domain Membership Options:
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
# not work for all the hosts in your network.
bind interfaces only = Yes
# Deny all hosts by default
hosts deny = ALL
# Only allow machines having the IP address beginning with 123.456.78 (leave the 127. alone)
hosts allow = 123.456.78. 127.
interfaces = eth0 lo

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest
# Allow users to map to guest:
map to guest = bad user

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
# Encrypted passwords are required for any use of samba in a Windows NT domain
# The smbpasswd file is only required by a server doing authentication, thus
# members of a domain do not need one.
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# 5. Browser Control and Networking Options:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

#============================ Share Definitions ==============================

# The following entry demonstrates how to share a directory so that a
# user can place files there that will be owned by the specific user. In this
# setup, the directory should be writable and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.

# Below is the shared directory name on your Linux box, in this case "share_dir". When you
# map a network drive from your Windows machine to your Linux box, use
# //IP_address_of_Linux_Box/share_dir

[share_dir]
comment = My stuff
path = /home/monkey
valid users = monkey
public = no
writable = yes
printable = no
create mask = 0765
 
  


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
RPMs are driving me insane gauge73 Linux - Newbie 11 05-05-2005 02:02 PM
Mplayer Driving Me Insane!!!!! njschroe Linux - Software 7 01-24-2005 06:31 PM
cvswinex driving me insane araldit Linux - Newbie 0 07-02-2004 06:05 PM
Belkin F5D6020 Driving me INSANE Klein Linux - Networking 38 10-11-2003 05:06 PM
Sendmail is driving me insane. Please help me. ecroskey Linux - Newbie 1 03-02-2003 07:02 AM


All times are GMT -5. The time now is 01:17 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