Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
86f20252
Commit
86f20252
authored
Sep 05, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user b66 removed by script
parent
c48794a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/tools/pkg/deb/pwrrt/prerm
src/tools/pkg/deb/pwrrt/prerm
+17
-0
No files found.
src/tools/pkg/deb/pwrrt/prerm
View file @
86f20252
...
@@ -26,6 +26,11 @@ if [ "$remove_all" = "y" ]; then
...
@@ -26,6 +26,11 @@ if [ "$remove_all" = "y" ]; then
user_found
=
1
user_found
=
1
userstr
=
$userstr
" b55"
userstr
=
$userstr
" b55"
fi
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
b66
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
userstr
=
$userstr
" b66"
fi
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
pwrp
\b
"
`
checkuser
=
`
eval echo
$currentusers
|
grep
"
\b
pwrp
\b
"
`
if
[
"
$checkuser
"
!=
""
]
;
then
if
[
"
$checkuser
"
!=
""
]
;
then
user_found
=
1
user_found
=
1
...
@@ -52,6 +57,14 @@ if [ "$remove_all" = "y" ]; then
...
@@ -52,6 +57,14 @@ if [ "$remove_all" = "y" ]; then
rm
-r
/home/b55
rm
-r
/home/b55
fi
fi
echo
"-- Remove user b66"
if
grep
-q
"
\b
b66:"
/etc/passwd
;
then
userdel b66
fi
if
[
-e
/home/b66
]
;
then
rm
-r
/home/b66
fi
echo
"-- Remove user pwrp"
echo
"-- Remove user pwrp"
if
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
if
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
userdel pwrp
userdel pwrp
...
@@ -72,6 +85,10 @@ if [ "$remove_all" = "y" ]; then
...
@@ -72,6 +85,10 @@ if [ "$remove_all" = "y" ]; then
groupdel b55
groupdel b55
fi
fi
if
grep
-q
"
\b
b66:"
/etc/group
;
then
groupdel b66
fi
if
grep
-q
"
\b
pwrp:"
/etc/group
;
then
if
grep
-q
"
\b
pwrp:"
/etc/group
;
then
groupdel pwrp
groupdel pwrp
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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