Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NGS-intro-course
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
NGS-intro-course
Commits
721e23db
Commit
721e23db
authored
9 years ago
by
Laros
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of 10.14.12.122:humgen/ngs-intro-course
parents
73000bd1
3cf81c41
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/deny.bashrc
+5
-0
5 additions, 0 deletions
server/deny.bashrc
server/mk_acct.sh
+2
-1
2 additions, 1 deletion
server/mk_acct.sh
with
7 additions
and
1 deletion
server/deny.bashrc
0 → 100755
+
5
−
0
View file @
721e23db
if [ $(who | grep -cw ^$LOGNAME) -gt 1 ]; then
echo This account is already in use, exiting.
exit
fi
This diff is collapsed.
Click to expand it.
server/mk_acct.sh
+
2
−
1
View file @
721e23db
...
...
@@ -5,7 +5,7 @@
#
username
=
"course"
number_of_accounts
=
3
0
number_of_accounts
=
5
0
echo
-n
"Please provide a password: "
stty
-echo
...
...
@@ -34,5 +34,6 @@ $password
EOF
cp
-a
../exercise /home/
$account
chown
-R
$account
:
$account
/home/
$account
/exercise
cat
deny.bashrc
>>
/home/
$account
/.bashrc
i
=
$((
i
+
1
))
done
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