cygwin 多使用者 /bin/bash: Operation not permitted
Apologies for spamming but I think this fix needs to be automated in
ssh-host-config and updated in the cygwin FAQ.
Like many users I've been struggling with this obscure bug that allows one
to log on with ssh only as the priviledged user (cyg_server in my case).
Attempts under another user succeed in all modes of authentication (password,
RSA, DSA, whatever), but then get disconnected with the esoteric line:
/bin/bash: Operation not permitted
It turns out this has nothing to with bash, but rather with the usser
cyg_server needing specific NTSEC rights to allow logons as other users.
The fix was found here:
Specifically, ssh-host-config needs these following lines:
editrights -a SeAssignPrimaryTokenPrivilege -u cyg_server (cyg_server為服務啟動使用者)
editrights -a SeCreateTokenPrivilege -u cyg_server
editrights -a SeTcbPrivilege -u cyg_server
editrights -a SeServiceLogonRight -u cyg_server
#editrights -l -u cyg_server
然後重啟cygwin服務生效
Francis Korning de Grandpre
enterprise software architect
fkorning at yahoo dot ca
ssh-host-config and updated in the cygwin FAQ.
Like many users I've been struggling with this obscure bug that allows one
to log on with ssh only as the priviledged user (cyg_server in my case).
Attempts under another user succeed in all modes of authentication (password,
RSA, DSA, whatever), but then get disconnected with the esoteric line:
/bin/bash: Operation not permitted
It turns out this has nothing to with bash, but rather with the usser
cyg_server needing specific NTSEC rights to allow logons as other users.
The fix was found here:
Specifically, ssh-host-config needs these following lines:
editrights -a SeAssignPrimaryTokenPrivilege -u cyg_server (cyg_server為服務啟動使用者)
editrights -a SeCreateTokenPrivilege -u cyg_server
editrights -a SeTcbPrivilege -u cyg_server
editrights -a SeServiceLogonRight -u cyg_server
#editrights -l -u cyg_server
然後重啟cygwin服務生效
Francis Korning de Grandpre
enterprise software architect
fkorning at yahoo dot ca
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-2134489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- -bash: ulimit: open files: cannot modify limit: Operation not permittedMIT
- 安裝pods提示Operation not permitted usr bin xcodeprojMITXCode
- bundler安裝失敗,Operation not permitted - /usr/bin/***MIT
- macOS: sudo : Operation not permittedMacMIT
- -bash: ulimit: max user processes: cannot modify limit: Operation not permitted問題的處理MIT
- root使用者操作檔案提示 changing permissions of '***': Operation not permittedMIT
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- Failed to get D-Bus connection: Operation not permittedAIMIT
- chown: /usr/local: Operation not permitted問題解決MIT
- Mac 配置Maven遇到的zsh:operation not permitted:mvnMacMavenMIT
- ulimit: core file size: cannot modify limit: Operation not permittedMIT
- /bin/bash 和 /bin/ksh使用的使用者配置檔案的比較
- windows下安裝kibana出 "EPERM: operation not permittedWindowsMIT
- docker安裝matlab mount failed: Operation not permitted.DockerMatlabAIMIT
- 使用npm install報錯-4048 operation not permitted解決NPMMIT
- performing DML/DDL operation over object in binORMObject
- 指令碼前面的/bin/bash指令碼
- shell指令碼頭,#!/bin/sh與#!/bin/bash的區別.指令碼
- ionic3 ,win7下 npm install 報operation not permittedWin7NPMMIT
- 在Docker內部使用gdb偵錯程式報錯-Operation not permittedDockerMIT
- [20210222]gdb ptrace Operation not permitted.txtMIT
- 11g rac multipath asmlib ASM asm_open error Operation not permittedASMErrorMIT
- Oracle報performing DMLDDL operation over object in bin案例分析OracleORMObject
- -bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory
- yarn install 遇到的錯誤訊息 - Error EPERM operation not permitted, open .yarnrcYarnErrorMIT
- 執行shell指令碼報錯:-bash: ./test1.sh: /bin/bash^M: ...指令碼
- performing DML/DDL operation over object in bin ORA-38301ORMObject
- npm 或 yarn安裝依賴報錯 EPERM: operation not permitted, unlink 解決方法NPMYarnMIT
- linux操作提示:“Can't open file for writing”或“operation not permitted”的解決辦法LinuxMIT
- macosx 10.11 python pip install 出現錯誤OSError: [Errno 1] Operation not permitted:MacPythonErrorMIT
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- 解決“/bin/bash^M: bad interpreter: No such file or directory”
- -bash: /bin/rm: Argument list too long的解決辦法
- 錯誤:OSError: [Errno 1] Operation not permitted: 'lib/python/six-1.4.1-py2.7.egg-info'ErrorMITPython
- 多執行緒:Operation和OperationQueue執行緒
- Shell指令碼報錯:-bash: ./switch.sh: /bin/bash^M: bad interpreter: No such file or directory指令碼
- -bash: /tyrone/jdk/jdk1.8.0_91/bin/java: cannot execute binary fileJDKJava
- cygwin安裝Cygwin/X需要選擇的包