Linux Lessons – 4 Users & Groups

Hello, We continue to post Users & Groups.   In the previous article, we have made a start on this topic, now we will examine this issue a little more.

Changing User and Group:

In the previous lesson we understood what users and groups mean, and now we will try to make changes to them.

A file, directory, and so on. We said that the user who created it becomes its owner.

However, we may need to change the owner or group later (when installing an application, it may require an application-specific user and group).

So let’s move on to the example.

Our keyword chown

This command has more than one parameter, you can change only the owner, you can change both the group and the owner if you want only the group.

 

With a few examples we can understand more nicely.

 

chown root Music/

 

 

As we have seen, we have changed the user of the Music directory now let’s change the group and user at the same time.

chown root:root Documents/

 

 

We changed both the user and group of the directory with a single command.

If we just wanted to change the group,

chown :root Music/

In our next post we will do file permission procedures, see you later

Deniz Parlak

Hi, I'm a Computer Engineering student in Dumlupınar University.I will graduate next year. I did an internship TurkNet Telecominication Company in 2018 June- 2018 September. I had experience Linux/Unix system, SQL Server Management , SSRS, Mysql Database Management,Troubleshooting performance issues in Linux. I also interested Oracle database and technologies. I want to work as Oracle DBA after my University. I am practicing Unix, Exadata, Orace Cloud, Oracle RAC, Dataguard, EBS, Oracle BI and etc and i hope the articles will be helpful. Any questions, or support please write email deniz.parlak@yahoo.com

Leave a Reply

Your email address will not be published. Required fields are marked *