[PR #163] [MERGED] checks if user is running as root, or else aborts #338

Closed
opened 2026-02-26 04:31:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LionSec/katoolin/pull/163
Author: @CCLDArjun
Created: 11/16/2018
Status: Merged
Merged: 4/26/2019
Merged by: @LionSec

Base: masterHead: master


📝 Commits (1)

  • bf10511 checks if user is running as root, or else aborts

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 katoolin.py (+4 -0)

📄 Description

I think that this would be very helpful because bassically anything that you need to do in this tool requires sudo privledges, rejecting them at the start would be a better error message than

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/LionSec/katoolin/pull/163 **Author:** [@CCLDArjun](https://github.com/CCLDArjun) **Created:** 11/16/2018 **Status:** ✅ Merged **Merged:** 4/26/2019 **Merged by:** [@LionSec](https://github.com/LionSec) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`bf10511`](https://github.com/LionSec/katoolin/commit/bf10511177c73bc1dc1b0d4cb68259db54412fd2) checks if user is running as root, or else aborts ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `katoolin.py` (+4 -0) </details> ### 📄 Description I think that this would be very helpful because bassically anything that you need to do in this tool requires sudo privledges, rejecting them at the start would be a better error message than ` E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)` `E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? ` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 04:31:07 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/katoolin-LionSec#338
No description provided.