How to share a file between Windows an Linux?


Recommended Posts

Hi!

I have installed Linux Mandrake 9.2, and made the internet connection

so it work, and i have "pinged" the Windows xp machine and got respons(and the other way). :D

I have read that i have to use the program "Linneighbourhood" to make a connection between the computers, but i wonder why i cant access the files on the windows pc?

everytime i try to access a file that is shared whitout any restriction(what so ever), i only get a messeage that says access denied or something.

By the way, do anyone now how to log on to the Windows 2000 Server with mandrake so that i could gain access to my personell file on the server? :huh:

Any help would be great!

Scootersing

I use the mount command to access my Win2k shares when using my linux laptop at work.

The command I use is:

mount - t smbfs -o rw,user=USER_ID //SERVER/SHARE /mnt/mount_point

It then will prompt for my password and authorize a connection to the share.

I haven't played around with trying to log in to our network. I have a feeling it would fail, anyhow, as our server runs a logon script that would most certainly not handle a Linux machine.

[EDIT: P.S. How did you get the connection/pings to work? Last I remember, your machines would not talk to each other...]

hi again Mark!

Yes, u remember correctly it did not work at all before! :laugh:

I was so lucky that the school decided to upgrade their computers, with new motherboards with integrated network controllers and such.

And the Linux suddenly worked when i installed it on this new computer, nice don`t u think.

:D

Well to the point, i am gonna try the command u have told me and hope that it will work.

User_id?: Is it supposed to stand this or should i write in my personal log in name?

Should i write in the share name from the win2k machine instead of Server\Share!

U have to appoligize my stupid questions, i am new at this as u probably see!

Thanx by the way!

Scootersing!

Yes, you will use your own network info in place of my italic and all caps designation for "user ID" and the server path you would connect to.

Basically, it would be the same things as you would need to enter if you were using "Map Network Drive..." in Windows Explorer to manually connect. (usually, your logon ID will connect your shares automatically, but if you ever manually connected to a share on the network, this is the path).

Note, that even though you use the backwards slash '\' in Windows, when on your Linux box, use the correct forward slash '/'.

For example:

A Windows share of a folder called 'liverpool' on a server called 'sales2', would look like this:

\\sales2\liverpool

And when entering this on a Linux machine, it would be like:

//sales2/liverpool

If this works, you can put an entry in fstab to automount, if that is what you want. (or you can put the command in a text file, and make it executeable, so you can invoke the command by double-clicking from the GUI, or by entering the executeable name in a shell).

P.S. Glad the network is up and running! Must have been an incompatible NIC chipset!

Hi again!

Now i have gained access to my files on the labtop, but i had to change the code a bit.

I tryed the same on the school server and i came half way, I had to actually hack a bit to get in.

U now the servers domain name is Ntvgs, when i installed Linux on this computer i called it NTVGS. When i searced the logs on the server i found out that if i could change my computer name i would be able to access the server properly with my own logon name. Because he stopped me from logging on with my own Log on name, the errer message was this "NT-STATUS-DUPLICATE-NAME".

(Lets say the administrator got a bit crazy when he found out what i had done).:angry:

So i wonder how i change the name on my Linux machine, without reinstallation.

I am beggining to like Linux better and better, some friends of mine are using Linux Slackware and they are still stuck in the Kernel problems.

What is the command in the console for this commands in Windows.(linux commands)

- Copy

- Delete (i think it is Kill)

- rename

- make directory

- etc

i got a bit confussed about the help picture from linux (blablablablablabla).:whistle:

Thanx for now!

Scootersing

  Quote
So i wonder how i change the name on my Linux machine, without reinstallation.
Mandrake probably has a nice GUI for this, probably under some sort of Network configuration app. You could also use the hostname command (do a man hostname to read the built-in manual for the command).
  Quote
What is the command in the console for this commands in Windows.(linux commands)

- Copy

- Delete (i think it is Kill)

- rename

- make directory

cp (copy), rm (remove), mv (move), mkdir (make directory).

For more info, try google.

Samba is the service used to connect to Server Message Block (SMB) shares, the type of share used by Windows. It comes in two parts, the client that allows you to mount shares on other machines and the server that allows you to share files/folders with Windows machines. SUSE by far has the best Samba config tool, but MDK also has a quite good GUI, although the one I used last in 9.1 didn't allow you to configure much compared to YAST in SUSE and there were a few annoying bugs, although the MDK one was certainly more n00b friendly, as the SUSE tool allows you to configure and add all options to the smb.conf file - without much in the way of explanations (smb.conf is the text file where Samba's config is stored - see http://www.samba.org/samba/docs/man/smb.conf.5.html for more details of manual configuration through editing this file if you want to really learn Samba config).

If you want to change hostname the 'hostname' command is what you need - try 'hostname --help' for a quick description, but I'de advise getting SUSE as YAST is great for beginners and it allows every element of a server to be configured across ssh, so there's no need for even a n00b to run XFree86 (so you have a server which performs 10X better as its resources aren't being hogged by the greedy GUI!).

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.