Pick a Free OS

User login

Navigation

File Permissions and the chmod/chgrp/chown commands

  • The username followed by a dot or colon and no groupname changes the

    user ownership as specified and changes the group ownership to the specified

    user?s login group.

  • If the colon or dot and groupname are specified without a username,

    then only the groupownership is changed. This is effectively the same as

    the chgrp command.


  • If the username is not followed by a dot or a colon, then only the

    user ownership is changed.


  • The

    chgrp command

    The chgrp command is used to change the group ownership of one or more files

    or directories. Its general syntax is :

    chgrp [-Rcfv] groupname foo.txt

    The flags used here are also the same as those in the chmod command. The

    changes in ownership are applied to the groupname and the filename specified.


    The author grants you express permission to copy/save/republish this article

    in electronic or hardcopy format

    as long as its contents including this instruction are not changed.
    Created in Linux using Abiword, CoffeeCup and my \\\\\\\'rustic\\\\\\\' html skills.