Cannot create folder: /etc/opt/chrome/policies/managed
I am trying to disable Google chrome's incognito mode by following the instructions here:
How to disable Chrome's Incognito Mode?
(the first answer)
I am unsure as to how to create the folders needed. Could someone please give clear, simple, steps as I am a newcomer... Running: Vanilla Ubuntu 15.10 on an Asus laptop.
Since, you want an easy explanation to the tutorial you pointed, I am just going to elaborate here:
-
Open terminal from Dash. Type:
sudo nautilus
Then, navigate to File System > etc > opt
Create a new folder "chrome". Enter the folder.
Create a new folder "policies". Enter the folder.
Create a new folder "managed". Enter the folder.
Now, right-click and Create a new document. Name it: "anyname.json".
Exit nautilus.
Close the terminal window.
Open new terminal window and type:
sudo gedit /etc/opt/chrome/policies/managed/anyname.json
- Then in gedit, enter:
{
"IncognitoModeAvailability": 1
}
- Finally, save the file and exit it. Now, you should be able to get what you needed.