![]() ![]() To do so, define a new user followed by a colon, space, and the target file: chown NewUser: FILE The chown command assigns the owner’s login group to the file when no group is specified. ![]() Remember that there are no spaces before or after the colon. Therefore, to set linuxuser as the new owner and group2 as the new group of the file sample2: chown linuxuser:group3 sample3 To assign a new owner of a file and change its group at the same time, run the chown command in this format: chown NewUser:NewGroup FILE ![]() Similar to UID, use a group ID (GID) instead of a group name to change the group of a file.įor example: chown :1003 sample Change Owner and the Group List multiple names of files or directories to make bulk changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |