Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Network Issue

Status
Not open for further replies.

komyg

Programmer
Dec 13, 2005
68
BR
I have to PCs one has Windows XP and the other has Ubuntu Linux.

I hava a cable internet connection going in the PC with Windows XP. This internet connection is then shared to the Linux PC.

The internet sharing is working fine, but I can't make the to computers see eachother, wich means that I can't transfer files from the Linux PC to the Windows PC and vice versa.

How can I solve this? Is there any permission issues that I have overlooked?

How can I open a folder in another computer using the linux tty?

Thank you,
Komyg
 
do you know how to do it? I mean, did you read something about samba, or cifs, or "mount -t smbfs"? if not, now it's time to do that.

man smbmount
man mount (and use smbfs)

Cheers,

Chacal, Inc.[wavey]
 
No I haven't read anything about samba.

Komyg
 
I can ping the linux pc, but I don't know the "ping" command on linux.
 
Ok, I can ping both computers. Now how can I open a folder on the Windows pc using the Linux tty?

Komyg
 
First you will have to create a share on the Windows Computer.

Next you will need to use smbclient or mount.cifs to mount the share on the windows computer.

Thirdly, you will then be able to copy the files from the mount point to the linux computer.


If you are using Ubuntu, there should be a graphical application to do this. Otherwise type "man mount" so you can learn how to mount the windows share.
 
Ok, I got the samba server working.
Now, when I open the linux computer folder on my network places, I'm asked for an username and password. I type in my username and password (the ones I use to get in the gnome GUI), but it doesn't work.
Where can I configure this?

Komyg
 
You dont need to setup samaba server unless you are using windows to open a share on linux. You need the use the client utilities like mount.cifs.

The username and password are the ones that are setup on the share permissions on the Windows client that the share resides.

 
Actualy I am trying to use Windows to open a share on Linux.
What I don't know is where do I setup the permissons (username and password) required for the Windows machine access the Linux machine.

Komyg
 
Add an account for the user on the linux box, then
smbpasswd –a username password

 
There are multiple things you will need to do.

1: as LawnBoy says, you will need to add the user to the samba password list with smbpasswd -a username password

2: The permissions on the folder that you will be accessing as the share need to be such that the user you are connecting as has priviledges.

3: The smb.conf share permission has given your user access.


For exapmle, lets add the user komyg. Most likely the this user was the first one created on your Ubuntu installation, and the uid and gid are both 500.

The Linux server has a folder called /shares/Public with permissions 777 on that folder, because it is a public folder.

In your smb.conf you have a seciton for this public share

[Public]
path=/shares/Public
public = yes
write=yes

And you have created the komyg user in the samba database by typing

Code:
 smbpasswd -a komyg secret

To make sure you do not have any typos in your smb.conf type

Code:
 testparm

Restart samba and then try using your windows client to connect. If you have other specific samba questions, you should direct them to the samba group on Tek-Tips.
 
It works fine now.
Thank you very much.

Komyg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top