3

I am completely new to Ubuntu.

There are 4 user groups in my Ubuntu 13.04 (32bit).

In user group ceo, there is only one user chief.

There is a folder in Home (default Personal folder) which is named ITSM Lab1.

There are subfolders with files inside ITSM Lab1.

I want to give user chief or group ceo Full permissions for the folder ITSM Lab1 and everything inside it (and Full permissions will also be given to future subfolders and files).

What is the command to do these?

muru
  • 207,228
kaly
  • 31

1 Answers1

1

You have several options:

  1. You can set the group of the folder ITSM Lab1 to be ceo and give full access to the group for this folder and its subfolders.

Recursively change group for the folder and its subfolders:

chgrp -R ceo ITSM Lab1

Recursively change permission for a group:

chmod g+rwx ceo ITSM Lab1
  1. You can set the owner of the folder ITSM Lab1 to be chief and give full access to that user for this folder and its subfolders.

Recursively change owner for the folder and its subfolders:

chown -R chief ITSM Lab1

Recursively change permission for a group:

chmod u+rwx chief ITSM Lab1

The below links to the man page will provide more info about the command used above:

Yaron
  • 13,453