Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. setup start.sh installs /etc/sudoers.d/cloudron with mode 0644 without chmod — visudo -c warns "bad permissions"

setup start.sh installs /etc/sudoers.d/cloudron with mode 0644 without chmod — visudo -c warns "bad permissions"

Scheduled Pinned Locked Moved Solved Support
security
2 Posts 2 Posters 102 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    AndraaX
    wrote last edited by joseph
    #1

    Hi, on Ubuntu 24.04 with box 10.1.x,

    visudo -c reports /etc/sudoers.d/cloudron
    

    : bad permissions, should be mode 0440.

    Cause: setup/start.sh copies the file with plain cp and no chmod, so it lands as 0644. Since start.sh runs at every update, a manual chmod 440 gets reverted each time.

    Not a privilege escalation (sudo only refuses group/world-writable files), but it trips visudo -c, which hardening/security audits run routinely.

    Suggestion: add chmod 0440 right after the cp in setup/start.sh (and mark the source file 0440 in the tarball).

    1 Reply Last reply
    2
    • jamesJ james moved this topic from Community Packages
    • nebulonN
      nebulonN
      nebulon
      Staff
      wrote last edited by
      #2

      Thanks for the report, this is fixed for next release with https://git.cloudron.io/platform/box/-/commit/480a96b6567650cae81c0fe14763ee9730a1e79d

      1 Reply Last reply
      2
      • nebulonN nebulon marked this topic as a question
      • nebulonN nebulon has marked this topic as solved

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search