1 00:00:00,210 --> 00:00:03,060 ‫The chain command, or you may have heard Chown. 2 00:00:04,330 --> 00:00:06,500 ‫Either way, you choose to say it, hmm. 3 00:00:06,940 --> 00:00:08,740 ‫They're probably both acceptable. 4 00:00:09,160 --> 00:00:10,030 ‫But anyway. 5 00:00:10,960 --> 00:00:19,630 ‫The Chiong command changes user ownership of a fire right change, ownership of a file directory or 6 00:00:19,660 --> 00:00:24,880 ‫link in Linux, so every file is associated with an owning user or group. 7 00:00:25,630 --> 00:00:28,930 ‫It's critical to configure file and folder permissions properly. 8 00:00:30,990 --> 00:00:38,820 ‫Now, to change both the owner and the group of a file use the chain command, followed by the new owner 9 00:00:38,820 --> 00:00:44,850 ‫and group separated by a colon with no intervening spaces and the target file. 10 00:00:45,570 --> 00:00:47,010 ‫So let's just practice it. 11 00:00:48,310 --> 00:00:52,630 ‫First, Liz files with the Dash L parameters, see the permissions. 12 00:00:53,640 --> 00:00:58,110 ‫And here you can see the owner and group of the my tax file are calling. 13 00:00:58,920 --> 00:00:59,610 ‫So let's change it. 14 00:01:00,420 --> 00:01:04,650 ‫Run Chon, nobody colon games my tax file. 15 00:01:11,990 --> 00:01:13,040 ‫Oh, right. 16 00:01:13,280 --> 00:01:16,190 ‫See, this operation needs root privileges. 17 00:01:16,400 --> 00:01:17,060 ‫Of course, I knew that. 18 00:01:17,090 --> 00:01:17,810 ‫I'm just showing you. 19 00:01:17,930 --> 00:01:18,230 ‫Yeah. 20 00:01:18,830 --> 00:01:21,170 ‫Then let's run this command with pseudo. 21 00:01:22,560 --> 00:01:23,490 ‫It's the files again. 22 00:01:24,820 --> 00:01:29,410 ‫And sure enough, I set the owner as nobody and the group as games.