Comments (10)
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.
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.
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:
- create a botany user. maybe ~botanist
- git clone this repo
- make a shortcut that everyone on the server can run, such as creating a script file named
botany
in the /usr/bin/ path - 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
- Make sure you've set permissions on botany.py so everyone can run it.
from botany.
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.
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.
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.
Ok, report back :)
from botany.
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.
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.
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)
- Watering certain plants breaks plant view HOT 1
- No LICENSE HOT 1
- Use python3
- asciinema on README has been archived HOT 1
- plants will die when community waters are cleared at the end of the week HOT 1
- When resizing the window while visiting someone elses plant the visited plant stays visible. HOT 2
- Malicious visitors could kill a well-watered plant
- idea HOT 2
- Use of Python 2 HOT 3
- Web-integration
- Botany strips "-" from usernames
- duplicate users in garden HOT 2
- Growth rate with too many decimal places HOT 1
- How to find active botany communities?
- "database is locked" eventually happens HOT 1
- botany crashes if terminal doesn't support colours
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botany.