Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
14d6d0b0
Commit
14d6d0b0
authored
May 13, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix local shell for admins.
parent
71a5944a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
account/tbacct.in
account/tbacct.in
+8
-8
No files found.
account/tbacct.in
View file @
14d6d0b0
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -848,13 +848,13 @@ sub UpdateUser(;$)
$remshellarg
=
"
-s
$NOLOGIN
";
}
else
{
# Leave local shell alone if an admin.
# Admin users get a local shell.
if
(
$usr_admin
)
{
$locshellarg
=
"
-s
"
.
$shellpaths
{"
tcsh
"};
}
else
{
$locshellarg
=
"
-s
$PBAG
"
if
(
!
$usr_admin
);
# Special treatment for PROTUSER and GENIRACKs
$locshellarg
=
"
-s
"
.
$shellpaths
{"
tcsh
"}
.
"
"
if
(
$usr_admin
&&
(
$user
eq
$PROTOUSER
||
$GENIRACK
));
}
if
(
!
defined
(
$usr_shell
)
||
!
exists
(
$shellpaths
{
$usr_shell
}))
{
$remshellarg
=
"
-s
"
.
$shellpaths
{"
tcsh
"};
...
...
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