Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
698db72e
Commit
698db72e
authored
May 04, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script to change access to databases
parent
3935383a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/exp/com/src/os_linux/wb_dbchmod.sh
src/exp/com/src/os_linux/wb_dbchmod.sh
+18
-0
No files found.
src/exp/com/src/os_linux/wb_dbchmod.sh
0 → 100755
View file @
698db72e
#!/bin/bash
#
# Change permission of databasefiles so it
# corresponds with umask
# (BerkeleyDb doesn't seems to do this...
#
u
=
`
eval umask
`
b1
=
$((
u%8
))
b2
=
$((
(
u-b1
)%
64
/
8
))
b3
=
$((
(
u-b1-b2
)%
256
/
64
))
bd1
=
$((
7
-
b1
))
bd2
=
$((
7
-
b2
))
bd3
=
$((
7
-
b3
))
b1
=
$((
6
-
b1
))
b2
=
$((
6
-
b2
))
b3
=
$((
6
-
b3
))
chmod
$bd3$bd2$bd1
$1
chmod
$b3$b2$b1
$1
/
*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment