diff --git a/Snowflake.Data.Tests/UnitTests/Session/EasyLoggingStarterTest.cs b/Snowflake.Data.Tests/UnitTests/Session/EasyLoggingStarterTest.cs index b42e2f59a..691e7322b 100644 --- a/Snowflake.Data.Tests/UnitTests/Session/EasyLoggingStarterTest.cs +++ b/Snowflake.Data.Tests/UnitTests/Session/EasyLoggingStarterTest.cs @@ -125,7 +125,7 @@ public void TestThatThrowsErrorWhenLogPathIsNotSetAndHomeDirectoryThrowsAnExcept } [Test] - public void TestThatDoesNotFailWhenDirectoryPermissionIsNot700() + public void TestThatDoesNotFailWhenDirectoryPermissionIsNot600Or700() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { diff --git a/Snowflake.Data/Core/Session/EasyLoggingStarter.cs b/Snowflake.Data/Core/Session/EasyLoggingStarter.cs index 9caeeb473..d8a7a013c 100644 --- a/Snowflake.Data/Core/Session/EasyLoggingStarter.cs +++ b/Snowflake.Data/Core/Session/EasyLoggingStarter.cs @@ -154,7 +154,8 @@ private void CheckDirPermissionsOnlyAllowUser(string dirPath) _unixOperations.SetDirInfo(dirPath); var dirPermissions = _unixOperations.GetDirPermissions(); - if (dirPermissions != FileAccessPermissions.UserReadWriteExecute) + if (dirPermissions != FileAccessPermissions.UserReadWriteExecute && + dirPermissions != (FileAccessPermissions.UserRead | FileAccessPermissions.UserExecute)) { s_logger.Warn($"Access permission for the logs directory is currently " + $"{UnixFilePermissionsConverter.ConvertFileAccessPermissionsToInt(dirPermissions)}");