- 论坛徽章:
- 0
|
本帖最后由 hfy9013 于 2013-01-19 09:52 编辑
回复 2# blackold
Huangfu@Huangfu-PC ~
$ ls -l /var/run
总用量 0
-rw-r--r-- 1 Huangfu None 0 一月 18 16:44 utmp
Huangfu@Huangfu-PC ~
$ chmod g+w /var/run
Huangfu@Huangfu-PC ~
$ ls -l /var/run
总用量 0
-rw-r--r-- 1 Huangfu None 0 一月 18 16:44 utmp
Huangfu@Huangfu-PC ~
$
还是不行呢?
下面是运行的,求指教!真心是配置不成功!
Huangfu@Huangfu-PC ~
$ ssh-host-config
*** Warning: Running this script typically requires administrator privileges!
*** Warning: However, it seems your account does not have these privileges.
*** Warning: Here's the list of groups in your user token:
None
Users
HomeUsers
*** Warning: This usually means you're running this script from a non-admin
*** Warning: desktop session, or in a non-elevated shell under UAC control.
*** Warning: Make sure you have the appropriate privileges right now,
*** Warning: otherwise parts of this script will probably fail!
*** Query: Are you sure you want to continue? (Say "no" if you're not sure
*** Query: you have the required privileges) (yes/no) yes
*** 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) no
*** Info: Updating /etc/sshd_config file
*** 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: [] ntsec
*** 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 Huangfu None 0 一月 18 15:51 /var/run
*** Warning: # file: /var/run
*** Warning: # owner: Huangfu
*** 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.
|
|