This is a discussion on Shlight considerations ... within the comp.unix.bsd.openbsd.misc forums, part of the OpenBSD category; --> I'm setting up a ftp server that permits to access a windows share ... I'm looking for documentation about ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| <meonnewsgroup@poinkom.com> wrote in message news:227295ed.0402260319.d865a14@posting.google.co m... > I'm setting up a ftp server that permits to access a windows share ... > I'm looking for documentation about shlight on OpenBSD. > Could someone post an url to a longer documentation than the "shlight -h" ? > > Thanx ... > > A. E. I haven't personally used it in ages but I think it uses smbmount.c from smbfs so perhaps smbmount(8) man page? I know of someone who does exactly what you're looking to do, without any problems. hope that helps some. |
| |||
| "John Doe" <JohnDoe@here.somewhere.com> wrote in message news:<x7s%b.19379$253.1107986@news20.bellglobal.co m>... > <meonnewsgroup@poinkom.com> wrote in message > news:227295ed.0402260319.d865a14@posting.google.co m... > > I'm setting up a ftp server that permits to access a windows share ... > > I'm looking for documentation about shlight on OpenBSD. > > Could someone post an url to a longer documentation than the "shlight -h" > ? > > > > Thanx ... > > > > A. E. > > I haven't personally used it in ages but I think it uses smbmount.c from > smbfs so perhaps smbmount(8) man page? > > I know of someone who does exactly what you're looking to do, without any > problems. > > hope that helps some. I've already tested SHLIGHT+FTPD ... It works fine. I have no problem with that. The ftp server is ok. Every user is chrooted to its home directory and everythig is just fine. Then I installed sharity-light from the OpenBSD ports that also worked fine. My problem is that there's no advanced documentation for the shlight command. So I can't set up a solution where everything is filtered by PF if i can't decide wich port will be used ... I'll give you an example : When you mount a windows share using shlight : #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd Everything is ok and shlight after mounting tha share comes up with : "Using port 10392 for NFS." Ok fine. But when I try to determine the used nfs port usind the switch "-p" as mentionned in the help "shlight -h", something goes wrong ... #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd -p 12345 shlight answers : "error connecting to server: [1] Operation not permitted" But i need to detrmine a pool of ports that I can trust throught PF ! This is only an example. I mean If I want to set up a soft solution, I need a real documentation of shlight. smbfs documentation won't help I think ... Thanx ... A. E. |
| |||
| In article <227295ed.0402260319.d865a14@posting.google.com> , meonnewsgroup@poinkom.com wrote: > I'm setting up a ftp server that permits to access a windows share ... > I'm looking for documentation about shlight on OpenBSD. > Could someone post an url to a longer documentation than the "shlight -h" ? pkg_info -L sharity-light more /usr/local/share/doc/Sharity-Light/README |
| |||
| <meonnewsgroup@poinkom.com> wrote in message news:227295ed.0402270145.31292a19@posting.google.c om... > "John Doe" <JohnDoe@here.somewhere.com> wrote in message news:<x7s%b.19379$253.1107986@news20.bellglobal.co m>... > > <meonnewsgroup@poinkom.com> wrote in message > > news:227295ed.0402260319.d865a14@posting.google.co m... > > > I'm setting up a ftp server that permits to access a windows share ... > > > I'm looking for documentation about shlight on OpenBSD. > > > Could someone post an url to a longer documentation than the "shlight -h" > > ? > > > > > > Thanx ... > > > > > > A. E. > > > > I haven't personally used it in ages but I think it uses smbmount.c from > > smbfs so perhaps smbmount(8) man page? > > > > I know of someone who does exactly what you're looking to do, without any > > problems. > > > > hope that helps some. > > I've already tested SHLIGHT+FTPD ... It works fine. I have no problem > with that. The ftp server is ok. Every user is chrooted to its home > directory and everythig is just fine. Then I installed sharity-light > from the OpenBSD ports that also worked fine. > My problem is that there's no advanced documentation for the shlight > command. So I can't set up a solution where everything is filtered by > PF if i can't decide wich port will be used ... > I'll give you an example : > When you mount a windows share using shlight : > #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd > Everything is ok and shlight after mounting tha share comes up with : > "Using port 10392 for NFS." > Ok fine. But when I try to determine the used nfs port usind the > switch "-p" as mentionned in the help "shlight -h", something goes > wrong ... > #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd -p 12345 > shlight answers : > "error connecting to server: [1] Operation not permitted" > But i need to detrmine a pool of ports that I can trust throught PF ! > This is only an example. I mean If I want to set up a soft solution, I > need a real documentation of shlight. smbfs documentation won't help I > think ... > > Thanx ... > > A. E. Oh I see what you're getting at now. Sorry I can't help much there other than what Oliver Cherrier said or man sh-smbmount. I believe the -p is used for the netbios-ssn port (ie, 139 by default) so -p would be used in instances where you want to bind a socket connection to say a samba server listening on a non-privledged port such as 12345 rather than default of 139. So the reason you get that error is cause your Win2k box isn't listening on -p 12345 - as a way to test, try -p 139 to see. One way I can think of would be with sysctl's but that might not be suitable for you or the best method. In other words, if you wanted the NFS ports to be within a certain range - but this is just a thought... net.inet.ip.portfirst = net.inet.ip.portlast = net.inet.ip.porthifirst = net.inet.ip.porthilast = -- net.inet.tcp.baddynamic = net.inet.udp.baddynamic = Hope this helps somewhat. Regards. |
| |||
| Olivier Cherrier <Olivier.Cherrier@cediti.be> wrote in message news:<c1nd04$tgn$2@news.brutele.be>... > In article <227295ed.0402260319.d865a14@posting.google.com> , meonnewsgroup@poinkom.com wrote: > > I'm setting up a ftp server that permits to access a windows share ... > > I'm looking for documentation about shlight on OpenBSD. > > Could someone post an url to a longer documentation than the "shlight -h" ? > > pkg_info -L sharity-light > more /usr/local/share/doc/Sharity-Light/README Thank you ... I've used the "pkg_info -v Sharity-Light" to the info I was looking for I had this : __________________________________________________ _______ Information for sharity-light-1.2: Comment: userland smbfs --- SMB to NFS protocols converter Description: If you want a short description of what Sharity-Light can do for you: you can mount volumes exported by Windows or related operating systems on your Unix machine. What does Sharity-Light do? =========================== If you know smbfs for Linux: Sharity-Light is roughly the same. It is derived from smbfs, but runs as a user level program, not in the kernel. If you know samba: Sharity-Light is roughly the opposite: a client for the Lanmanager protocol. If you know neither of these: Sharity-Light lets you mount drives exported by Windows (f.Workgroups/95/NT), Lan Manager, OS/2 etc. on Unix machines. WWW: http://www.obdev.at/products/sharity-light/ Packing list: Package name: sharity-light-1.2 CWD to: /usr/local SRCDIR to: /usr/ports/net/sharity-light/w-sharity-light-1.2/fake-i386/usr/local Comment: subdir=net/sharity-light cdrom=yes ftp=yes Comment: $OpenBSD: PLIST,v 1.2 2000/06/20 15:51:21 espie Exp $ File: sbin/shlight Comment: MD5:4d0efa6dd23bf9d2c9763e6c72b82dba File: sbin/unshlight Comment: MD5:237c866f6fc48d996c51cfaba83d33d6 File: man/man8/sh-smbmount.8 Comment: MD5:970dc7e87869ce7087c074b042b8c321 File: share/doc/Sharity-Light/README Comment: MD5:4b8068207c82ab04de6cdf937c45e49d File: share/doc/Sharity-Light/FAQ Comment: MD5:5ecb1f4f5650fbb6e96f0c3c3a9125c9 Deinstall directory remove: share/doc/Sharity-Light CWD to: . File: +COMMENT (ignored) File: +DESC (ignored) __________________________________________________ _______ Then I used the FAQ file to get the information i was looking for ... i. e. "man sh-smbmount" ... THANK YOU ALL !!! A. E. |
| ||||
| "John Doe" <JohnDoe@here.somewhere.com> wrote in message news:<ncO%b.21284$253.1328380@news20.bellglobal.co m>... > <meonnewsgroup@poinkom.com> wrote in message > news:227295ed.0402270145.31292a19@posting.google.c om... > > "John Doe" <JohnDoe@here.somewhere.com> wrote in message > news:<x7s%b.19379$253.1107986@news20.bellglobal.co m>... > > > <meonnewsgroup@poinkom.com> wrote in message > > > news:227295ed.0402260319.d865a14@posting.google.co m... > > > > I'm setting up a ftp server that permits to access a windows share ... > > > > I'm looking for documentation about shlight on OpenBSD. > > > > Could someone post an url to a longer documentation than the > "shlight -h" > ? > > > > > > > > Thanx ... > > > > > > > > A. E. > > > > > > I haven't personally used it in ages but I think it uses smbmount.c from > > > smbfs so perhaps smbmount(8) man page? > > > > > > I know of someone who does exactly what you're looking to do, without > any > > > problems. > > > > > > hope that helps some. > > > > I've already tested SHLIGHT+FTPD ... It works fine. I have no problem > > with that. The ftp server is ok. Every user is chrooted to its home > > directory and everythig is just fine. Then I installed sharity-light > > from the OpenBSD ports that also worked fine. > > My problem is that there's no advanced documentation for the shlight > > command. So I can't set up a solution where everything is filtered by > > PF if i can't decide wich port will be used ... > > I'll give you an example : > > When you mount a windows share using shlight : > > #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd > > Everything is ok and shlight after mounting tha share comes up with : > > "Using port 10392 for NFS." > > Ok fine. But when I try to determine the used nfs port usind the > > switch "-p" as mentionned in the help "shlight -h", something goes > > wrong ... > > #shlight //x.x.x.x/share /home/me/w2k -U user -P pwd -p 12345 > > shlight answers : > > "error connecting to server: [1] Operation not permitted" > > But i need to detrmine a pool of ports that I can trust throught PF ! > > This is only an example. I mean If I want to set up a soft solution, I > > need a real documentation of shlight. smbfs documentation won't help I > > think ... > > > > Thanx ... > > > > A. E. > > Oh I see what you're getting at now. Sorry I can't help much there other > than what Oliver Cherrier said or man sh-smbmount. > > I believe the -p is used for the netbios-ssn port (ie, 139 by default) so -p > would be used in instances where you want to bind a socket connection to say > a samba server listening on a non-privledged port such as 12345 rather than > default of 139. So the reason you get that error is cause your Win2k box > isn't listening on -p 12345 - as a way to test, try -p 139 to see. > > One way I can think of would be with sysctl's but that might not be suitable > for you or the best method. In other words, if you wanted the NFS ports to > be within a certain range - but this is just a thought... > > net.inet.ip.portfirst = > net.inet.ip.portlast = > net.inet.ip.porthifirst = > net.inet.ip.porthilast = You're absolutely right ! I'm a bit ashamed of this dummy confusion ! Destination port is NOT the source port !!!!!!!! Thank you Jhon that's what I call helping and sharing the knowlege. A. E. |