LoginSignup
2
1

More than 5 years have passed since last update.

CentOSの日付設定でつまづいた話

Posted at

普通にNTPサーバーにアクセスして合わせたいのですが、弊社都合で他社のNTPサーバーにアクセスできないので手動で設定する事に。
VPNサーバー周りのせいです。

まぁ手動であわせればいいやということで下記コマンドを実行

$ date --set='2018/11/05 11:35:00'
date: cannot set date: Operation not permitted        
Mon Nov  5 11:35:00 UTC 2018                          

なんじゃこりゃ。sudo つけてもダメでした。
Dockerの権限エラーらしい。参考

imageから作り直しが必要らしい。辛い。他の方法を考えていたら、CentOS7には chorony という便利なコマンドがあるらしい 参考

こちらを使って解決。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1