# How To Use Touch ID for Sudo on macOS

## Метаданные

- **Канал:** CSS Weekly
- **YouTube:** https://www.youtube.com/watch?v=vQHUibiGo-s
- **Источник:** https://ekstraktznaniy.ru/video/37904

## Транскрипт

### Segment 1 (00:00 - 01:00) []

Did you know that you can use Touch ID for sudo on your Mac? Here's how. On Mac OS 14 and later, you can set up a configuration file that persists even after software updates. There is already a template file that you can use for this on your system. You're going to find it exactly here. To enable it, you have to do two things. You have to remove the template extension, and you have to uncomment the code inside. So, let's do that. I will copy the file. I will need a sudo command for that, and I will copy it exactly to the same destination, just without the template extension. As I don't have Touch ID enabled for sudo, I have to enter my password manually. There we go. Now I'm going to edit that file. I'm going to use VIM editor for that. The only thing I need to do is uncomment this line right here to enable Touch ID for sudo. Let's try it out. If I open another terminal window and use sudo, I won't have to enter my password anymore; I can just use Touch ID. And of course, if you don't use your Touch ID, you can still authenticate using your password. Keep in mind that this only works on your local machine. So if you SSH into a different server, you will still have to enter your password.
