Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS-mounted directory going to noexec [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 942
Location: Queensland

PostPosted: Thu Oct 29, 2020 7:02 pm    Post subject: NFS-mounted directory going to noexec [SOLVED] Reply with quote

Hello, on one Gentoo machine (with an NFS root; I don't know if that's relevant) there is this entry in /etc/fstab:
Code:
cortex:/home    /home   nfs4    exec,sec=sys,async,noatime,user 0       2
but when I log in, both /home and /home/mounty (my home directory) are mounted noexec, which means that none of my scripts can be run. I can as root run
Code:
mount -o remount,exec /home/mounty
and that fixes it for a few hours but then the machine reverts to noexec.

Any idea why this might be happening?
_________________
Michael Mounteney


Last edited by mounty1 on Fri Oct 30, 2020 12:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23193

PostPosted: Thu Oct 29, 2020 9:16 pm    Post subject: Reply with quote

You told it to do that. Per man mount, user implies noexec,nosuid,nodev. Options are position sensitive, so if you want to override that, you need your override to occur after the user option. Why are you setting user on an automatic mount? Usually, user is for mounts that are only present sometimes, like USB sticks.
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 942
Location: Queensland

PostPosted: Fri Oct 30, 2020 12:23 pm    Post subject: Reply with quote

Thank you.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum