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

Bayona, Rafael 1 Reputation point
2022-12-28T15:13:30.54+00:00

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?

[jeronimr@corp.aspentech.com@AZQASSE001 /]$ 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

Regards

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

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 18,367 Reputation points Microsoft Employee
    2022-12-29T03:58:51.587+00:00

    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 : https://www.howtogeek.com/437958/how-to-use-the-chmod-command-on-linux/

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


  2. Ronen Ariely 15,096 Reputation points
    2022-12-30T15:06:09.233+00:00

    Hi,

    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

    0 comments No comments