How can i assign write permission to a disk in a Linux VM?

Bayona, Rafael 1 Reputation point

Hi, i am working in a machine that has a 2 terabytes disk, but the disk doesn't have permission for writing anything.

Someone knows how to change the permission from the disk?

[ /]$ ls -lsh
total 32K
4. 0K drwxr-xr-x. 3 root root 4.0K Dec 20 09:30 2TB_Disk
0 drwxr-xr-x. 2 root root 6 Dec 20 09:31 2TB_DISK


Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,595 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 10,781 Reputation points Microsoft Employee

    Hi @Bayona, Rafael

    You can use chmod command to assign write permissions to a disk in a Linux VM.

    chmod u+w {pathtodisk}  

    where, u+ w implies user + write

    Reference doc :

    Let me know in the comments if you are looking for something else.

  2. Ronen Ariely 13,786 Reputation points Microsoft MVP


    I don't have admin right to do that. Do you know what i can do it?

    What do you expect as answer? Do you want us to help you crack someone else system?!?

    If you don't have admin permission the speak with the admin.

    If you are the owner of the Azure subscription then you can change the admin password if needed. You can also send command from the Azure portal. For more information on doing this, check the following doc:

    Preview: Run scripts in your Linux VM by using managed Run Commands

    No comments