Hi Bhanu,
I would guess, that it is due to the NFS client being quite close to the
kernel and your user needs setuid to run the mount with elevated
privileges. For starters, I would check if setuid is allowed in the
Singularity config [1] & if you see in the container mount.nfs and where
it comes from (if /usr/sbin or so is in the host namespace or if it is
in the containers namespace)
Cheers,
Thomas
[1]
https://www.sylabs.io/guides/2.5.1/admin-guide/the_singularity_config_file.html#allow-setuid-boolean-default-yes
On 2018-08-02 21:11, BHANU PRASAD GANGURU wrote:
> Hi,
>
> I'm trying to mount an nfs export inside a container as regular user and
> it's showing the following error
>
> mount.nfs: not installed setuid - "user" NFS mounts not supported.
>
> When I try to run the container as root, it works fine.
>
> Here's what I'm doing
>
> |
>
> $ singularity --version
> 2.5.2-release-2.5.b258b65
>
> $ singularity execCentOS7.img cat /etc/fstab
> nfsserver:/dev1 /n/scratch nfs vers=3,users 00
>
> $ singularity execCentOS7.img mount /n/scratch
> mount.nfs:notinstalled setuid -"user"NFS mounts notsupported.
>
> $ sudo singularity execCentOS7.img mount /n/scratch
> [sudo]password foruser:
>
>
> $ sudo singularity execCentOS7.img ls -l /n/scratch
> total 0
>
> |
>
>
> Any one know why it's not working for regular users and what needs to be
> done in-order to make it possible
>
> Thanks in advance,
> Bhanu
>
> --
> You received this message because you are subscribed to the Google
> Groups "singularity" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
singularity...@lbl.gov
> <mailto:
singularity...@lbl.gov>.