FG

Can't change owner (user or group) of directory which I have all rights on?

Fresh3 days ago
Mar 15, 202650534 views
Confidence Score0%
0%

Problem

TL;DR: Why am I getting the Operation not permitted? And how can I resolve this? I'm facing a problem which I can't resolve. I'm creating a directory as user a:group a), which I want to change to user b:group a. I don't understand why this operation is not permitted. This is what's happening: (I ch…

Error Output

user a@foo:~$ mkdir /home/user b/foo/test             
uber a@foo:~$ chmod 0777 /home/user b/foo/test
user a@foo:~$ ls -alF /home/user b/foo/ | grep …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Can't change owner (user or group) of directory which I have all rights on?

Low Risk

You can only change ownership on a file if you're root (or have the CAP_CHOWN Posix capability). This is so because giving away files would trigger some security concerns (for example, if disks quotas were enabled you could then fill user b quota). …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment