Root user/sudo equivalent in Cygwin?

后端 未结 17 2266
旧时难觅i
旧时难觅i 2020-12-04 04:23

I\'m trying to run a bash script in Cygwin.

I get Must run as root, i.e. sudo ./scriptname errors.

chmod 777 scriptname does no

17条回答
  •  不思量自难忘°
    2020-12-04 05:22

    A new proposal to enhance SUDO for CygWin from GitHub in this thread, named TOUACExt:

    • Automatically opens sudoserver.py.
    • Automatically closes sudoserver.py after timeout (15 minutes default).
    • Request UAC elevation prompt Yes/No style for admin users.
    • Request Admin user/password for non-admin users.
    • Works remotely (SSH) with admin accounts.
    • Creates log.

    Still in Pre-Beta, but seems to be working.

提交回复
热议问题