Today I happened to play Hadoop in my Windows machine. Just as the guide said I first installed Cygwin with ssh. I referred to
this article. 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
answer.
It says:
引用
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.
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:
引用
$ 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
Now I entered "/usr/sbin/sshd"
It works. Great!
分享到:
相关推荐
在关闭数据库的命令发现mysql关不了,提示Warning: World-writable config file '/etc/my.cnf' is ignored ,大概意思是权限全局可写,任何一个用户都可以写。mysql担心这种文件被其他用户恶意修改,所以忽略掉这个...
精通pl/sql part2
资源分类:Python库 所属语言:Python 资源全名:drf-writable-nested-0.1.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
end-of-stream, 当 readable/writable/duplex 流已经完成或者失败时调用回调 end-of-stream当 readable/writable/duplex 流完成或者失败时调用回调的node 模块。npm install end-of-stream用法只需传递一个流和一个...
资源分类:Python库 所属语言:Python 资源全名:drf-writable-nested-0.3.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
DRF可写嵌套 ...pip install drf-writable-nested 用法 例如,对于以下模型结构: from django . db import models class Site ( models . Model ): url = models . CharField ( max_length = 100 ) clas
$ ./emulator -avd Pixel_XL_API_23 -writable-system #回车后会有一条警告,无视即可 emulator: WARNING: System image is writable 如果出现警告,说明成功。 二、安装SuperSU.apk 进入到刚才下载的SuperSU.apk ...
// Image.Parent.Invalidate or Image.Parent.Refresh to restore the background. // // This change was made as a result of a email correspondance with // // Tineke Kosmis (http://www.classe.nl/) which ...
// Not own constructor property must be Object if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { return false; } // Own properties are enumerated firstly, so to speed up, // if...
* Ensure that the new location for the path is writable by the web server process. To grant write permissions for a directory named uploads, you may need to use the following command from a shell ...
struts2标签,史上最详细的struts2标签介绍
var writable = require ( 'writable-window-method' ) ; writable ( [ 'XMLHttpRequest' , 'Date' , 'setTimeout' ] ) ; function XMLHttpRequest ( ) { console . log ( 'Owned' ) ; } var noNative = new ...
安装$ npm install --save-dev hook-writable-stream用法使用回调var hookWritableStream = require ( 'hook-writable-stream' ) ;var hook = hookWritableStream ( process . stdout , false , function ( string )...
快速服务可写Express 中间件,用于使用 PUT/DELETE 请求写入文件系统。 express-serve-writable 是的静态文件服务的可写补充。...var root = args [ 0 ] ;var app = express ( ) ;app . use ( serveStatic ( roo
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Passed All installer requirements met. Preparing to launch Oracle Universal Installer...
安装这个模块是通过 npm 安装的: $ npm install writable-stream-echo测试可以通过执行以下命令来运行测试: $ grunt test示例用法 var WritableStreamEcho = require ( 'writable-stream-echo' ) ;var StreamArray...
SDFix能够去除安卓4.4上无法向外置sd卡写数据的限制。