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 20th February 2016
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default Can a user mount a NFS?

In OpenBSD 5.8
I have set kern.usermount=1 with the command
# sysctl kern.usermount=1
In this way a user can mount a filesystem, for esample that
of an usb key.
But I noted that the user can't mount a network filesystem and
I've read in mount_ nfs's man page that the program uses a reserved
port. Someone told me that this kind of port ca be used only by root.
Can you confirm that in OpenBSD an user can't mount a NFS, even if
kern.usermount is set to 1?
Thank you.
Reply With Quote
  #2   (View Single Post)  
Old 20th February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Correct. NFS uses a technology that Sun developed called Remote Procedure Call (RPC), which predated TCP/IP (or was developed in parallel, my memory is a little hazy on this). On TCP/IP networks, the port-to-RPC translation tool portmap(8) is used to translate port numbers. And while the ports used for NFS itself can vary, and may be high-number, portmap requires the use of port 111 on both the client and server.

You have two options for "user" NFS mounting. Privilege escalation with doas(1) or sudo (now in packages), or the auto-mounting daemon amd(8).
Reply With Quote
  #3   (View Single Post)  
Old 20th February 2016
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default

Thanks a lot jggimi!
Reply With Quote
  #4   (View Single Post)  
Old 20th February 2016
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

The official FAQ provides tutorial information (albeit straight-forward & simple...) on mounting NFS in Section 6.7. This was written to be a gentle introduction to what can also be found in the manpages.
Reply With Quote
  #5   (View Single Post)  
Old 20th February 2016
attilio attilio is offline
Port Guard
 
Join Date: Jun 2015
Posts: 43
Default

Thank you, ocicat.
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
User Store, Auth, VPN and Multi-user apps/software montie OpenBSD Packages and Ports 9 9th January 2015 09:51 PM
Cant mount USB phones? xmorg FreeBSD General 8 3rd April 2011 01:14 PM
Mount img guitarscn OpenBSD Packages and Ports 5 8th November 2010 04:45 PM
how do i mount usb wokko NetBSD Installation and Upgrading 4 15th May 2010 09:48 AM
Mount filesystem with a regular user ivanatora FreeBSD General 15 30th July 2008 08:51 AM


All times are GMT. The time now is 09:04 PM.


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