GithubHelp home page GithubHelp logo

how to properly install on server about botany HOT 10 OPEN

jifunks avatar jifunks commented on July 29, 2024 1
how to properly install on server

from botany.

Comments (10)

lee2sman avatar lee2sman commented on July 29, 2024 1

Ok, yes confirming. I checked on ctrl-c.club to see if we have botany and we do and ran it and planted a seed! Output of ls -l ~/.botany for me is

-rw-rw-r-- 1 me me
when i run ls -l on another user's folder i get the exact same output.

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

Did you ever manage to figure this out? All I get when running this on my server is "Can't find direction to username" when I try to look at other gardens.

from botany.

lee2sman avatar lee2sman commented on July 29, 2024

I did, but I have since closed that server as it was for a temporary group. I stupidly forgot to document my exact process, so I'm working from memory, but here is best of my knowledge:

  1. create a botany user. maybe ~botanist
  2. git clone this repo
  3. make a shortcut that everyone on the server can run, such as creating a script file named botany in the /usr/bin/ path
  4. The contents of this script is a single line that runs the botany.py script in the ~botany user's botany directory. So for example my script was /home/botanist/botany/botany.py
  5. Make sure you've set permissions on botany.py so everyone can run it.

from botany.

lee2sman avatar lee2sman commented on July 29, 2024

There's also a 6 year old unmerged PR with an install script worth reviewing: #23
As I don't have an active server I'm playing with now I can't test.

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

I already did essentially this but using an alias instead.
The 'garden' section shows all the users, but it still cannot find them for visiting and watering.

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

It seems setting permissions on the SQL database is the only part of that script I haven't done in some way or another.
I'll set those permissions up and hopefully that changes something 🤷

from botany.

lee2sman avatar lee2sman commented on July 29, 2024

Ok, report back :)

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

No luck.
I did break permissions and make it so no one can use botany in the meantime, so adjusting permissions on the SQL folder seems a pointless addition to the script when it was already part of the actual program to set the permissions to 777.

There's absolutely no information anywhere explaining how or why a user can access another users garden.
The initial script just vaguely comments the part that 'handles' it, assuming some function to exist that I cannot find.

Either the code is broken and missing something or my system has an edgecase configuration preventing this from working properly.

Every user on the system can run botany. We all show up in the garden.
We just can't visit anyone. Everything else works as intended.

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

This is really stupid but I almost think I have to give other users access to oneanothers .botany folder within their ~/ ???
What an insane proposition if so, that's a lot of manual work.

from botany.

Az-Neter avatar Az-Neter commented on July 29, 2024

Oof. So I have to manually set everyone on my server to have rw access to every other users files...

I think I'd rather just completely remove this botnet from my server then 😂

from botany.

Related Issues (17)

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.