summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nautilus-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index 33aabf65f..ff902db12 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -6374,8 +6374,8 @@ nautilus_file_can_set_owner (NautilusFile *file)
return FALSE;
}
- /* Only root is also allowed to set the owner. */
- return geteuid () == 0;
+ /* Owner can be changed only in admin backend or by root */
+ return nautilus_file_is_in_admin (file) || geteuid () == 0;
}
/**