Click to See Complete Forum and Search --> : sharing windows files over ftp?


stbaker
11-21-2003, 03:40 AM
is this possible? i'd like to share some files that are on my windows partitions, is there a fairly easy way to do this? i tried to follow a tutorial, and when i tried to set the permissions on my windows partition the system wouldn't allow it, despite using the command as root. thanks.

Gertrude
11-21-2003, 03:54 AM
You wouldn't use FTP for this. FTP would be used to get shares over a network not locally on the HDD.. Do you know what file system is on the windows partition? FAT32 or NTFS?

stbaker
11-21-2003, 10:14 AM
my windows partitions are using fat32. i'm trying to share the files over a network and with friends that aren't on my network. accessing my other partitions in linux isn't a problem. thanks.

CaptainPinko
11-21-2003, 10:32 AM
well if its fat32 then you can mount it under linux just like any other linux files, except that you won't get file permissions working correctly (limitation of fat32) so you'd have to set a mask in your /etc/fstab. your option for sharing depend on what they are running: *nix (mfs, nfs [recommended]) or windows (samba) or the old catch-all ftp. hell you could probably set up apache and use http to share files. i'm not sure what mac osx will support but i'm guessing all of the above

phlipant
11-21-2003, 10:36 AM
check out Samba. it let`s you put linux directories in you MS Network Neighborhood.

Hayl
11-21-2003, 11:10 AM
technically, you _can_ mount ftp file systems like any other file system in linux if you wanted to. i personally don't see the point but... to each their own. :)

it's called UFS (UserLand File System) (http://ufs.sourceforge.net) - which is a successor to the deprecated ftpfs, and shfs/sshfs kernel modules.

:)

stbaker
11-21-2003, 11:32 AM
I appreciate all the replies, but i guess i phrased my question wrong....

i'm trying to share files with friends who aren't on my network, so i need to use ftp. i can mount my windows partions in linux no problem, but i can't change the permissions of them so that ftp users can access them. is there any way to do this? i'd like to let users upload files, but i'd be willing to settle for just letting them download files. again, thanks.

phlipant
11-21-2003, 04:13 PM
Samba does not require that you be on their network.

Gertrude
11-21-2003, 04:23 PM
Originally posted by phlipant
Samba does not require that you be on their network.


The only issue with SAMBA is that the protocols (NetBIOS) that it uses are non-routable, and operates only using broadcast. Routers don't route broadcast traffic, so he won't be able to connect to remote SAMBA shares over the net.


You may need to edit /etc/fstab so that the FTP user would have read/write access to the partition..

phlipant
11-21-2003, 05:01 PM
i use direct IP and domain names all the time, that is a configuration issue. you simply need to define (on the microsft side) the information, instead of "searching your network neighborhood"

stbaker
11-21-2003, 06:28 PM
thanks a lot gertrude, my only question is what to edit in /etc/fstab.

i also ran into another problem....
so i'm trying to use vsftpd (default that comes with red hat 9.0). i followed a tutorial on how to use it, and set up virtual hosts, etc. so i definted a db file with the users and pwds, created a PAM file, added a virtual user to the system, and edited the vsftpd.conf file. but the server won't allow the virtual users to log on now. when i was using proftpd, and users that could actually log on to my physical system, it was fine, besides they weren't being put in the right directory.

so, if someone could either help me with the virtual users or getting users to end up in the right directory, i'd be much obliged....

Gertrude
11-21-2003, 06:31 PM
Can you post your /etc/fstab

EDIT:

DMR just posted this link in another thread.. I assume in one of those threads you will find your fstab answer

http://www.justlinux.com/forum/search.php?s=&action=showresults&searchid=812088&sortby=lastpost&sortorder=descending

Hayl
11-21-2003, 07:00 PM
Originally posted by Gertrude
The only issue with SAMBA is that the protocols (NetBIOS) that it uses are non-routable, and operates only using broadcast. Routers don't route broadcast traffic, so he won't be able to connect to remote SAMBA shares over the net.


yes you can.

the only thing you can't do over subnets is browse the network. if you know the host and share name, you can connect. you can also - if you wanted to - use windows boxes to route SMB network shares over subnets.

DMR
11-21-2003, 07:32 PM
Originally posted by Gertrude
EDIT:

DMR just posted this link in another thread.. I assume in one of those threads you will find your fstab answer

http://www.justlinux.com/forum/search.php?s=&action=showresults&searchid=812088&sortby=lastpost&sortorder=descending Thanks for the linkage Gertrude; you saved me the trouble of doing the same.

:)

Gertrude
11-21-2003, 07:40 PM
That is interesting because whenever I tried doing that with a friend of mine we were never able to get a connection.. So I ended up coming to the conclusion from reading some documentation online that it wouldn't work. I don't know I will have to give it another try..