limited users do not get full view
- Dominant language
- Rust
- Stars
- 2.9k
- Forks
- 59
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
I was wondering if there is anything I can do for limited users that cannot see the full configuration. Using lfs 1.3.0
As limited user:
```
┌──┬─────┬──────────────┬────┬────┬─────┬─────────┬─────┬─────┬───────────────────────┐
│id│ dev │ filesystem │disk│type│used │ use% │ free│size │mount point │
├──┼─────┼──────────────┼────┼────┼─────┼─────────┼─────┼─────┼───────────────────────┤
│38│259:4│/dev/nvme0n1p1│SSD │xfs │7.5Gi│54% ██▊ │6.5Gi│14Gi │/ │
│43│259:4│/dev/nvme0n1p1│SSD │xfs │7.5Gi│54% ██▊ │6.5Gi│14Gi │/var/tmp │
│44│259:1│/dev/nvme2n1 │SSD │xfs │1.8Gi│36% █▊ │3.2Gi│5.0Gi│/var/lib/docker │
│49│259:0│/dev/nvme1n1 │SSD │xfs │ │ │ │ │/var/lib/docker/volumes│
└──┴─────┴──────────────┴────┴────┴─────┴─────────┴─────┴─────┴───────────────────────┘
```
As root:
```
┌──┬─────┬──────────────┬────┬────┬─────┬─────────┬─────┬──────┬───────────────────────┐
│id│ dev │ filesystem │disk│type│used │ use% │ free│ size │mount point │
├──┼─────┼──────────────┼────┼────┼─────┼─────────┼─────┼──────┼───────────────────────┤
│38│259:4│/dev/nvme0n1p1│SSD │xfs │7.5Gi│54% ██▊ │6.5Gi│14Gi │/ │
│43│259:4│/dev/nvme0n1p1│SSD │xfs │7.5Gi│54% ██▊ │6.5Gi│14Gi │/var/tmp │
│49│259:0│/dev/nvme1n1 │SSD │xfs │218Mi│ 2% ▏ │9.8Gi│10.0Gi│/var/lib/docker/volumes│
│44│259:1│/dev/nvme2n1 │SSD │xfs │1.8Gi│36% █▊ │3.2Gi│5.0Gi │/var/lib/docker │
└──┴─────┴──────────────┴────┴────┴─────┴─────────┴─────┴──────┴───────────────────────┘
```
In this example all the contents inside `/var/lib/docker/volumes` is owned by root. I'm not sure if that is the reason `lfs` can't calculate the stats.
`drwx-----x 5 root root 97 Nov 16 11:35 volumes`
Contributor guide
Research direction
Start by reproducing the issue with lfs 1.3.0 as a limited user and as root, focusing on /var/lib/docker/volumes and comparing the displayed filesystem statistics. Investigate why the limited-user view omits the usage values, then verify that the affected filesystem shows the same complete statistics when permissions allow it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100