Is it possible for users (non-root) to mount NFS exports? I seem to be able to mount_nfs using sudo, but not as a regular user. I actually want to allow regular users to mount the NFS share from another machine/OS (MacOSX), but since I couldn't get a regular user to do the mount just on the local machine, I thought I'd start with this problem first. With these settings on OpenBSD 4.0, (generic+autoraid) /etc/rc.conf.local lockd=YES portmap=YES nfs_server=YES /etc/exports /home -alldirs -ro -network=10.0.1 -mask=255.255.255.0 /etc/sysctl.conf kern.usermount=1 For example logged is as usera, on machine 10.0.1.201 (the server) uid=1000(usera) gid=1000(usera) groups=1000(usera), 0(wheel), 10(users), 20(staff) $ mount_nfs 10.0.1.201:/home/usera/dir2share /home/usera/private/mnt fails with "mount_nfs: bad MNT RPC: RPC: Authentication error; why = Client credential too weak" but $ sudo mount_nfs 10.0.1.201:/home/usera/dir2share /home/usera/private/mnt works fine Any help would be appreciated. More details: I've tried to adhere to: man mount "A mount point node must be an existing directory for a mount to succeed (except in the special case of /, of course). Only the superuser may mount file systems unless kern.usermount is nonzero (see sysctl(8)), the special device is readable and writeable by the user attempting the mount, and the mount point node is owned by the user attempting the mount." by setting: drwxr-xr-x root wheel /home drwxr-xr-x usera usera /home/usera drwxr-xr-x usera usera /home/usera/dir2share drwxr-xr-x usera usera /home/usera/private drwxr-xr-x usera usera /home/usera/private/mnt Thanks
mountd wants the request to come on a reserved port.
i've always approached this class of problem with amd: http://www.openbsd.org/cgi-bin/man.cgi? query=amd&apropos=0&sektion=0&manpath=OpenBSD +Current&arch=i386&format=html the daemon runs with sufficient privs to mount the fs, and all the user has to do is reference the fs. Ben
Maybe I am being dumb, but wouldn't the obvious thing be to configure 'sudo' for each user so that they can mount 'their' share (only)? This would probably be quite onerous if you had a lot of users, mind you. Tor
Actually, that's probably the simplest solution; config a user group with access, then grant sudo access to that group for the mount. Lee
I think 'best scripted' is the UNIX way of spelling 'quite onerous', no? Joachim -- TFMotD: gem (4) - GEM 10/100/Gigabit Ethernet device
HISTORY
The -P flag historically informed the kernel to use a reserved port
when communicating with clients. In OpenBSD, a reserved port is
always used.
This means to me that you will always have to be root to use mount_nfs.
Unless I'm missing something.
-ME
| Rafael J. Wysocki | 2.6.28-rc3-git6: Reported regressions from 2.6.27 |
| Rafael J. Wysocki | [Bug #11207] VolanoMark regression with 2.6.27-rc1 |
| Matthew Wilcox | [PATCH] Fix boot-time hang on G31/G33 PC |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Jon Smirl | ! [rejected] master -> master (non-fast forward) |
| Jon Smirl | Packfile can't be mapped |
| Sverre Rabbelier | Git vs Monotone |
| Shawn O. Pearce | libgit2 - a true git library |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Douglas A. Tutty | OBSD's perspective on SELinux |
| Girish Venkatachalam | Ethernet jumbo frames? |
| Volker Armin Hemmann | build error with 2.6.27.6+reiser4+ehci-hub patch. ERROR: "mii_ethtool_gset" [drive... |
| Michael Grollman | Re: 8169 Intermittent ifup Failure Issue With RTL8102E Chipset in Intel's New D945... |
| Evgeniy Polyakov | [resend take 2 0/4] Distributed storage. |
| Krzysztof Halasa | Re: [PATCH v2] Re: WAN: new PPP code for generic HDLC |
| serial driver xmit problem | 2 minutes ago | Linux kernel |
| Why Windows is better than Linux | 3 minutes ago | Linux general |
| How can I see my kernel messages in vt12? | 6 hours ago | Linux kernel |
| Grub | 18 hours ago | Linux general |
| vmalloc_fault handling in x86_64 | 1 day ago | Linux kernel |
| epoll_wait()ing on epoll FD | 1 day ago | Linux kernel |
| Framebuffer in x86_64 causes problems to multiseat | 1 day ago | Linux kernel |
| Difference between 2.4 and 2.6 regarding thread creation | 1 day ago | Linux general |
| Netfilter kernel module | 1 day ago | Linux kernel |
| Compiling gfs2 on kernel 2.6.27 | 1 day ago | Linux kernel |
