日記帳
本ページはプロモーションが含まれています
カテゴリー
Links
blog(ブログ)マスター
アンドロイドの巣
ゼロから始めるベランダ菜園
タイトル
ラジコン
2024年4月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

fossil | Error: not authorized to read / write

2016-06-26 17:41
Error: not authorized to read / write

sync push pull

リモートクライアント(コマンド)からのアクセスの場合
  • URLの間違い
    アクセス制限がある場合、ドメイン名の前に、ユーザー名:パスワードが必要
    urlにパスワードをいれるので、セキュリティ上よくないです。
  • サーバーの基本認証のオプションのチェック。
    • --httpauth USER:PASS
      は基本認証のものであって、cookie loginするためのものではない
  • 書き込みアクセス権の問題


HTTP/HTTPS protocol:
http[s]://[userid[:password]@]host[:port][/path]

SSH protocol:
ssh://[userid[:password]@]host[:port]/path/to/repo.fossil[?fossil=path/to/fossil.exe]

Filesystem:
[file://]path/to/repo.fossil

Note: For ssh and filesystem, path must have an extra leading
'/' to use an absolute path.

その他のエラー
  • Error: Database error: UNIQUE constraint failed: private.rid: {INSERT INTO private VALUES(数値)}
    content_new関数で 受け取った値をそのまま渡している
    → ローカルとリモートの番号が被ることを前提にしていない
    不具合がずっと放置されているので、利用している人がいないのか気が付いていないのだろう


.htaccess
AuthUserFile /pathto/.htpasswd
AuthName "Basic Auth"
AuthType Basic
require valid-user

.htpasswd
  • httpからアクセスできない場所に設置することが望ましい
  • htpasswd コマンドが見つからない場合は、apacheのインストール/binフォルダにあります。
パスワードを表示して終了する
htpasswd -nb ユーザー名 "パスワード"

その他のオプション
htpasswd
Usage:
htpasswd [-cimBdpsDv] [-C cost] passwordfile username
htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password

htpasswd -n[imBdps] [-C cost] username
htpasswd -nb[mBdps] [-C cost] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-b Use the password from the command line rather than prompting for it.
-i Read password from stdin without verification (for script usage).
-m Force MD5 encryption of the password (default).
-B Force bcrypt encryption of the password (very secure).
-C Set the computing time used for the bcrypt algorithm
(higher is more secure but slower, default: 5, valid: 4 to 31).
-d Force CRYPT encryption of the password (8 chars max, insecure).
-s Force SHA encryption of the password (insecure).
-p Do not encrypt the password (plaintext, insecure).
-D Delete the specified user.
-v Verify password for the specified user.
On other systems than Windows and NetWare the '-p' flag will probably not work.
The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.

ブログ内 関連記事: fossil Error not


ブログ内 関連記事: fossil Error not

トラックバック
トラックバックはありません。
PR

[PR]