LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2003, 10:53 PM   #1
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
Samba Share???


I have a desktop (192.168.0.231) and a old gateway laptop (192.168.0.1).
What i am trying to do was share my printer which was connected to my gateway laptop and share some of it's space.
SO, i decided to use samba. However, i can't get it working.
I did correctly setup my LAN because when both computers are running redhatlinux 9.0. I can ping each pc without a problem.
I add a share at my old pc. What i did was type "redhat-config-samba" and add a window system directory which was my window's partiton on my laptop. then i did "nautilus smb:". Then it saids "can't found samba server??"
Any ideas?
Also, how do i share a file just like in window. So, you could mount the network file system by add line s to /etc/fstab??
 
Old 11-30-2003, 11:09 AM   #2
darkseed2g3
Member
 
Registered: Sep 2003
Location: Philadelphia ,Pa
Distribution: Fedora Core 1 BABY !!! YEA
Posts: 67

Rep: Reputation: 19
Nautilus can be really buggy at times the best way to do things with samba that i realized is just mount it by hand you have 2 ways that i can think of off the top of my head to do this .

mount -t smbfs -o username=username,password=password //host/share /mountpoint
or just
smbclient //host/share

its pretty easy , the first one you can throw in a script and be on your way with one click of the keyboard and you can even have it mount up at boot time

hope that helps , enjoy
 
Old 11-30-2003, 11:11 AM   #3
darkseed2g3
Member
 
Registered: Sep 2003
Location: Philadelphia ,Pa
Distribution: Fedora Core 1 BABY !!! YEA
Posts: 67

Rep: Reputation: 19
Also , if you look at your /etc/samba/smb.conf file that has a lot of goodies in there explaining how to do things , like a sample setup of shares that all you have to do is comment them out. Dont rely on the pretty gui look and figure it out by hand you learn how to do it a lot better.
 
Old 11-30-2003, 04:29 PM   #4
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
but how can i setup the share?
And anyway to know if it's working or not???

In my case, how can i setup my laptop as a share using Red Hat Linux 9.0 ??
i want to share my window parition part which was /dev/hda1 or /mnt/windows. I had already setup my LAN.

Helppppp
 
Old 11-30-2003, 06:20 PM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
i did setup my laptop and it's smb.conf looks like

[windows]
comments = system
path = /mnt/windows
valid users = tim
public = no
writeable = yes
printable = no
create mask = 0765

And the hosts file on my desktop looks like


192.168.0.1 gateway gateway

if i want to use "smbclient //host/share" command. What should the share be?

however, i could "smb://home/" in X to see my GATEWAY.
But when i click on it, it says can't found host .....
What's wrong here?
 
Old 12-01-2003, 05:12 PM   #6
darkseed2g3
Member
 
Registered: Sep 2003
Location: Philadelphia ,Pa
Distribution: Fedora Core 1 BABY !!! YEA
Posts: 67

Rep: Reputation: 19
for instance if the laptop was 192.168.0.2 and the gateway is 192.168.0.1 if you where connecting from the laptop to the gateway to a share it would be

smbclient //192.168.0.1/sharename

but if you where connecting from the gateway to the laptop share it would be

smbclient //192.168.0.2/windows

from the way it sounds you dont have any shares setup on the gateway
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
Samba OS X to Linux Samba file share error ttoomey Linux - Software 1 08-16-2005 11:12 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 09:23 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 08:27 AM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 02:02 PM


All times are GMT -5. The time now is 02:39 AM.

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