Thursday, 16 March 2017

Easy way to Disable and Enable flashdrives in LINUX


Step 1:

First open the terminal(Ctrl + Alt + T).

Step 2:

Switch to the root mode or administrator mode in Terminal

# sudo bash



Step 3:

Type the following commands

# sudo chmod 444 /media/

This command is used for disable the media drives and including pendrive


Step 4:

# sudo chmod 777 /media/


This command is used for enable the media drives

Normally 4 is the changing the console permission

444 is represented from  (r-- r-- r--) attributes

Normally 7 is the execute the file permission

777 is represented from (rwx rwx rwx) attributes.

No comments:

Post a Comment