Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

File-sharing between Linux and Windows?

  • 31-10-2004 1:38am
    #1
    Closed Accounts Posts: 4,763 ✭✭✭


    Between Fedora 2 and Windows XP Pro, to be specific. They're plugged into the same hub and I can ping between them, so the connectivity is there, but I'm absolutely clueless as to how I can set up filesharing between them.

    How hard is it to achieve? :D


Comments

  • Closed Accounts Posts: 6,718 ✭✭✭SkepticOne


    Fenster wrote:
    Between Fedora 2 and Windows XP Pro, to be specific. They're plugged into the same hub and I can ping between them, so the connectivity is there, but I'm absolutely clueless as to how I can set up filesharing between them.
    Samba (a client and server for windows style networking). It is not too hard, just follow the instructions.


  • Closed Accounts Posts: 153 ✭✭Dustpuppy


    SkepticOne wrote:
    Samba (a client and server for windows style networking). It is not too hard, just follow the instructions.

    Samba is only the server. For the client you need the smbclient tools. If you don't want to share resourcen from the linux box you need only the smbtools.


  • Closed Accounts Posts: 4,943 ✭✭✭Mutant_Fruit


    If i have a debian box (installed via sarge), and i install samba (apt-get install samba), i still cannot get the debian box to see my windows network. What am i doing wrong.

    It can see the "MSHOME" network thingy, but it can't see the shares. IS there somthing i forgot to do?

    EDIT: I gave up on samba in the end, and just started my FTP server on my main PC and transferred files to and fro via FTP. Sounds rediculous, but it works.


  • Closed Accounts Posts: 583 ✭✭✭monkey tennis


    LinNeighborhood is a nice GUI frontend for smbclient, give it a go.


  • Registered Users, Registered Users 2 Posts: 10,148 ✭✭✭✭Raskolnikov


    If you have a Windows partition on your Linux box then you can access your Linux partition from Windows with this program.

    http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm


  • Advertisement
  • Closed Accounts Posts: 153 ✭✭Dustpuppy


    Ok, once again.
    You need smbclient to access a windirt resource with the linux box.
    With smbclient -L [host/IP] can you see what's free on the win system.
    With smbmount you can mount the shares from the win system.

    Samba is only a server. You can use it to share resourcen of a linux box to the windows network. Your linux box then is seen as a NT or 98 or whatever you want in the smb network.

    Never trust an OS without seen the source :rolleyes:


  • Registered Users, Registered Users 2 Posts: 6,163 ✭✭✭ZENER


    I'm not too familiar with Fedora/Samba but install SWAT then open a browser on the linux box and enter the url http://localhost:901 enter a username and password and you will be presented with the WEB frontend for Samba Server. Each option has a link beside it which will explain its usage.

    If it's Samba 3 + then you may need to check the smb.conf file in etc/samba/ to see if "encrypt passwords = Yes" is present in the Globals section, if it's not there add it or it will never work. You will need to do this each time you use the "commit changes" button on SWAT. Of course if you don't use swat andhand edit the file this won't present itself. This is a problem in Mandrake 10+ that took me a while to spot.

    Using Samba as a PDC for Domain logons is slightly more complicated than a basic standalone job but the docs are very good and there are some excellent step by step guides on the 'net to help you.

    Good luck !

    By the way I prefer SMB4K for network browsing in the KDE desktop, works flawlessly without any alterations.I founf LinNeighborhood a bit hit 'n miss at times.

    ZEN


  • Registered Users, Registered Users 2 Posts: 2,370 ✭✭✭Fionn


    i looked at this prob recently...still hadn't really solved it, guessed SAMBA was involved had only the server part enabled, i'll follow the advice offered, thanks, never thought of actually posting the prob.


  • Registered Users, Registered Users 2 Posts: 1,862 ✭✭✭flamegrill


    /sbin/mount.smbfs //<server name or ip>/<sharename> /mnt/<mount point> - username $username password $password


  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    Samba isn't the only way to go with this. I ditched Samba in favour of NFS, which is the *nix standard for file sharing, and loaded Windoze SFU on my Windoze box to provide NFS services.

    SFU is free from Micro$oft, by the way - not something you see every day!


  • Advertisement
  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    I'll give that a try tonight.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,594 Mod ✭✭✭✭Capt'n Midnight


    LinNeighborhood is a nice GUI frontend for smbclient, give it a go.
    Yeah that's a thumbs up.


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    So...I had a look at these programs, now how do I go about using them to actually set up firesharing? :p


  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    Are you serious, Fenster?! Like Skeptic said right at the top, follow the instructions. Have you actually read them yet?

    Samba Howto

    NFS Howto

    LinNeighbourhood


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    Well I went through the steps for nfs, but I'm getting stuck as far as mounting them goes. I try to mount it to my machine's IP-192.168.0.2. What am I doing wrong? :p

    [root@fenster home]# mount 192.168.0.2:/home/fenster
    mount: 192.168.0.2:/home/fenster failed, reason given by server: Permission denied


  • Closed Accounts Posts: 294 ✭✭eggshapedfred


    is the nfs daemon running? is portmapper running? you may need to stop iptables aswell. don't know if any of this will help. if you can ssh into one machine (from the other) maybe try using scp (there's a windows version too, pscp from the same place as putty). its all command line but i find it an easy way to transfer stuff between machines.


  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    scp is definitely useful for the occasional transfer, but my understanding of your original request was that you wanted a permanent file sharing setup between your machines. The way I would do this is to designate the Linux box as the nfs server, and configure it according to the howto. Then install SFU on the Windoze box, and set it up as the nfs client. You can then connect to the Linux drives from Windoze, which will see them as network drives.

    The mount entry you have given above suggests you have tried it the other way around i.e. with Windoze as the server and Linux as the client. With the right config, this should also work - I haven't done it myself.

    I'm actually surprised you even got the response you did, tbh - mount needs a device and a mount point, at the very least, and you have specified the device only i.e. 192.168.0.2:/home/fenster. Typically, the entry look like this:

    mount -t nfs -o [optional items] 192.168.0.2:/home/fenster /mnt/example


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    I'm hoping to set my laptop as an nfs server as there's only Fedora on it right now, with no plans to change. On my desktop I'm currently screwing around with XP, Fedora 3 and Suse 9.2 Pro, so the laptop will be the one constant, which makes it best for the job.

    Anyways, I didn't get a chance to post outputs last night as I was coming down sick and went to bed.

    Also, I didn't do a full copy of that command line as I was reading it off the screen. Should've read:

    [root@fenster home]# mount 192.168.0.2:/home/fenster /mnt/share
    mount: 192.168.0.2:/home/fenster failed, reason given by server: Permission denied

    For reference, my /etc/exports:

    /home/fenster @192.168.0.2 (rw)

    /etc/hosts.deny:

    ALL:ALL

    And lastly /etc/hosts.allow:

    ALL:192.168.0.1

    So in short its set to block everything except whatever comes from my desktop. But as it won't mount, I'm stuck.


  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    OK, two things:
    Fenster wrote:
    For reference, my /etc/exports:

    /home/fenster @192.168.0.2 (rw)

    Firstly, why do you have @ in there? You should only have space between the exported directory and the permitted host.
    Secondly, you have 192.168.0.2 as the permitted host, but you have only allowed access from 192.168.0.1:
    Fenster wrote:
    And lastly /etc/hosts.allow:

    ALL:192.168.0.1

    The hosts specified in exports must be included in hosts.allow.


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    If mentioned if you were using your system IP to stick @ in front of it...


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,067 ✭✭✭tomk


    Trust me - you don't need @.

    Humour me, and change your /etc/exports to this:
    /home/fenster 192.168.0.1(rw)
    


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    Threade of olde, arise from thy grave...

    Everything is mounted and set properly as far as my laptop goes. However, I'm having trouble mounting the shared file on my laptop:

    mount to NFS server '192.168.0.2' failed.


Advertisement