Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
e8bbfa95
Commit
e8bbfa95
authored
Apr 18, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix yet more quoting problems!
parent
deb1d9c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tbsetup/mkacct-ctrl.in
tbsetup/mkacct-ctrl.in
+3
-3
No files found.
tbsetup/mkacct-ctrl.in
View file @
e8bbfa95
...
...
@@ -227,7 +227,7 @@ sub dowork() {
if
(`
$ssh
$control_node
egrep '^
${user}
:' /etc/passwd
`
eq
"")
{
print
"
Adding user
$user
to
$control_node
.
\n
";
$str
=
"
$ssh
$control_node
"
.
"
'/usr/sbin/pw useradd
$user
-u
$user_number
-c
'
\"
$fullname
\"
'
"
.
"
'/usr/sbin/pw useradd
$user
-u
$user_number
-c
\"
$fullname
\"
"
.
"
-k /usr/share/skel -m -d /users/
$user
-g
$project
"
.
"
$groupargument
-s /bin/tcsh'
";
system
(
$str
)
==
0
...
...
@@ -241,8 +241,8 @@ sub dowork() {
# because perl does the escapes once, then ssh takes them again,
# so \\\" becomes " by the time the shell gets it.
$str
=
"
$ssh
$control_node
"
.
"
/usr/sbin/pw usermod
$user
-u
$user_number
"
.
"
-c
\
\\"
$fullname
\\\"
-g
$project
$groupargument
";
"
'
/usr/sbin/pw usermod
$user
-u
$user_number
"
.
"
-c
\
"
$fullname
\"
-g
$project
$groupargument
'
";
system
(
$str
)
==
0
or
print
STDERR
"
Could not modify user
$user
on
$control_node
.
\n
";
system
("
$ssh
$control_node
"
.
...
...
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