Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

mintreport permission error on /tmp/mintreport/inxi

Đang mở
#139 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, python
Lĩnh vực
tooling

Hướng nghiên cứu

The failure is a fixed shared path, /tmp/mintreport/inxi, that stays owned by the first user who ran the tool. Search the Python sources for the /tmp/mintreport string and for where the inxi output is written, and attach mintreport.log to see which call fails. Done means two different users can each run mintreport on the same machine without a permission error, and the attached inxi.txt output still gets generated.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have a Mint 22.3 computer with 4 users, set for my family memebers - including me.

Today, I logged in my mom's account (regular user, so not an admin account -if that matters), and ran mintreport from there. All went fine until I relogged to my own account.

Problem: I logged back to my own user account, and when I tried to run mintreport, the GUI launched all fine, but I got a error notification for permission error on /tmp/mintreport/inxi

Cause: So I inspected that file, and to my surprise the parent folder recursively was set as owner for my mom's account. That's weird, because this way the app assumes (?) that the first and only user whoever started this program, should be the owner and period.

Solution: The program should be developed in such fashion that all users can use mintreport regardless who started it first, thus preventing permission denials, and confusing error notifications.

mintreport version: 1.6.1

LANG=C apt policy mintreport 
mintreport:
  Installed: 1.6.1
  Candidate: 1.6.1
  Version table:
 *** 1.6.1 500
        500 https://mirror.alwyzon.net/linuxmint zena/main amd64 Packages
        500 https://mirror.alwyzon.net/linuxmint zena/main i386 Packages
        100 /var/lib/dpkg/status

inxi.txt
mintreport.log
stat.txt
myid.txt

Until this gets fixed, a temporary workaround is to set the folder back to my own admin account via
sudo chown -R [username]: /tmp/mintreport

Ngôn ngữ chính
Python
Star
30
Fork
26
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/mintreport

Tất cả issue của linuxmint/mintreport

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.