DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Question Mount Network Drive

Hello all,

I feel rather silly asking this question however I do not seem to be finding the answer I'm looking for via google/man. Perhaps I'm looking for the wrong "name" or just in the wrong place.

All I'm trying to do is map/mount a Windows network share from OpenBSD. I would prefer not to have to use NFS or anything other than standard Windows sharing as that is what is already configured and running.

Authentication is required (via Active Directory) and hard coded/mounted at boot.


Could someone please direct me to the syntax and/or show me an example?

Thanks!
Reply With Quote
  #2   (View Single Post)  
Old 23rd January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by plexter View Post
I would prefer not to have to use NFS...
Unless you have an NFS client installed on Windows, NFS is not an option.
Quote:
...or anything other than standard Windows sharing as that is what is already configured and running.
Then you need to configure Samba.
Reply With Quote
  #3   (View Single Post)  
Old 23rd January 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

There are two tools:

sharity-light -- allows "mounting" of remote Windows filesystems using Microsoft Networking.

samba -- a more complete set of client and server tools for Microsoft Networking, but there is no "mounting" capability for OpenBSD clients, which are limited to using the smbclient tool for file transfers, instead.
Reply With Quote
  #4   (View Single Post)  
Old 23rd January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Hmm thanks for the info.

I've installed sharity but for some reason I do not seem to be able to authenticate.

Code:
./shlight //ip-address/sharename /local/dir -W domain-name -U username -C
Password: (I enter my password)
error connecting to server: [13] Permission denied

Am I doing something wrong? Also note I have verified that I can ping the domainname as well as the fileserver.

Thanks
Reply With Quote
  #5   (View Single Post)  
Old 24th January 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Sharity-light may not be able to use AD. According to http://www.obdev.at/products/sharity-light/index.html it is getting no further development (except bugfixes), and the commercial Sharity 3 product only supports AD when used with Kerberos, per http://www.obdev.at/products/sharity/features.html
Reply With Quote
  #6   (View Single Post)  
Old 24th January 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Oh, and the commercial sharity product for OpenBSD is both out-of-date (4.2 was the last release it was built for) and lacking Kerberos integration.
Reply With Quote
  #7   (View Single Post)  
Old 30th January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Sorry for the late response.

Hmm... I guess Sharity is not of much use for me then. For Samba to work do I need to do any configuration? I do not need to share out any files just access a share. Syntax?

Thanks!
Reply With Quote
  #8   (View Single Post)  
Old 30th January 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

Samba has a complex configuration file, which is supported by GUI.

Documentation is available from the samba-docs package, and additional help may be available at the www.samba.org project website.
Reply With Quote
  #9   (View Single Post)  
Old 30th January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Hi jggimi,

I was doing some reading after I posted that comment and I did come across "SWAT" which I presume would be what you are referring to as the GUI?

I still have not been able to determine how to set this up in order to connect to a share. Which are the same results the first time I investigated samba. All I see are options to serve files. I'm not interested in sharing files from OpenBSD; just interested in connecting to a Windows share.

Perhaps you could advise some more?


Thanks!
Reply With Quote
Old 30th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

OpenBSD doesn't support Windows shares(SMB) natively.. in fact, the only network file system supported is NFS.

Sharity-Light is actually a type of "translation proxy", it utilizes the NFS support available.. allowing the Windows share to be mounted traditionally.

