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

Using --gid flag throws "operation not permitted" #60

Open
jamsinclair opened this issue Oct 28, 2021 · 0 comments
Open

Using --gid flag throws "operation not permitted" #60

jamsinclair opened this issue Oct 28, 2021 · 0 comments

Comments

@jamsinclair
Copy link

jamsinclair commented Oct 28, 2021

I've compiled my own catfs binary from the latest master branch

When mounting with the following:

catfs --gid 1001 --uid 1000 /test-source /test-cache /test

I get the following error:

ERROR - Cannot mount: Operation not permitted (os error 1)    0: catfs::catfs::error::RError<E>::from
   1: catfs::main
   2: std::sys_common::backtrace::__rust_begin_short_backtrace
   3: std::rt::lang_start::{{closure}}
   4: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/ops/function.rs:259:13
      std::panicking::try::do_call
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:403:40
      std::panicking::try
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:367:19
      std::panic::catch_unwind
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panic.rs:129:14
      std::rt::lang_start_internal::{{closure}}
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/rt.rs:45:48
      std::panicking::try::do_call
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:403:40
      std::panicking::try
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:367:19
      std::panic::catch_unwind
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panic.rs:129:14
      std::rt::lang_start_internal
             at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/rt.rs:45:20
   5: main
   6: __libc_start_main
   7: _start

I'm either likely using this software wrong or have some permissioning issues 😅. Let me know if there's something I need to fix on my end or if you need me to provide additional information 🤓

Edit: I am trying to allow other users, or if possible, users of a certain group also access the cached volume.

Thanks for both goofys and catfs these are really cool tools and appreciate your work on them 😊

@jamsinclair jamsinclair changed the title Using --gid flag causes "operation not permitted" Using --gid flag throws "operation not permitted" Oct 28, 2021
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