Closed gcmoreira closed 10 months ago
When navigating the /mnt directory, it crashes with a permission denied error. However, that directory is accessible to everyone in the system.
/mnt
permission denied
mnt/ ... goroutine 1 [running]: runtime/debug.Stack() /snap/go/10029/src/runtime/debug/stack.go:24 +0x65 runtime/debug.PrintStack() /snap/go/10029/src/runtime/debug/stack.go:16 +0x19 github.com/charmbracelet/bubbletea.(*Program).Run.func1() /root/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:440 +0x95 panic({0x520520, 0xc0000ab5c0}) /snap/go/10029/src/runtime/panic.go:844 +0x258 main.(*model).list(0xc00015c000) /root/parts/walk/build/main.go:593 +0x2d6 main.(*model).Update(0xc00015c000, {0x52bd40?, 0xc0001954d0?}) /root/parts/walk/build/main.go:235 +0x1d47 github.com/charmbracelet/bubbletea.(*Program).eventLoop(0xc000168000, {0x56df78?, 0xc00015c000?}, 0x7f8f0704bc00?) /root/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:373 +0x63d github.com/charmbracelet/bubbletea.(*Program).Run(0xc000168000) /root/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.24.2/tea.go:503 +0x83e main.main() /root/parts/walk/build/main.go:104 +0x2bf bash: cd: $'Caught panic:\n\nopen /mnt: permission denied\n\nRestoring terminal...': No such file or directory
/mnt has read|execute permissions in its others flags and I can definitely cd to that directory with my user
read|execute
others
cd
$ ls -ld /mnt drwxr-xr-x 6 root root 4096 Dec 9 2022 /mnt
When navigating the
/mnt
directory, it crashes with apermission denied
error. However, that directory is accessible to everyone in the system./mnt
hasread|execute
permissions in itsothers
flags and I can definitelycd
to that directory with my user