Public bug reported:

The chown command no longer updates the group when using `chown OWNER:`.
In every prior version of Ubuntu, this would properly update the
files/folders to `OWNER:OWNER` for example. Instead, now group remains
unchanged. The new rust-coreutils on Ubuntu 26.04 breaks this historical
behavior. For example:

```bash
$ mkdir /tmp/chown-test
$ ls -l /tmp/ | grep chown-test
drwxrwxr-x 2 ubuntu ubuntu 40 May 22 15:10 chown-test

$ sudo chown root: /tmp/chown-test/
$ ls -l /tmp/ | grep chown-test
drwxrwxr-x 2 root ubuntu 40 May 22 15:10 chown-test

$ sudo chown root:root /tmp/chown-test/
$ sudo chown ubuntu: /tmp/chown-test/
$ ls -l /tmp/ | grep chown-test
drwxrwxr-x 2 ubuntu root 40 May 22 15:10 chown-test
```

chown should (and used to) update the owner of `/tmp/chown-test` to
`root root` and `ubuntu ubuntu` respectively.

Packages:

```bash
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 26.04 LTS
Release:        26.04
Codename:       resolute

$ dpkg -l | grep coreutils
ii  coreutils                               9.5-1ubuntu2+0.0.0~ubuntu25         
       all          coreutils meta package
ii  coreutils-from-uutils                   0.0.0~ubuntu25                      
       all          coreutils from the uutils project
ii  gnu-coreutils                           9.7-3ubuntu2                        
       amd64        GNU core utilities
ii  rust-coreutils                          0.8.0-0ubuntu3                      
       amd64        Universal coreutils utils, written in Rust
```

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154013

Title:
  "sudo chown root: /some/dir" no longer updates the group.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/2154013/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to