omnisecu.com free mcse ccna rhce linux java learning  
Home Knowldege Base FAQ Contact Us Sitemap
omnisecu.com free mcse ccna rhce linux java learning  
omnisecu.com free mcse ccna rhce linux java learning
Home » Knowledge Base » Linux » RedHat Certified Engineer (RHCE) » How to use chgrp command to change Linux group ownership of a file
 

How to use chgrp command to change Linux group ownership of a file

 

To change the group ownership of a file in a Linux computer, we can use chgrp command.

An example of how to use chgrp command is shown below.

[root@RHEL2 chgrptest]# chgrp <new_group_owner> <file_name>

[root@RHEL2 chgrptest]# ls –l

total 0
-rw-r--r-- 1 root root 0 Jul  6 06:28 chgrptest
[root@RHEL2 chgrptest]# chgrp engg chgrptest
[root@RHEL2 chgrptest]# ls -l
total 0
-rw-r--r-- 1 root engg 0 Jul  6 06:28 chgrptest

 

Related Topics...

The Linux File Permissions

How to use chmod command to change Linux file permissions

How to use chown command to change linux user ownership of a file

Linux setuid and setgid

What is Linux umask?

 


eXTReMe Tracker

back
next
 
Disclaimer | Feed Back | Trademarks | Knowledge Base | FAQ | Sitemap | Downloads