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-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
eaa7e332
Commit
eaa7e332
authored
Jan 14, 2015
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZFS nits.
parent
5d077adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
account/accountsetup.in
account/accountsetup.in
+9
-8
No files found.
account/accountsetup.in
View file @
eaa7e332
...
...
@@ -222,13 +222,13 @@ sub AddUser()
or
fatal
("
Could not copy
$SKEL
/
$file
to
$hdir
/$1
");
}
}
}
#
# And set the owner and group right on everything
#
mysystem
("
/usr/sbin/chown -R
$user
:
$gid
$hdir
")
==
0
or
fatal
("
Could not chown
$hdir
");
#
# And set the owner and group right on everything
#
mysystem
("
/usr/sbin/chown -R
$user
:
$gid
$hdir
")
==
0
or
fatal
("
Could not chown
$hdir
");
}
#
# Finally, set any initial password hash
...
...
@@ -581,8 +581,9 @@ sub WhackDir($$)
}
# Since we reuse uid/gids let's make the dir root/0700
if
(
!
chown
(
0
,
-
1
,
$npath
)
||
!
chmod
(
0700
,
$npath
))
{
print
STDERR
"
WARNING: could not chown/chmod '
$npath
'!
\n
";
$path
=
"
$fs
/
$dir$suffix
";
if
(
!
chown
(
0
,
0
,
$path
)
||
!
chmod
(
0700
,
$path
))
{
print
STDERR
"
WARNING: could not chown/chmod '
$path
'!
\n
";
}
}
#
...
...
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