Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

uuid is not multi-user aware #1

Closed
ntuckerxx opened this issue May 4, 2009 · 2 comments
Closed

uuid is not multi-user aware #1

ntuckerxx opened this issue May 4, 2009 · 2 comments

Comments

@ntuckerxx
Copy link

Using /var/tmp/ruby-uuid is unwise on a multi-user system. If /var/tmp is writable but /var/tmp/ruby-uuid is not (due to it being owned by another user who happens to have generated a UUID), UUID.new fails with an EACCESS error on /var/tmp/ruby-uuid.

@davidlee
Copy link

it'd be fairly trivial to fix this by appending the userid to the filename if the intended filename is not writable ...

@drbrain
Copy link
Collaborator

drbrain commented Oct 2, 2009

According to the UUID spec, all users on the same system need to use a single state file to avoid collisions. The default mode for the state file is 0644, but this can be set via UUID::state_file.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants