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

Error on Linux: Could not cleanup temporary directory. Exiting. #2

Open
cmonty14 opened this issue Feb 18, 2020 · 3 comments
Open

Error on Linux: Could not cleanup temporary directory. Exiting. #2

cmonty14 opened this issue Feb 18, 2020 · 3 comments

Comments

@cmonty14
Copy link

Hello Jan,

I want to run script yubiset.sh on Linux (Arch Linux) as normal user w/o root.

[thomas@pc7-cubi3 bash]$ sh yubiset.sh 
ERROR: Could not cleanup temporary directory. Exiting.

I assume (and hope) that the script can run w/o root permission.

How can I proceed from here?
Please advise.

Regards
Thomas

@JanMosigItemis
Copy link
Owner

Hi Thomas,

thanks for the report. The script is designed to run w/o root permissions, i. e. it does only manipulate files in your home dir (~). I guess this error has nothing to do with permissions.

I'll look into this problem during the week. Keep an eye out on updates.

@JanMosigItemis
Copy link
Owner

I guess the relevant call is this one:

rm -rf "${yubiset_temp_dir}" > /dev/null 2>&1 || { cleanup; end_with_error "Could not cleanup temporary directory.";}

I did set up a docker container with archlinux base image and ran yubiset.sh as a user and it did work.

Two things come to mind:

  • Permission issue, i. e. is your user permitted to create dirs in /tmp ?
  • Shell issue. Do you use bash as sh?

You may try:
Change the line to rm -rf "${yubiset_temp_dir}" || { cleanup; end_with_error "Could not cleanup temporary directory.";}. When running yubiset, an error message may appear. Please post it here.

@cmonty14
Copy link
Author

I guess the relevant call is this one:

rm -rf "${yubiset_temp_dir}" > /dev/null 2>&1 || { cleanup; end_with_error "Could not cleanup temporary directory.";}

I did set up a docker container with archlinux base image and ran yubiset.sh as a user and it did work.

Two things come to mind:

  • Permission issue, i. e. is your user permitted to create dirs in /tmp ?
  • Shell issue. Do you use bash as sh?

You may try:
Change the line to rm -rf "${yubiset_temp_dir}" || { cleanup; end_with_error "Could not cleanup temporary directory.";}. When running yubiset, an error message may appear. Please post it here.

Hi Jan,
I'm using bash.

I will implement the correction and communicate an update here.

Regards
Thomas

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

2 participants