Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
users-openslx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
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
cdn
users-openslx
Commits
cb2fcefd
Commit
cb2fcefd
authored
9 years ago
by
Thiago Abdo
Browse files
Options
Downloads
Patches
Plain Diff
[add user] fix when checking for root permissions
Signed-off-by:
Thiago Abdo
<
tja14@inf.ufpr.br
>
parent
6a4f384a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdd/adduser.sh
+2
-3
2 additions, 3 deletions
hdd/adduser.sh
with
2 additions
and
3 deletions
hdd/adduser.sh
+
2
−
3
View file @
cb2fcefd
...
...
@@ -13,7 +13,6 @@
# 12 Não consegui criar o diretorio home
# 13 Cant create mail spool
# 14 Cant update SELinux user mapping
# ? sem permissao(non-root user)
# 21 Tentar adicionar usuario no range do servidor sem flag
...
...
@@ -44,9 +43,9 @@ add (){
#This script can only be executed by a root/sudoer user
if
[
(
"
$(
usr/bin/id
-r
-u
0
)
"
!=
"0"
)
]
;
then
if
[
"
$(
/
usr/bin/id
-r
-u
)
"
!=
"0"
]
;
then
echo
$0
": Você não possue as permissoes necessárias para realizar essa operação"
exit
?
exit
1
fi
passwd
=
$1
...
...
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