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

GDK: file/dir creation mask #2416

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Closed

GDK: file/dir creation mask #2416

monetdb-team opened this issue Nov 30, 2020 · 0 comments

Comments

@monetdb-team
Copy link

@monetdb-team monetdb-team commented Nov 30, 2020

Date: 2006-01-16 11:11:43 +0100
From: @MarcinZukowski
To: GDK devs <>
Version: -- development

Last updated: 2019-04-30 12:36:00 +0200

Comment 13459

Date: 2006-01-16 11:11:43 +0100
From: @MarcinZukowski

It would be nice to be able to specify that all
MonetDB-created files and directories have a given
mask, e.g. 664/775.
This is useful e.g. when multiple people from the same
group want to work on the same database with MonetDB.

Comment 13460

Date: 2006-01-16 11:18:21 +0100
From: @grobian

Logged In: YES
user_id=963970

How about setting the umask before starting the Mserver process?

I think allowing this is potentially dangerous, so it should
not be facilitated in any way...

Comment 13461

Date: 2006-01-16 11:22:58 +0100
From: @MarcinZukowski

Logged In: YES
user_id=607094

umask doesn't work.
There are places in GDK when 755 is hardcoded.

Comment 13462

Date: 2006-01-17 14:25:35 +0100
From: @MarcinZukowski

Logged In: YES
user_id=607094

One more comment.
Maybe I do something wrong, but umask also doesn't influence
file creation.

umask 0002
Mserver --dbfarm=$PWD --dbname=tmp
ls -l tmp/bat/BACKUP

I get
-rw-r--r-- 1 marcin ins 54 Jan 17 14:23 BBP.dir

I think possibility to specify umask for files/dir in
MonetDB could also be used to protect one's data, e.g. by
running Mserver --umask=077

Comment 13463

Date: 2006-01-17 14:37:09 +0100
From: @sjoerdmullender

Logged In: YES
user_id=43607

You cannot get more permissions through the use of umask.
Umask only removes permissions.

Comment 13464

Date: 2010-05-04 09:32:09 +0200
From: Pseudo user for Sourceforge import <>

This bug was previously known as tracker item 1407204 at http://sourceforge.net/support/tracker.php?aid=1407204

The original assignee of this bug does not have
an account here. Reassigning to the default assignee
for the component, bugs-common@monetdb.org.
Previous assignee was nobody@users.sourceforge.net.

Comment 26817

Date: 2019-01-21 15:09:43 +0100
From: MonetDB Mercurial Repository <>

Changeset 8b97f691d862 made by Sjoerd Mullender sjoerd@acm.org in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=8b97f691d862

Changeset description:

Trust user's umask setting to protect created files/directories.
Note that monetdbd set umask to 077 (i.e. only access by owner).
This fixes bug #2416.

Comment 26818

Date: 2019-01-21 15:10:38 +0100
From: @sjoerdmullender

monetdbd set umask to 077, but otherwise the user's umask is used to protect files and directories.

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

Successfully merging a pull request may close this issue.

None yet
1 participant