Difference between revisions of "Access Partitions Without Entering a Password"

formatting codeblock etc
(Steamlining boxes and quotes - removing unnecessary whitespace)
(formatting codeblock etc)
Line 10: Line 10:
You will need to first open your terminal in order to create the ''99-manjaro.rules'' file. The syntax of the command to edit the mirrorlist is:
You will need to first open your terminal in order to create the ''99-manjaro.rules'' file. The syntax of the command to edit the mirrorlist is:


sudo [text editor] /etc/polkit-1/rules.d/99-manjaro.rules
{{UserCmd|sudo [text editor] /etc/polkit-1/rules.d/99-manjaro.rules}}


For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:
For example, if you wish to edit the file within the terminal using nano (a standard terminal-based text editor) then enter:


sudo nano /etc/polkit-1/rules.d/99-manjaro.rules
{{UserCmd|sudo nano /etc/polkit-1/rules.d/99-manjaro.rules}}


Otherwise, if you have installed the full version of Manjaro (i.e. not the NET-Edition), you may find it easier to use a text editor like ''Gedit'' or ''Leafpad'' instead. This will create and open the ''99-manjaro.rules'' file up as a document, making it easier to read and edit. To use ''Gedit'' instead, the command is:
Otherwise, if you have installed the full version of Manjaro (i.e. not the NET-Edition), you may find it easier to use a text editor like ''Gedit'' or ''Leafpad'' instead. This will create and open the ''99-manjaro.rules'' file up as a document, making it easier to read and edit. To use ''Gedit'' instead, the command is:


gksu gedit /etc/polkit-1/rules.d/99-manjaro.rules
{{UserCmd|gksu gedit /etc/polkit-1/rules.d/99-manjaro.rules}}


=Step 2: Editing the ''99-manjaro.rules'' File=
=Step 2: Editing the ''99-manjaro.rules'' File=
Line 26: Line 26:
Once the blank file has been opened, copy and paste in the following command to override the default permissions used by ''UDisks2'':
Once the blank file has been opened, copy and paste in the following command to override the default permissions used by ''UDisks2'':


{{File|/etc/polkit-1/rules.d/99-manjaro.rules|
<pre>
  polkit.addRule(function(action, subject) {
  polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
  if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("storage")) {
Line 32: Line 34:
  }
  }
  );
  );
 
</pre>
}}
Once you have completed the new file, save the changes and close it by:
Once you have completed the new file, save the changes and close it by:


Moderators, translator
455

edits