2008年10月23日木曜日

Cygwin OpenSSH problem of start service.

OS WindowsVista x86-64


$ ssh-host-config -y
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) 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) yes
*** Warning: The file /etc/passwd is not readable by all.
*** Warning: Please run 'chmod +r /etc/passwd'.
*** Warning: The file /etc/group is not readable by all.
*** Warning: Please run 'chmod +r /etc/group'.
*** ERROR: Problem with LocalSystem or Adminstrator IDs


$ ls -l /etc/passwd
-r-xr-x---+ 1 matsumura Users 745 Sep 26 02:37 passwd

$ ls -l /etc/group
-r-xr-x---+ 1 matsumura Users 1147 Sep 26 02:37 group

$ chmod +r /etc/passwd

$ chmod +r /etc/group

$ ls -l /etc/passwd
-r-xr-xr--+ 1 tsumura Users 745 Sep 26 02:37 passwd

$ ls -l /etc/group
-r-xr-xr--+ 1 tsumura Users 1147 Sep 26 02:37 group

$ ssh-host-config -y
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) 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) yes
*** Warning: The permissions on the directory /var are not correct.
*** Warning: They must match the regexp d..x..x..[xt]
*** ERROR: Problem with /var directory. Exiting.

$ chmod 111 /var

$ ls -l /
d--x--x--x+ 14 tsumura Users 4096 Oct 22 12:25 var

$ ls -l /etc/passwd
-r-xr-xr--+ 1 tsumura Users 745 Sep 26 02:37 /etc/passwd

$ chmod +w /etc/passwd

$ ls -l /etc/passwd
-rwxr-xr--+ 1 tsumura Users 745 Sep 26 02:37 /etc/passwd

0 件のコメント: