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

Multiple users cannot open processing due to folder in /tmp/ #666

Closed
processing-bot opened this issue Feb 10, 2023 · 9 comments
Closed

Multiple users cannot open processing due to folder in /tmp/ #666

processing-bot opened this issue Feb 10, 2023 · 9 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: jonalf

Description

I maintain a classroom of ubuntu 20.0.4 computers, multiple users, with unique accounts, per day need to be able to launch and run processing. Students started to complain that they were getting a strange error when trying to launch processing. Processing is installed locally in
/usr/local/bin/

After investigating, I discovered that processing creates a directory in:
/tmp/processing
This directory is owned by the user that opened processing, but remains after processing is closed and the user has logged out. I believe that the existence of this directory is keeping other users from launching processing. Rebooting the computer (or just removing the directory in /tmp does allow a new user to start processing.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

This should be fixed since 4.0.2: #549

Are you using the latest release?

@processing-bot
Copy link
Collaborator Author

Created by: jonalf

I'm using processing 4.1.2 revision 1290.

I was wondering why we hadn't had this problem earlier in the year. After your comment about the version I checked back on it and discovered that a colleague had upgraded to the newer version last week. The upgrade coincides with the problem occurring.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Got it; will check into it—I suspect an extra subfolder may be created that's causing the issue.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Can you give it a try with this: https://download.processing.org/processing-230214-linux-x64.tgz

First delete the /tmp/processing folder, but when you run this version, it should hopefully set permissions so that others can share the directory.

@processing-bot
Copy link
Collaborator Author

Created by: jonalf

First, thanks for the prompt work on this.

The new processing binary gives the folder in tmp 775 permissions. So users in the same group can run processing, but not any user. See below:

$ ls -l /tmp | grep proce
drwxrwxr-x  3 jadw         jadw      4096 Feb 16 11:39 processing

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Nuts; it's supposed to be doing 777 (via b014874 and 9fed8a2) but perhaps failing silently.

I'll have to do more testing…

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Ok, here's another to try: https://download.processing.org/processing-230216-linux-x64.tgz

If that doesn't work, is there anything set with the students' user accounts (i.e. umask related) that prevents them from setting a folder to be readable by all? On a Linux testing machine here, even the previous version was properly showing rwxrwxrwx for the folder.

@processing-bot
Copy link
Collaborator Author

Created by: jonalf

It works! After looking back at the problem it did seem as if it were umask related. In any event, permissions look good now.

$ ls -l /tmp/ | grep proce
drwxrwxrwx  3 jadw           jadw      4096 Feb 16 20:48 processing

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Awesome, thanks for letting me know. I'll try to get this posted as 4.2 (which also includes a bunch of updates for Python Mode) in the next day or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant