A flag icon shows that page is written in:
WebDAV でファイルを作成すると, www-data ユーザで出来てしまう. 他ユーザにアクセスされると破綻するので, telnet/ssh は禁止しなければならない.
ここで UNIX ユーザについての話を.
sticky bit: drwxr-xr-t foo
$ chmod a+t foo
This will give `a' (a: all users or `ugo') the permission to create a directory in the same way as this directory is created.
$ mkdir foo/bar $ ls -l
You can set a sticky bit for a directory only, and a sticky bit does not propagate to the child of the directory. And in the directory with the bit set, any users can write to files and directories, but they can only be deleted by the owner.
setuid and setgid bits: rwsrwsr-x foo rwxrwsr-x foo
While suid can only be set for executable files, sgid can be set for executive files or directories that you can enter.
sgidはディレクトリにも設定することができます。sgidが設定されたディレクトリ直下で作成されたファイルは、その所有グループがディレクトリの所有グループになります。
sgid が便利なのはあるグループで共同作業したい場合などです。共同作業したいメンバーが所属するグループが所有グループのディレクトリを作成してsgidビットを設定すると、そこで作成したファイルの所有グループは誰が作成したものでもディレクトリの所有グループになり、グループのメンバーであれば編集することが可能になります。通常はパーミッションや所有グループの変更をファイル毎にしなければならないのですが、その手間を省くことができます。
共同作業は chmod g+s .
In the httpd configuration file, ServerName or ServerAlias directive can be the common name of the domain such as `foodomain.sh'. Be careful it has to be enabled in the zone files in DNS configuration to make the common domain name seen like a server.
ServerName = foodomain.sh ServerAlias = bar.foodomain.sh www.foodomain.sh
The zone file is usually located in:
IN A 192.168.252.252 ; Blank host name is given. bar IN A 192.168.252.252 www IN CNAME bar.foodomain.sh.
This is significant above.
I'm not sure which way to go because it's like a puzzle. I need help with this section.
It didn't write to a file when I tried access to webdav through Explorer : unresolved
It doesn't work with SSL (webdavs) turned on : unresolved
You can install Cadaver to use WebDAV from command line.
It will be stable at all times and come into the server in a usual way:
./configure --prefix=/home/username make make install
However, you will need to set the proxy in your configuration file in your home, in some weird situation.
$ cat > ~/.cadaverrc set proxy web-proxy.jpn.agilent.com set proxy-port 8080
davfs needs root to modify /etc/fstab but it can be useful to mount a remote directory whenever you want to.
Eldav
with Emacs:
Put `eldav.el' and 'vc-eldav.el' in `emacs/site-lisp/' and edit `~/.emacs' as shown below.
(require 'eldav) (setq eldav-proxy "http://web-proxy.jpn.agilent.com:8080") (enable-eldav)
Note the eldav-proxy variable requires `http://' prefix.
It also provides a command line interface to RFC 2518 (WebDAV) server, but when I just assign http_proxy variable with a value to pass the data through the proxy, it throws off this message:
Error: GET failed, `System Error'