Forrest logo
back to the chown tool

chown:ai:38384

User bob is in groups bg1 and bg2. User pat is in group pgg. drw------x 2 pat ted 60 Jan 1 1:00 foo --w--w-r-x 1 pat bg1 0 Jan 1 1:00 foo/bar
$ chown bob:bg2 foo/bar
try on your machine

Change the ownership of the file 'bar' inside directory 'foo' to user bob and group bg2

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • User bob is in groups bg1 and bg2. User pat is in group pgg. drw------x 2 pat ted 60 Jan 1 1:00 foo --w--w-r-x 1 pat bg1 0 Jan 1 1:00 foo/bar?
back to the chown tool