FG
💻 Software

Linux: Can't change file permissions being in the same group as the file

Fresh5 days ago
Mar 15, 20266327 views
Confidence Score0%
0%

Problem

So I have a file: I am in web group: But I can't change the permissions: More background: This is for a deployment script. Many users can run it with their own user and they all need to be able to do stuff like adding write permissions to log file. I thought assigning the file to a group and then a…

Error Output

-rw-rw-rw- 1 joe web 35046982 Nov  4 16:54 app.log

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Linux: Can't change file permissions being in the same group as the file

Low Risk

Only privileged users (root) can chown a file. At most, if you're the owner of the file you can change its group with chgrp. From the chown man page Only the root user can change the owner of a file. You can change the group of a file only if you ar…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment