<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: restricted shell access for user acct in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976759#M4781</link>
    <description>Stuart, couldn't he use some kind of chroot() command in the profile to prevent running the normal shell?&lt;BR /&gt;&lt;BR /&gt;Or could he make a copy of the bash shell and restrict permissions on it, use this new users group to prevent re-running the shell?&lt;BR /&gt;&lt;BR /&gt;I think so, I don't know the chroot command very well, but I know you could make a copy of the bash shell and keep that user from executing it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 20 May 2003 13:16:01 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-05-20T13:16:01Z</dc:date>
    <item>
      <title>restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976755#M4777</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;RH Linux As 2.1 is the OS.&lt;BR /&gt;&lt;BR /&gt;Got a user acct I have setup, need to restrinct access of this acct. Allow it to traverse down the directory it is restricted to - do not all it to come.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Many thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 May 2003 19:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976755#M4777</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-05-19T19:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976756#M4778</link>
      <description>/sbin/nologin&lt;BR /&gt;&lt;BR /&gt;As the SHELL in /etc/passwd will obviously preven login.&lt;BR /&gt;&lt;BR /&gt;Perhaps the chroot command in the .bash_profile&lt;BR /&gt;&lt;BR /&gt;I thought there was a restricted shell like in HP-UX but can't find it on my systems.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 May 2003 20:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976756#M4778</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-19T20:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976757#M4779</link>
      <description>Or. PErhaps I could ACTUALLY do my homework.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.europe.redhat.com/documentation/HOWTO/Adv-Bash-Scr-HOWTO/restricted-sh.php3" target="_blank"&gt;http://www.europe.redhat.com/documentation/HOWTO/Adv-Bash-Scr-HOWTO/restricted-sh.php3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Shows shell scripting with restricted shell, I bet similar methodology works in the /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;This link shows a non-bash restricted shell that can be installed and used..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.redhat.com/archives/redhat-list/1999-June/msg02059.html" target="_blank"&gt;http://www.redhat.com/archives/redhat-list/1999-June/msg02059.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You know, I often forget to check it but you can learn how to do darn near anything at &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org/" target="_blank"&gt;http://www.tldp.org/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Right now the search on that site is hanging.&lt;BR /&gt;&lt;BR /&gt;Go figure.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 May 2003 20:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976757#M4779</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-19T20:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976758#M4780</link>
      <description>You can literally use "/bin/bash -r" in /etc/passwd.&lt;BR /&gt;&lt;BR /&gt;This unfortunately doesn't stop the user from just re-running /bin/bash to get an un-restricted shell however.</description>
      <pubDate>Tue, 20 May 2003 01:01:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976758#M4780</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-05-20T01:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976759#M4781</link>
      <description>Stuart, couldn't he use some kind of chroot() command in the profile to prevent running the normal shell?&lt;BR /&gt;&lt;BR /&gt;Or could he make a copy of the bash shell and restrict permissions on it, use this new users group to prevent re-running the shell?&lt;BR /&gt;&lt;BR /&gt;I think so, I don't know the chroot command very well, but I know you could make a copy of the bash shell and keep that user from executing it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 May 2003 13:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976759#M4781</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-20T13:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: restricted shell access for user acct</title>
      <link>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976760#M4782</link>
      <description>I guess it depends on what the user is supposed to do in the end.&lt;BR /&gt;&lt;BR /&gt;The issue with 'chroot' is that it literally says "This is now my root directory".  Meaning, unless a library is in memory etc. etc., they'll need populated lib,bin,etc (etc.) directories.&lt;BR /&gt;&lt;BR /&gt;Not pretty.  If they are just running a custom application, then it's possible.  I suppose you could also just created hard-linked structures, but...</description>
      <pubDate>Tue, 20 May 2003 22:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/restricted-shell-access-for-user-acct/m-p/2976760#M4782</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-05-20T22:23:50Z</dc:date>
    </item>
  </channel>
</rss>

