<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="#0563C1" vlink="#954F72"><div class="WordSection1"><p class="MsoNormal">Try this command:</p><p class="MsoNormal"> </p><p class="MsoNormal"><code><span style="font-size:10.0pt">sudo chsh -s /bin/<shell of choice> username</span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt">To see which shells you have available to you, use this command:</span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt">chsh -l</span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"><code><span style="font-size:10.0pt"> </span></code></p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal"><b>From:</b> PLUG-discuss [mailto:<a href="mailto:plug-discuss-bounces@lists.phxlinux.org">plug-discuss-bounces@lists.phxlinux.org</a>] <b>On Behalf Of </b>Shawn Badger<br><b>Sent:</b> Monday, May 1, 2017 4:50 PM<br><b>To:</b> Main PLUG discussion list <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>><br><b>Subject:</b> Ubuntu 16.04 Guest account shell</p><p class="MsoNormal"> </p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">So i am using the guest account for a kiosk. So far it is great because it locks the home directory down to a folder in /tmp. But it has some down sides. I can't seem to find a way to set the default shell to anything other then bash. I want a way to give that user a restricted shell in case the user finds a way to get access to a shell. Does anyone know where to modify the script that creates the guest user account is?</p></div><p class="MsoNormal" style="margin-bottom:12.0pt">Also, as an FYI the guest account leaves the entries in passwd, group and shadow. You need to create a script to clean them out fi you are using it like this.<br><br></p></div></div></body></html>