python - How to symlink with password in python?
问题描述
I use python on macos. I want to create a symlink using os.symlink() , it works on regular directory but i want to link or mount folders into my /Volumes/ which need password. In terminal i have to do symlink using 'sudo' command.
How to do it in python ? What is the best mechanism to pass the password when i call os.symlink() ?
解决方案
推荐阅读
- java - 使用 yml 配置而不是standalone.xml
- python - 删除字符串中出现的元音
- android - 使用正则表达式进行选择时,ContentResolver.query() 的 Android-studio 问题
- c - 从具有指定字节顺序的二进制 unsigned char* 读取 C 中的 double
- python - Change plt.imshow() into cv2.imshow() in Python
- machine-learning - 机器学习问题中的特征选择
- php - 如何使用 php 和 TCPDF 在 pdf 中绘制虚线?
- regex - 正则表达式替换异常
- docker - 使用 netcat 连接到运行 golang 服务器的 docker 容器
- excel - 显示编译错误:检测到不明确的名称,同时重载函数