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

Work through sudo issue #5

Open
McUsr opened this issue Feb 5, 2023 · 0 comments
Open

Work through sudo issue #5

McUsr opened this issue Feb 5, 2023 · 0 comments
Assignees

Comments

@McUsr
Copy link
Owner

McUsr commented Feb 5, 2023

A bypass of password requiring sudo is tested, and done, from a service

I just wanted to add here, that though for now, the tar commands require sudo for running properly, and given that the scripts are run from the command line, the issue with being prompted with a password when you run it, is bearable.

Not so much for services, so, since I need root rights to execute tar, I'll probably give instructions as to how to set the setuid bit to root for the scripts in question, and configure the services to run with elevated rights, as a way to bypass, if you really really want to keep your sudo password.

For me, I see ChromeOs, as a rather large IP firewall, as my container is very safe from drive by attacks, and such, and I haven't set it up as an SSH server, with port forwarding, so I think having someone executing code, or even execute code with raised privileges to be less of an issue.

Now this doesn't cover me from downloading stupid, or malicious stuff or anything, but I don't see having the setuid bit on scripts that backs up to add to the problem, with the bit set, goes write protection, so, if someone wants to do a backup with elevated rights, from a malicious piece of code, then be my guest, this scheme, if I can make it work, will make the software somewhat safer, as it then can execute flawlessly, without requiring a passwordless sudo.

Dokumentere bruk av sudo, og hva maa gjoere hvis ikke sudo passord fri, og hva med services?

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

No branches or pull requests

1 participant