我是Linux的粉絲,但由於Linux中壞的英特爾無線驅動程序,我不得不切換到Windows 7.我已經在Windows中安裝了Cygwin,並且想要配置SSH以遠程連接我的筆記本電腦。Cygwin SSH的目錄權限(Windows 7)
我搜索谷歌和發現information for installing openssh server on Win 7,但運行ssh-host-config
當我收到以下錯誤:
[email protected] ~ $ ssh-host-config yes *** Info: Creating default /etc/ssh_config file *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes *** Info: Creating default /etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenSSH 3.3. *** Info: However, this requires a non-privileged account called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/READ ME.privsep. *** Query: Should privilege separation be used? (yes/no) no *** Info: Updating /etc/sshd_config file *** Warning: The following functions require administrator privileges! *** Query: Do you want to install sshd as a service? *** Query: (Say "no" if it is already installed as a service) (yes/no) yes *** Query: Enter the value of CYGWIN for the daemon: [] *** Info: On Windows Server 2003, Windows Vista, and above, the *** Info: SYSTEM account cannot setuid to other users -- a capability *** Info: sshd requires. You need to have or to create a privileged *** Info: account. This script will help you do so. *** Warning: The owner and the Administrators need *** Warning: to have .w. permission to /var/run. *** Warning: Here are the current permissions and ACLS: *** Warning: drwxr-xr-x 1 bala None 0 2010-01-17 22:34 /var/run *** Warning: # file: /var/run *** Warning: # owner: bala *** Warning: # group: None *** Warning: user::rwx *** Warning: group::r-x *** Warning: other:r-x *** Warning: mask:rwx *** Warning: *** Warning: Please change the user and/or group ownership, *** Warning: permissions, or ACLs of /var/run. *** ERROR: Problem with /var/run directory. Exiting.
此文件夾的權限都顯示爲只讀(僅適用於本文件夾),檢查灰色。我試圖取消選中,但在我再次打開屬性後,該框再次被檢查。有沒有辦法改變這個文件夾的權限?
它與窗口UAC有關嗎?如果您使用管理員運行Cygwin,它會發生嗎? – Tommy 2010-01-29 03:33:42
我實際上在我的機器中禁用了UAC。即使在使用「以管理員身份運行」時也會發生這種情況 – Boolean 2010-01-29 03:38:42
這是超級用戶嗎?這不是與編程相關的。 – Catchwa 2010-01-29 04:15:28