LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-22-2006, 10:33 AM   #16
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30

Should be only the IP from Linux.
interfaces = 192.168.1.103/24

Try also:
interfaces = eth0

Does this interface has DHCP or fix IP?
Fix is better!
 
Old 07-22-2006, 08:33 PM   #17
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Okay, I have done what you have ask me to do.

Change my IP from DHCP into a fixed address and use
interfaces = 192.168.1.103/24

When I type this following in Nautilus I can only seem to view the linux machine only

when I type the following.

smb://192.168.1.103

I can see the share drive of my linux machine.

But if I wanted to try out my windows machine (192.168.1.4) by typing
smb://192.168.1.4

I get the following message

Nautilus cannot display "smb://192.168.1.4".

What am I doing wrong?
 
Old 07-22-2006, 10:26 PM   #18
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Okay, I have just find a thread in linux questions in regards to home networking

http://www.linuxquestions.org/linux/...Small_Home_LAN

I manage to follow the last instruction (PART 3) Linux-to-windows section

In my windows machine (XP Pro) I can see my linux box, but when I double click on it. It won't allow me. telling me that I might not have permission to use this network resource.

So could some one please help me in showing me the step in allowing me to be able to access my linux machine.
 
Old 07-23-2006, 09:38 AM   #19
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Quote:
Originally Posted by tuannie

But if I wanted to try out my windows machine (192.168.1.4) by typing
smb://192.168.1.4

I get the following message

Nautilus cannot display "smb://192.168.1.4".

What am I doing wrong?
I think you ment Explorer.

Just write the IP-number, not smb....
 
Old 07-23-2006, 09:50 AM   #20
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
BTW
Did you configure your trusted nets in your firewall?
 
Old 07-23-2006, 11:01 AM   #21
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi
Nice to see you have come this far. I think what you have to do from windows is to

go to your toolbar tools-->map network drives-->connect_as_different_user

here enter your samba username and samba password. Let me know if u succeed
 
Old 07-23-2006, 07:32 PM   #22
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
I've just been told that Red Hat 9.0 is old by someone one on irc channel and they have suggested me getting fedora core, now I have fedora core.

I can access and connect to my windows machines and manage to access the shared data on the windows machine.

My only problem now is having trouble accessing the linux file.

So, since I have fedora core 5, do I still need to do the following:

Quote:
Originally Posted by iamwilliam
go to your toolbar tools-->map network drives-->connect_as_different_user
Will the option be the same as Red Hat 9.0
 
Old 07-24-2006, 04:56 AM   #23
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
I've just added security = share into smb.conf and I managed to get access to my home drive.

Only problem is, when trying to create another share folder. I still dont have permission to access the resource.
 
Old 07-24-2006, 05:29 AM   #24
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
If i understand you correctly. You are trying to access your shared resource on the linux box from the windows machine and you have now succeeded.

Here is how to add another share: edit smb.conf add

[share_name]
path = enter path to share
public = yes
writable = yes
 
Old 07-24-2006, 08:31 AM   #25
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
yes that is correct iamwilliam, I will that a go tomorrow morning. Right now I am using my laptop. I will let you know of the result

Thanks for being patience and very helpful.
 
Old 07-25-2006, 12:36 AM   #26
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
It still doesn't work when I try creating another share.
still saying access denied
 
Old 07-25-2006, 06:53 AM   #27
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Quote:
still saying access denied
Did you configure your firewall?
And have a look at this:
http://www.redhat.com/archives/redha.../msg02898.html
 
Old 07-25-2006, 08:51 AM   #28
tuannie
Member
 
Registered: Jul 2006
Distribution: Fedora 5 Core
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Sören Schneider
Did you configure your firewall?
And have a look at this:
http://www.redhat.com/archives/redha.../msg02898.html
I don't think I have configured my firwall
How do I check?

If my firewall wasn't configured, why is it that I can access my root and see all the folder in root. And when create a new share folder that I created I always get access denied.

Last edited by tuannie; 07-25-2006 at 08:55 AM.
 
Old 07-25-2006, 01:42 PM   #29
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Well I don't know RH so well but in your Configfile I found this:
"[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775"
I thimk you must specify the paths you want to see yet, like

path = /home/[username]

Does RH has a configuretool to write the smb.conf for your?


I don't use Samba right now, but my basic config is this:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-09-13
[global]
workgroup = TUX-NET
printcap name = cups
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[prolaser]
path = /prolaser/
guest ok = yes
read only = No
comment = ProLASER
directory mask = 0770
inherit acls = Yes
valid users = sly

## Share disabled by YaST
# [netlogon]

And in your firewall you have to open port 139 for samba.
Maybe also something like sambaserver = yes

Did you red the LINK I sent you last time?
 
Old 07-25-2006, 04:42 PM   #30
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi

I think maybe ur problem is with the permissions of the folders you are trying to share.
Try this at the command prompt, to change the permissions of the folder you want to share

"chmod 777 /path/of/directory"

Also the option "security=user" works fine for me might not have been the cause of your problem. Tell me how it goes
 
  


Reply



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
Require assistance in Red Hat 9.0 & Netcomm NP1100 tuannie Linux - Networking 4 07-24-2006 05:03 PM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
Windows XP Pro. and Red Hat 9.0 Networking Imhoteph Red Hat 4 06-02-2004 09:10 PM
Networking two Red Hat servers with windows xfree143 Linux - Newbie 4 05-26-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:19 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
Open Source Consulting | Domain Registration