Samba on OpenBSD is mostly intended for people wanting to share files with Windows clients.. as a server, the client functionality is provided through a few command line utilities. (The share isn't actually mounted.)

Sorry for the disappointment.. FreeBSD/Linux support that by using FUSE(Filesystem in Userspace), but personally.. I don't think that should be ported to OpenBSD.
Reply With Quote
Old 30th January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

So wait are you saying this just isn't possible?

If I installed NFS support on Windows would OpenBSD be able to authenticate with the AD user credentials?

Surely there has to be a way to access a Windows file server (share) from OpenBSD.

Thanks for your help.
Reply With Quote
Old 30th January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

AFAIK Windows only has a NFS client.. not a server, how would that help you?

As I said, the Samba port *does* have client utilities.. but you cannot mount shares in the traditional fashion, it behaves more like an ftp client.

Again, sorry.. but perhaps you should consider using something other than SMB+AD?
Reply With Quote
Old 31st January 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Hello BSDfan666,

Windows Server 2003 most certainly does support NFS.

http://www.microsoft.com/windowsserv...p/default.mspx

Code:
File and Print Services: Microsoft Services for the network file system (NFS) in Windows Server 2003 R2 includes everything you need to share files between UNIX and Windows systems, manage file security from Windows using Active Directory accounts, and manage file and print services across Windows and UNIX platforms. The following components are included:
•	

Mapping server
•	

NFS AdminUI
•	

NFS client
•	

NFS server
•	

Portmap
•	

Server for NFS authentication
•	

RpcXdr
Anyway I was hoping not to have to setup additional file services to do this.

Quote:

Again, sorry.. but perhaps you should consider using something other than SMB+AD?
Would you have any suggestions? I'm open to alternatives. Authenticating against active directory users would be required.


Thanks again for your help on this.
Reply With Quote
Old 31st January 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
AFAIK Windows only has a NFS client.. not a server...
According to information published by Microsoft, Windows Services for Unix does provide a NFS server for use on Windows:

http://support.microsoft.com/kb/324086

However, the OP asks about AD support, & I did not confirm either way. My recommendation would be to post a query on misc@ if this is crucial functionality.
Reply With Quote
Old 31st January 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
Sorry for the disappointment.. FreeBSD/Linux support that by using FUSE(Filesystem in Userspace), but personally.. I don't think that should be ported to OpenBSD.
The FreeBSD kernel supports smbfs directly, and FreeBSD ships with mount_smbfs. FUSE is not involved in any way.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 31st January 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by phoenix View Post
The FreeBSD kernel supports smbfs directly, and FreeBSD ships with mount_smbfs. FUSE is not involved in any way.
I meant in relation to Samba, when used on FreeBSD/Linux.. SMBFS is mounted via FUSE.
Reply With Quote
Old 31st January 2009
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

No, it's not. SMB mounts are done directly in the kernel. Same as on Linux. FUSE is not used. mount_smbfs(8) has been part of FreeBSD since 4.5-RELEASE.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Old 1st February 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,697
Thanked 214 Times in 189 Posts
Default

On OpenBSD, Samba is installed from a package, then smbclient(1) is used to reach SMB/CIFS servers. Reading that man page, I note that -k is used to authenticate with kerberos for Active Directory.

Kerberos V setup is described in OpenBSD FAQ 10.
Reply With Quote
Old 4th February 2009
plexter plexter is offline
Shell Scout
 
Join Date: May 2008
Posts: 124
Thanked 0 Times in 0 Posts
Default

Hello all,

Thanks for all your input. Interesting. I guess my only route is to provide NFS support on my windows server in order to have a filesystem browsable network share. I don't think I really want to switch to FreeBSD unless I absolutely have to.

It would be nice to see OpenBSD support SMB directly though. Maybe someday there will be. Is there any reason for not supporting it or has no one got around to it is all.

Thanks for your help!
Reply With Quote
Old 6th February 2009
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

Quote:
Originally Posted by plexter View Post
Is there any reason for not supporting it or has no one got around to it is all.
I think it's because Samba works fine, and perhaps there hasn't been a burning need by developers to create and "OpenBSD version". I reference this from Marc Balmer this past March as an example-

Quote:
SMB works nicely with Mac OS X. It what I use to in my lab. NFS is
also a choice. SMB is very easy to setup.
from
http://marc.info/?l=openbsd-misc&m=120517259625632&w=2
__________________
Network Firefighter
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to "configure" and mount a USB Drive already in use IronForge OpenBSD General 10 1st September 2009 05:36 PM
mount second hard drive - newbie trouble corneliu FreeBSD General 7 23rd September 2008 10:51 PM
HELP Mount ERROR!! disappearedng FreeBSD General 14 14th July 2008 10:55 PM
mount problems with ntfs drive shinjii FreeBSD General 3 25th June 2008 12:33 AM
USB mount problems?? bsdnewbie999 FreeBSD General 3 23rd May 2008 03:34 AM


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick