Operation not permitted Kali Linux Bash on Windows 10 [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to change the MAC address of a external wifi adapter. Tried changing adapter options under advanced tab there is no "Physical Address" option to change. Tried using 3rd party mac changer software, but it failed to change the MAC too. However on a linux system running these terminal commands:



ip link set dev wifi0 down
ip link set dev wifi0 address XX:XX:XX:XX:XX:XX
ip link set dev wifi0 up


Successfully changed the MAC address, but that's on linux and I wanted a solution for Windows 10, so I installed kali bash linux subsystem for windows. I have installed everything and set admin/root user. When I run the Terminal and type sudo su it ask me for password so I enter password and everything is fine as showed:



root@DESKTOP-PC:/home/username#


Now when I try to use the command from above:



ip link set dev wifi0 address XX:XX:XX:XX:XX:XX


Says error: RTNETLINK answers: Operation not permitted










share|improve this question















closed as off-topic by Kiwy, G-Man, Rui F Ribeiro, DopeGhoti, Fabby Nov 27 at 21:36



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 5




    I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
    – Kiwy
    Nov 27 at 20:17






  • 1




    This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
    – kemotep
    Nov 27 at 20:22






  • 1




    @kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
    – Rui F Ribeiro
    Nov 27 at 21:40











  • @RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
    – kemotep
    Nov 27 at 21:48














up vote
0
down vote

favorite












I want to change the MAC address of a external wifi adapter. Tried changing adapter options under advanced tab there is no "Physical Address" option to change. Tried using 3rd party mac changer software, but it failed to change the MAC too. However on a linux system running these terminal commands:



ip link set dev wifi0 down
ip link set dev wifi0 address XX:XX:XX:XX:XX:XX
ip link set dev wifi0 up


Successfully changed the MAC address, but that's on linux and I wanted a solution for Windows 10, so I installed kali bash linux subsystem for windows. I have installed everything and set admin/root user. When I run the Terminal and type sudo su it ask me for password so I enter password and everything is fine as showed:



root@DESKTOP-PC:/home/username#


Now when I try to use the command from above:



ip link set dev wifi0 address XX:XX:XX:XX:XX:XX


Says error: RTNETLINK answers: Operation not permitted










share|improve this question















closed as off-topic by Kiwy, G-Man, Rui F Ribeiro, DopeGhoti, Fabby Nov 27 at 21:36



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.








  • 5




    I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
    – Kiwy
    Nov 27 at 20:17






  • 1




    This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
    – kemotep
    Nov 27 at 20:22






  • 1




    @kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
    – Rui F Ribeiro
    Nov 27 at 21:40











  • @RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
    – kemotep
    Nov 27 at 21:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to change the MAC address of a external wifi adapter. Tried changing adapter options under advanced tab there is no "Physical Address" option to change. Tried using 3rd party mac changer software, but it failed to change the MAC too. However on a linux system running these terminal commands:



ip link set dev wifi0 down
ip link set dev wifi0 address XX:XX:XX:XX:XX:XX
ip link set dev wifi0 up


Successfully changed the MAC address, but that's on linux and I wanted a solution for Windows 10, so I installed kali bash linux subsystem for windows. I have installed everything and set admin/root user. When I run the Terminal and type sudo su it ask me for password so I enter password and everything is fine as showed:



root@DESKTOP-PC:/home/username#


Now when I try to use the command from above:



ip link set dev wifi0 address XX:XX:XX:XX:XX:XX


Says error: RTNETLINK answers: Operation not permitted










share|improve this question















I want to change the MAC address of a external wifi adapter. Tried changing adapter options under advanced tab there is no "Physical Address" option to change. Tried using 3rd party mac changer software, but it failed to change the MAC too. However on a linux system running these terminal commands:



ip link set dev wifi0 down
ip link set dev wifi0 address XX:XX:XX:XX:XX:XX
ip link set dev wifi0 up


Successfully changed the MAC address, but that's on linux and I wanted a solution for Windows 10, so I installed kali bash linux subsystem for windows. I have installed everything and set admin/root user. When I run the Terminal and type sudo su it ask me for password so I enter password and everything is fine as showed:



root@DESKTOP-PC:/home/username#


Now when I try to use the command from above:



ip link set dev wifi0 address XX:XX:XX:XX:XX:XX


Says error: RTNETLINK answers: Operation not permitted







networking wifi kali-linux ip mac-address






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 at 21:02









Rui F Ribeiro

38.4k1477127




38.4k1477127










asked Nov 27 at 20:11









Hyian Myson

1




1




closed as off-topic by Kiwy, G-Man, Rui F Ribeiro, DopeGhoti, Fabby Nov 27 at 21:36



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.




closed as off-topic by Kiwy, G-Man, Rui F Ribeiro, DopeGhoti, Fabby Nov 27 at 21:36



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 5




    I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
    – Kiwy
    Nov 27 at 20:17






  • 1




    This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
    – kemotep
    Nov 27 at 20:22






  • 1




    @kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
    – Rui F Ribeiro
    Nov 27 at 21:40











  • @RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
    – kemotep
    Nov 27 at 21:48












  • 5




    I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
    – Kiwy
    Nov 27 at 20:17






  • 1




    This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
    – kemotep
    Nov 27 at 20:22






  • 1




    @kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
    – Rui F Ribeiro
    Nov 27 at 21:40











  • @RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
    – kemotep
    Nov 27 at 21:48







5




5




I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
– Kiwy
Nov 27 at 20:17




I'm voting to close this question as off-topic because it's a windows issue. If the adapter cannot be change on Windows but can on linux change it on linux. MAC address can only be change in memory not on regular network hardware.
– Kiwy
Nov 27 at 20:17




1




1




This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
– kemotep
Nov 27 at 20:22




This is a Windows issue with WSL confirmed here. You need to run the Windows Subsystem for Linux with elevated permissions. The subsystem does not have permission to make changes to the configuration of the Host system and for good reasons!
– kemotep
Nov 27 at 20:22




1




1




@kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
– Rui F Ribeiro
Nov 27 at 21:40





@kemotep That link does not seem about changing a MAC address. I highly doubt it is possible as WSL only provides a limited view on the Windows HAL. And if you have to elevate it for some other reason, at the end of the day IT IS a Windows issue.
– Rui F Ribeiro
Nov 27 at 21:40













@RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
– kemotep
Nov 27 at 21:48




@RuiFRibeiro, I found it searching the specific error user Hyian Myson reported and that error is resolved by running the WSL.exe as Admin. I will admit I was hasty in prescribing that has a solution and you are quit right it is not about changing the MAC but it does involve using ip link. This is a Windows issue, however in the future do you think any WSL posts will be relevant here and not actually be a fault with Windows?
– kemotep
Nov 27 at 21:48















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay