Windows 7 – Cygwin SSH的目录权限(Windows 7)

前端之家收集整理的这篇文章主要介绍了Windows 7 – Cygwin SSH的目录权限(Windows 7)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我是 Linux的粉丝,但是由于 Linux中的英特尔无线驱动程序不好,我不得不切换到Windows 7.我已经在Windows中安装了Cygwin,并希望将SSH配置为远程连接到笔记本电脑.

我用Google搜索并发现了information for installing openssh server on Win 7,但是当运行ssh-host-config时,我收到以下错误

  1. bala@bala-PC ~
  2. $ssh-host-config
  3. yes
  4. *** Info: Creating default /etc/ssh_config file
  5. *** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
  6. *** Info: Creating default /etc/sshd_config file
  7. *** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
  8. *** Info: However,this requires a non-privileged account called 'sshd'.
  9. *** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
  10. ME.privsep.
  11. *** Query: Should privilege separation be used? (yes/no) no
  12. *** Info: Updating /etc/sshd_config file
  13.  
  14. *** Warning: The following functions require administrator privileges!
  15.  
  16. *** Query: Do you want to install sshd as a service?
  17. *** Query: (Say "no" if it is already installed as a service) (yes/no) yes
  18. *** Query: Enter the value of CYGWIN for the daemon: []
  19. *** Info: On Windows Server 2003,Windows Vista,and above,the
  20. *** Info: SYSTEM account cannot setuid to other users -- a capability
  21. *** Info: sshd requires. You need to have or to create a privileged
  22. *** Info: account. This script will help you do so.
  23.  
  24. *** Warning: The owner and the Administrators need
  25. *** Warning: to have .w. permission to /var/run.
  26. *** Warning: Here are the current permissions and ACLS:
  27. *** Warning: drwxr-xr-x 1 bala None 0 2010-01-17 22:34 /var/run
  28. *** Warning: # file: /var/run
  29. *** Warning: # owner: bala
  30. *** Warning: # group: None
  31. *** Warning: user::rwx
  32. *** Warning: group::r-x
  33. *** Warning: other:r-x
  34. *** Warning: mask:rwx
  35. *** Warning:
  36. *** Warning: Please change the user and/or group ownership,*** Warning: permissions,or ACLs of /var/run.
  37.  
  38. *** ERROR: Problem with /var/run directory. Exiting.

文件夹的权限显示为只读(仅适用于此文件夹),灰色检查.我试图取消勾选,但是再次打开属性后,再次检查该框.有没有办法更改这个文件夹的权限?

我在Windows 7 x64和sshd上运行cygwin 1.7.我不记得当我运行sshd_config时收到这个错误,但是我只是看了我的/ var / run目录,它设置为777.

尝试这个在cygwin shell chmod 777 / var / run

猜你在找的Windows相关文章