Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
OrchestrationAPI
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marius Raes
OrchestrationAPI
Commits
7c075db7
Commit
7c075db7
authored
3 years ago
by
Marius Raes
Browse files
Options
Downloads
Patches
Plain Diff
ownership shared
parent
b6d5fd2a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/orchestrationLogic/HEAT/fileserver.sh
+6
-2
6 additions, 2 deletions
source/orchestrationLogic/HEAT/fileserver.sh
with
6 additions
and
2 deletions
source/orchestrationLogic/HEAT/fileserver.sh
+
6
−
2
View file @
7c075db7
...
@@ -19,9 +19,8 @@ mkdir /opt/data/shared
...
@@ -19,9 +19,8 @@ mkdir /opt/data/shared
# this directory should be owned by root for security reasons
# this directory should be owned by root for security reasons
# http://lists.mindrot.org/pipermail/openssh-unix-dev/2009-May/027651.html
# http://lists.mindrot.org/pipermail/openssh-unix-dev/2009-May/027651.html
chown
root:root /opt/data
chown
root:root /opt/data
chmod
u
=
rwx,g
=
rx,o
=
rwx
/opt/data
chmod
755
/opt/data
sudo
service smbd restart
# Everything below is based on the great top answer for this stack exchange question
# Everything below is based on the great top answer for this stack exchange question
# https://unix.stackexchange.com/questions/503312/is-it-possible-to-grant-users-sftp-access-without-shell-access-if-yes-how-is-i
# https://unix.stackexchange.com/questions/503312/is-it-possible-to-grant-users-sftp-access-without-shell-access-if-yes-how-is-i
...
@@ -30,6 +29,11 @@ sudo service smbd restart
...
@@ -30,6 +29,11 @@ sudo service smbd restart
addgroup
--system
allowssh
addgroup
--system
allowssh
addgroup
--system
sftponly
addgroup
--system
sftponly
chown
<owern>:allowssh /opt/data/shared
chmod
775 /opt/data
sudo
service smbd restart
# creates a user with no no password
# creates a user with no no password
# /sbin/nologin is not needed but is done just to be safe
# /sbin/nologin is not needed but is done just to be safe
adduser
--disabled-password
--gecos
""
--home
/home/project_owner <owner>
adduser
--disabled-password
--gecos
""
--home
/home/project_owner <owner>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment