Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating the log file directory #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tdelov
Copy link

@tdelov tdelov commented Jul 25, 2020

sudosh fails if the directory is not present.

On Ubuntu 16.04, sudosh failed to run because there is no sudosh log directory.
This dir will be created on install.
@kovacs-andras
Copy link

I can confirm that. And there are many other ways how it can fail like:

  • permission changes on any parent or the sudosh directory
  • when the /var/log volume is full (no free space or inode) and sudosh2 can't create new log files
  • etc.

This is an easy tool. It won't give you an extra layer of security but you will have a directory what anyone can fill up with anything. I have a single line in my bashrc which removes the sudosh logs instantly when I'm logging in to a server.

I recommend to check this project instead: https://github.com/Scribery/tlog
Or log sessions with sudo (sudo can log remotely too now)

If you only need to log your sessions than this video can be interesting for you: https://youtu.be/DYHadkG9iFg

@Chewbakka-Wakka
Copy link

when the /var/log volume is full (no free space or inode) and sudosh2 can't create new log files - this can happen easily also given how much data can be logged, grows massively depending on user counts and length of sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants