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
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
Hide 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
.
$locshellarg
=
"
-s
$PBAG
"
if
(
!
$usr_admin
)
;
# Special treatment for PROTUSER and GENIRACKs
$locshellarg
=
"
-s
"
.
$shellpaths
{"
tcsh
"}
.
"
"
if
(
$usr_admin
&&
(
$user
eq
$PROTOUSER
||
$GENIRACK
));
#
Admin users get a local shell
.
if
(
$usr_admin
)
{
$locshellarg
=
"
-s
"
.
$shellpaths
{"
tcsh
"}
;
}
else
{
$locshellarg
=
"
-s
$PBAG
"
}
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