Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubernetes_on-prim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Toth
kubernetes_on-prim
Commits
7d8e450e
Commit
7d8e450e
authored
2 years ago
by
Peter Toth
Browse files
Options
Downloads
Patches
Plain Diff
shell script to set permission for ansible user
parent
60e6d396
Branches
inital
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kube8s-containerd/setpermission-sysopans.sh
+7
-0
7 additions, 0 deletions
kube8s-containerd/setpermission-sysopans.sh
with
7 additions
and
0 deletions
kube8s-containerd/setpermission-sysopans.sh
0 → 100644
+
7
−
0
View file @
7d8e450e
chown
-R
sysopans:sysopans /home/sysopans/.ssh
chmod
-R
700 /home/sysopans/.ssh
chmod
600 /home/sysopans/.ssh/authorized_keys
usermod
-a
-G
sudo
sysopans
echo
"sysopans ALL=(ALL) NOPASSWD:ALL"
>>
/etc/sudoers.d/sysopans
chmod
440 /etc/sudoers.d/sysopans
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