Azure / Azure/azure-linux-extensions
[VMAccessForLinux] sudo access with password
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
On the latest SLES15SP1 image (*suse:sles-15-sp1-basic:gen2:2020.02.26*)
**targetpw** is set by default in */etc/sudoers*
When you deploy the VM the user can use sudo without the need to enter a password:
```
azureuser ALL = (ALL) NOPASSWD: ALL
```
But when you reset the user password from the Portal, it change the setting so that the user is require to enter a password:
```
azureuser ALL = (ALL) ALL
```
Since **targetpw** is set on this image, the user is prompt for the *targetuser* password, if the *targetuser* password is not set then the user cannot use sudo.
Is there a reason why the extension reset those settings and request the user to enter a password when using sudo ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.