Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
centos7
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bruker
centos7
Commits
d7f02115
Commit
d7f02115
authored
8 years ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
tru: useradd + keys
parent
de5b0888
Branches
Branches containing commit
Tags
3.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ks/c7-add-tru.sh
+16
-0
16 additions, 0 deletions
ks/c7-add-tru.sh
ks/tru/c7-kickstart-minimal.tgz
+0
-0
0 additions, 0 deletions
ks/tru/c7-kickstart-minimal.tgz
with
16 additions
and
0 deletions
ks/c7-add-tru.sh
0 → 100644
+
16
−
0
View file @
d7f02115
#!/bin/sh
# curl https://gitlab.pasteur.fr/bruker/centos7/raw/master/ks/c7-add-tru.sh | sh
PATH
=
/sbin:/bin:/usr/sbin:/usr/bin
export
PATH
/sbin/useradd
-u
2765
-g
users
-G
wheel
-m
tru
(
cd
~tru
&&
/bin/curl https://gitlab.pasteur.fr/bruker/centos7/raw/master/ks/tru/c7-kickstart-minimal.tgz|
tar
xzvf -
)
/bin/chown
-R
tru:users ~tru
/bin/chmod 700 ~tru
/sbin/restorecon
-Rv
~tru
# sudoers
echo
'tru ALL = NOPASSWD: ALL'
>>
/etc/sudoers
echo
coucou | /usr/bin/passwd
--stdin
tru
# fix selinux permissions
/sbin/restorecon
-rv
/home/tru /etc/sudoers
This diff is collapsed.
Click to expand it.
ks/tru/c7-kickstart-minimal.tgz
0 → 100644
+
0
−
0
View file @
d7f02115
File added
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