Comments (6)
Okay, I will open a pull request tomorrow.
from zeekctl.
Thank you. Not sure how this hasn't come up, seems SafeConfigParser
has been deprecated since Python 3.2.
I think just using ConfigParser
should be more appropriate. How would you feel about opening a PR?
In [3]: configparser.SafeConfigParser()
<ipython-input-3-980feb9aa499>:1: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
configparser.SafeConfigParser()
Out[3]: <configparser.SafeConfigParser at 0x7fed340b3580>
from zeekctl.
Might be good to understand why zeekctl
didn't show the deprecation warning or why no test caught that.
from zeekctl.
It's pretty funny — the deprecation warning comes from warnings.warn(..., DeprecationWarning)
, which only shows when happening in __main__
or when PYTHONDEVMODE=1
:
$ zeekctl
Hint: Run the zeekctl "deploy" command to get started.
Welcome to ZeekControl 2.5.0-24
Type "help" for help.
[ZeekControl] >
$ PYTHONDEVMODE=1 zeekctl
/home/christian/inst/opt/zeek/lib64/zeek/python/zeekctl/ZeekControl/config.py:389: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in Python 3.12. Use ConfigParser directly instead.
config = configparser.SafeConfigParser()
Hint: Run the zeekctl "deploy" command to get started.
Welcome to ZeekControl 2.5.0-24
Type "help" for help.
[ZeekControl] >
They didn't yell loud enough for us to notice...
from zeekctl.
Okay, another issue, I guess. In the documentation, it is not explicit mentioned in the documentation of the zeekctl whether we should run zeekctl using sudo command.
Without sudo I am able to access the zeekctl but I am still facing an issue with permissions.
`zeekctl
Error: failed to write file: [Errno 13] Permission denied: '/usr/local/zeek/spool/.zeekctl-config.sh.tmp'
Welcome to ZeekControl 2.5.0-39
Type "help" for help.
[ZeekControl] > deploy
Error: failed to read lock file: [Errno 2] No such file or directory: '/usr/local/zeek/spool/lock'
Error: Unable to get lock
[ZeekControl] > exit
`
Hence, the conclusion:
With RawConfigParser only root can access zeekctl.
With ConfigParser both root and normal user are able access zeekctl but the normal user is facing issues with permissions.
from zeekctl.
Okay, another issue, I guess. In the documentation, it is not explicit mentioned in the documentation of the zeekctl whether we should run zeekctl using sudo command.
Without sudo I am able to access the zeekctl but I am still facing an issue with permissions.
`zeekctl Error: failed to write file: [Errno 13] Permission denied: '/usr/local/zeek/spool/.zeekctl-config.sh.tmp'
Welcome to ZeekControl 2.5.0-39
Type "help" for help.
[ZeekControl] > deploy Error: failed to read lock file: [Errno 2] No such file or directory: '/usr/local/zeek/spool/lock' Error: Unable to get lock [ZeekControl] > exit `
Hence, the conclusion:
With RawConfigParser only root can access zeekctl. With ConfigParser both root and normal user are able access zeekctl but the normal user is facing issues with permissions.
Sorry, I overlooked the FAQ section in the documentation.
from zeekctl.
Related Issues (20)
- Make archive-log print an actual usage string and not just "wrong usage"
- zeekctl doesn't work with Python3 due to broken broker bindings HOT 4
- Zeekctl does not find python 3 by default HOT 1
- share/zeekctl/scripts/zeekctl-config.sh link must be relative HOT 2
- zeekctl check fails with built-in plugins
- Remove remaining BroControl code/scripts HOT 1
- fatal error: can't find local.zeek HOT 5
- I have an issues about Zeek Cluster. HOT 1
- How to collection extracted file in manager or logger? HOT 1
- Restarting all nodes upon crash of one HOT 1
- zeekctl: Error: must run zeekctl on same machine as the manager node 127.0.0.1 vs 127.0.1.1 HOT 1
- CI setup
- Add a warning banner about port change (for Zeek 5.0) HOT 1
- Multi-logger configuration causes data-loss on log rotation HOT 1
- rotation.single-logger reports archive-log.running baseline difference
- zeekctl fails with python 3.12 HOT 1
- "current" logs symlink does not account for mulitple loggers
- `post-terminate`'s processing of a node's `spool/zeek/` state discards extracted files HOT 2
- `broctl` symlink still being installed
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 zeekctl.