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!
分享到:
相关推荐
`/var/empty/sshd must be owned by root and not group or world-writable.` 这时,需要确保 `/var/empty/sshd` 目录的所有权属于root用户,并且其权限设置为不可写入。可以使用以下命令来解决这个问题: `#chown...
报错信息:`/var/empty/sshd must be owned by root and not group or world-writable.` 这个错误意味着 `/var/empty/sshd` 文件或目录的权限设置不正确,它必须由 root 用户拥有,并且不能是可被组成员或所有用户...
然而,当遇到“MySQL无法重启报错:Warning: World-writable config file ‘/etc/my.cnf’ is ignored”时,这意味着MySQL服务器忽视了配置文件`/etc/my.cnf`,因为该文件具有全局可写的权限,这可能导致安全风险。...
精通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...
Struts2是一个强大的Java web应用程序框架,它极大地简化了MVC(模型-视图-控制器)架构的实现。Struts2的核心就是它的标签库,它提供了丰富的标签来帮助开发者更高效地构建用户界面。以下是对Struts2标签的史上最...
* 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 ...
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...