chmod /etc/sudoers and locked myself out of 6.0

https://forum.synology.com/enu/viewtopic.php?t=116116

Found a simple and easy solution
do this:

  • log in to DSM Web interface as admin
  • Control Panel -> "Task scheduler"
  • Add a "user script":
    Image
  • make it disabled:
    Image
  • insert command which will reset the correct modes (chmod ug=r,o= /etc/sudoers)
    Image
  • run it:
    Image

Should be fixed now

    A+
发布日期:2018年11月05日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: