Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Quang tru HUYNH
ISB2017
Commits
cb01b065
Commit
cb01b065
authored
Jul 22, 2017
by
Quang tru HUYNH
Browse files
no passwd sudo
parent
92d549e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
centos-autorized_keys.sh
View file @
cb01b065
...
...
@@ -5,5 +5,5 @@ chmod 0700 /home/centos/.ssh
chmod
0600 /home/centos/.ssh/authorized_keys
chown
-R
centos:centos /home/centos/.ssh
restorecon
-rv
/home/centos
echo
'centos ALL=(ALL) ALL'
>>
/etc/sudoers
echo
'centos ALL=(ALL)
NOPASSWD:
ALL'
>>
/etc/sudoers
restorecon
-rv
/etc/sudoers
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment