/var/empty must be owned by root and not group or world-writable

Today I happened to play Hadoop in my Windows machine. Just as the guide said I first installed Cygwin with ssh. I referred to [url=http://www.cs.brandeis.edu/~rshaull/cs147a-fall-2008/hadoop-windows/]this article[/url]. But when I go to step "/usr/sbin/sshd", I met a problem "/var/empty must be owned by root and not group or world-writable."

Firstly, I thouht I don't have full access right on /var/empty. So I entered command "chmode 777 /var/empty". But it doesn't work.

So I started to google immediatelly and got an [url=http://cygwin.com/ml/cygwin/2008-02/msg00437.html]answer[/url].
It says:[quote]On Cygwin, root is a group (an alias to the 'Administrators' group) not
a user. So you can "chgrp root" but not "chown root". But that doesn't
matter, as really what the above error is saying is that the directory
should be owned by the user that is running the ssh daemon, which on
most unix systems is root but on Cygwin is SYSTEM since it's a service.
So, the error is a little misleading but it's because it's a generic
message from OpenSSH.

[/quote]

So I entered command "chgrp root /var/empty".
It still does not work.
When entering "ls -l /var", I found the info of /var/empty is different with other directories.

So I try to make it identify with others.

chgrp None /var/empty
chown Administrator /var/empty
chmod 755 /var/empty


Now it looks the same with others:
[quote]$ ls -l /var
total 4
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:02 cache
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:06 empty
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:06 lib
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:07 lock
drwxrwxrwx+ 1 Administrator None 0 Nov 14 22:54 log
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:03 openldap
drwxr-xr-x+ 1 SYSTEM root 0 Nov 14 21:07 proftpd
drwxrwxrwx+ 1 Administrator None 0 Nov 14 20:56 run
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:03 spool
drwxrwxrwt+ 1 Administrator None 0 Nov 14 20:55 tmp
drwxr-xr-x+ 1 Administrator None 0 Nov 14 21:05 varnish
[/quote]

Now I entered "/usr/sbin/sshd"
It works. Great!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值