View previous topic :: View next topic |
Author |
Message |
mounty1 l33t


Joined: 06 Jul 2006 Posts: 942 Location: Queensland
|
Posted: Thu Oct 29, 2020 7:02 pm Post subject: NFS-mounted directory going to noexec [SOLVED] |
|
|
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 |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23193
|
Posted: Thu Oct 29, 2020 9:16 pm Post subject: |
|
|
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 |
|
 |
mounty1 l33t


Joined: 06 Jul 2006 Posts: 942 Location: Queensland
|
Posted: Fri Oct 30, 2020 12:23 pm Post subject: |
|
|
Thank you. _________________ Michael Mounteney |
|
Back to top |
|
 |
|
|
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
|
|