Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Jupyter Docker Stacks
Commits
d52c7023
Commit
d52c7023
authored
Apr 08, 2019
by
Graham Dumpleton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable su/sudo access unless sudo explicitly enabled for a specific user using GRANT_SUDO.
parent
65761486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
base-notebook/Dockerfile
base-notebook/Dockerfile
+3
-2
No files found.
base-notebook/Dockerfile
View file @
d52c7023
...
@@ -49,8 +49,9 @@ RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashr
...
@@ -49,8 +49,9 @@ RUN sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashr
# Create NB_USER wtih name jovyan user with UID=1000 and in the 'users' group
# Create NB_USER wtih name jovyan user with UID=1000 and in the 'users' group
# and make sure these dirs are writable by the `users` group.
# and make sure these dirs are writable by the `users` group.
RUN
groupadd wheel
-g
11
&&
\
RUN
echo
"auth requisite pam_deny.so"
>>
/etc/pam.d/su
&&
\
echo
"auth required pam_wheel.so use_uid"
>>
/etc/pam.d/su
&&
\
sed
-i
.bak
-e
's/^%admin/#%admin/'
/etc/sudoers
&&
\
sed
-i
.bak
-e
's/^%sudo/#%sudo/'
/etc/sudoers
&&
\
useradd
-m
-s
/bin/bash
-N
-u
$NB_UID
$NB_USER
&&
\
useradd
-m
-s
/bin/bash
-N
-u
$NB_UID
$NB_USER
&&
\
mkdir
-p
$CONDA_DIR
&&
\
mkdir
-p
$CONDA_DIR
&&
\
chown
$NB_USER
:
$NB_GID
$CONDA_DIR
&&
\
chown
$NB_USER
:
$NB_GID
$CONDA_DIR
&&
\
...
...
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