Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mounting a share in windows that isnt samba...help?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 8:05 pm    Post subject: mounting a share in windows that isnt samba...help? Reply with quote

I want to be able to mount my home directory (for example) on a windows box. I dont want to use samba. What is the easiest way to do this? I really dislike windows but it would be nice to have this option.
Back to top
View user's profile Send private message
sisyphus
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 138
Location: Bristol & London - UK

PostPosted: Sat Jun 28, 2003 8:25 pm    Post subject: Reply with quote

Install an NFS server on the Windows box. There are a few paid for jobs out there (e.g. MS Services for Unix - SFS) and I seem to remember than Cygwin can do it though I'd need to check that out.

Otherwise, you could use SFTP along with Cygwin though that's not really a mount.

Finally, perhaps there are Intermezzo\Coda type network FS servers available for Windows. I've never investigated but it's possible.

Out of interest, why do you want to avoid SMB?

<EDIT 2 Minutes later - Google Rules>http://www.oneparticularharbor.net/cygwin/ </EDIT> :)


<ANOTHER EDIT>http://opensource.franz.com/nfs/nfs-dist/readme.txt</EDIT>
_________________
wibble
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 8:30 pm    Post subject: Reply with quote

well, never liked it that much, always had problems with it

is it possilbe to mount a samaba share from anywhere and make it invisible to anyone that doesnt know to look for it (sort of like how automount works)
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jun 28, 2003 8:30 pm    Post subject: Re: mounting a share in windows that isnt samba...help? Reply with quote

usingloser wrote:
I want to be able to mount my home directory (for example) on a windows box. I dont want to use samba. What is the easiest way to do this? I really dislike windows but it would be nice to have this option.


The easiest way is to setup samba.

Not using samba -> export the directories using an NFS server and get an NFS client for windows.

Coda last time I looked at it doesn't share out directories per se, and is far from an easy or simple solution for what you want.
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jun 28, 2003 8:31 pm    Post subject: Re: mounting a share in windows that isnt samba...help? Reply with quote

usingloser wrote:
I want to be able to mount my home directory (for example) on a windows box. I dont want to use samba. What is the easiest way to do this? I really dislike windows but it would be nice to have this option.


The easiest way is to setup samba.

Not using samba -> export the directories using an NFS server and get an NFS client for windows.

Coda last time I looked at it doesn't share out directories per se, and is far from an easy or simple solution for what you want.
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 8:32 pm    Post subject: Reply with quote

and i was hoping for some time of key authenication instead of password

and what port does samba operate on if i had to push it through my router
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jun 28, 2003 8:40 pm    Post subject: Reply with quote

usingloser wrote:
and i was hoping for some time of key authenication instead of password

and what port does samba operate on if i had to push it through my router


smb ports are:
137 tcp/udp
138 tcp/udp
139 tcp/udp
and 135 tcp -> NT RPC.

PS. Sorry about the multple post my browser seems to have screwed up.
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 8:42 pm    Post subject: Reply with quote

that is so bloated imo. I would have like to open an obscure port on my router that forwards to the share on my machine,
Back to top
View user's profile Send private message
sisyphus
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 138
Location: Bristol & London - UK

PostPosted: Sat Jun 28, 2003 8:50 pm    Post subject: Reply with quote

Whoops. Sorry. I misunderstood your post and thought that you wanted to mount the Windows box from your Linux box.

There are plenty of NFS clients for Windows also - some free, just google for it.

As an aside, you can "hide" CIFS shares by appending a "$" to the end of the share name. This is however, weak as a solution as anyone who knows what they're doing can still enumerate the shares.

If you're accessing the share from the other side of a FW then the best solution is an SSH tunnel for the relevant ports (seem to remember that you only need 139 but I'm almost cetainly wrong ;)).
_________________
wibble
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jun 28, 2003 8:59 pm    Post subject: Reply with quote

usingloser wrote:
that is so bloated imo. I would have like to open an obscure port on my router that forwards to the share on my machine,


Lock the port down using ip src.
If the traffic is passing over an unsecure network, (which locking it down at the router seems to imply), SMB/Windows sharing is definitely not the way to go - unless you're using a VPN - even then I've found Windows' performance over a WAN less than satisfactory.
Back to top
View user's profile Send private message
sisyphus
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 138
Location: Bristol & London - UK

PostPosted: Sat Jun 28, 2003 9:04 pm    Post subject: Reply with quote

I'm 100% with crg on this.

Windows 2000 and XP are especially chatty. Quite apart from the fact that CIFS pads out packets like there's nothing else to do they natter like bastards.

You'll find them asking for updates every few minutes to make sure that they've still got a connection to drives (so that they can show you those lovely little x's that signify loss of connection).

In addition to that, if you've got an explorer window open then the sods poll for changes to the directory structure.

VERY much a LAN protocol.

That being said, I have tunnelled CIFS conns. over SSH (poor man's VPN) but I CANNOT remember how I did it :).
_________________
wibble
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 9:06 pm    Post subject: Reply with quote

that is exaclty what i want, how do i setup an ssh tunnel (i need the o'rielly ssh book)
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Sat Jun 28, 2003 9:12 pm    Post subject: Reply with quote

sisyphus wrote:

seem to remember that you only need 139 but I'm almost cetainly wrong ;)).


/etc/services
Code:

netbios-ns   137/tcp            # NETBIOS Name Service
netbios-ns   137/udp
netbios-dgm   138/tcp            # NETBIOS Datagram Service
netbios-dgm   138/udp
netbios-ssn   139/tcp            # NETBIOS session service
netbios-ssn   139/udp


Thats the official ports anyway. In practice, (from memory), it only uses 137 UDP (name resolution), 138 UDP (datagram/browsing), and 139 TCP (netbios session).

/etc/services doesn't seem to mention tcp port 135 in /etc/services which is weird :?, but thats required for the RPC protocol.

If you're using putty on your windows box there's an option to tunnels ports from one machine to another.
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 9:17 pm    Post subject: Reply with quote

i still want to use the drive like a regular windows drive (or share) though, is that possible with putty
Back to top
View user's profile Send private message
sisyphus
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 138
Location: Bristol & London - UK

PostPosted: Sat Jun 28, 2003 9:25 pm    Post subject: Reply with quote

Well, based on crg's handy little aide memoire there, you should be able to just tunnel 139 provided that you know the IP address of the server on which the share resides (you only need the other two for NetBIOS name resolution and browsing (the RPC port is for managing shares, users and the like).

Set up the tunnel in putty (i.e. to [realserverip]:[port]) and then map a drive to 127.0.0.1/[sharename].

I did it so that I could play MP3s at a friends house without having to do anything too nasty to my firewall.
_________________
wibble
Back to top
View user's profile Send private message
usingloser
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 297
Location: ->Here<-

PostPosted: Sat Jun 28, 2003 9:27 pm    Post subject: Reply with quote

thanks, i dont have a windows box to test it on right now, but thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum