March 8, 20179 yr I am trying to run a find command with the -execdir option. However, -execdir gives this warning: find: The current directory is included in the PATH environment variable, which is insecure in combination with the -execdir action of find. Please remove the current directory from your $PATH (that is, remove "." or leading or trailing colons) I read up on that and understand the problem, but I am not sure how to remove "." from PATH, properly so it persists across reboots. I am also not sure if doing so will break some functionality of unraid? I do have NerdPack installed so I thought it is possible it may be coming from that plugin? Any help would be appreciated. Thanks. Annnd.... as usual I find the answer within minutes of posting. The "." is being added to the path in /etc/profile. Now I just need to find out how to remove it so it persists. Edited March 8, 20179 yr by ciarlill
March 8, 20179 yr Community Expert Since the OS is unpacked fresh from bzroot each boot, the traditional way was to add some code to the config/go script to modify OS files such as are in /etc. You might also try the Command Line plugin. I think it preserves some settings for root user between boots.
Archived
This topic is now archived and is closed to further replies.