Git Product home page Git Product logo

Comments (3)

aryanet avatar aryanet commented on June 9, 2024

I don't see this being a bug with Priam. This is expected behavior in Linux environment. Because you ran tomcat as root, Priam's threads run with root privileges and the default umask on Linux systems is 022, so if you restore files, perhaps they will have root as the owner. IMHO running Tomcat or Cassandra as root is not recommended, I recommend configuring tomcat to run as cassandra user or giving it sudo rights to execute cassandra start/stop script.

from priam.

pcn avatar pcn commented on June 9, 2024

I agree this is expected behavior of the open system call. However if you are running as root, there should be a property indicating what the proper owner of the files should be.

IMHO running Tomcat or Cassandra as root is not recommended

Again, this is usually correct, but that's what the priam docs say. From https://github.com/Netflix/Priam/wiki/Setup:

Web Container setup

Since Priam changes the configuration files for Cassandra and starts/stops the services, the web container it's running in must either run as root, or it must have sufficient passwordless sudo rights to modify the cassandra.yaml file and execute the /etc/init.d/cassandra script.

There's a further lack of clarity here: note that sudo is not mentioned as the way of granting these rights - I would assume that the above should be read as granting execute rights on the script, and not granting sudo rights. What I recall from the code is that Priam actually does use sudo.

In any case, the overall point here is that if cassandra+tomcat can end up getting run as root, and if it is root, it should have a property, something like priam.cassandra_user which will default to "cassandra" that it will chown all files to.

from priam.

jasobrown avatar jasobrown commented on June 9, 2024

I've removed the confusing (if not slightly psychotic) advice to run as root, just need privs to execute rights on the script, as per pcn's recommendation. Thanks.

from priam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.