<?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: restrict userid to execute FTP command only in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181885#M163025</link>
    <description>James,&lt;BR /&gt;&lt;BR /&gt;Now with "vi". YOu will need to use 'vipw' to edit the passwd file. It sets the appropriate locks so that another session won't change the password file simultaneiously.&lt;BR /&gt;&lt;BR /&gt;YOu can also do a "chsh" command to change the shell. For ex.,&lt;BR /&gt;&lt;BR /&gt;chsh jobftp "/usr/bin/ftp"&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 05 Feb 2004 13:46:18 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-02-05T13:46:18Z</dc:date>
    <item>
      <title>restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181878#M163018</link>
      <description>I have the idea on how to do this, but I want to verify I got this right. I have a userid, lets call it jobftp, and is a member of group users.&lt;BR /&gt;&lt;BR /&gt;I want to use this ID to manually execute ftp jobs from another server (Microsoft) to a HPUX server. To set this up, I would do this:&lt;BR /&gt;&lt;BR /&gt;-in /etc/passwd, set the user's home directory to /bin/false&lt;BR /&gt;-in the /etc/shells directory, add /bin/false&lt;BR /&gt;&lt;BR /&gt;A bit more information, the user will login using the jobftp ID, but the only command this user ID can execute is ftp. &lt;BR /&gt;&lt;BR /&gt;Is this the best way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 03 Feb 2004 15:12:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181878#M163018</guid>
      <dc:creator>James Ellis_1</dc:creator>
      <dc:date>2004-02-03T15:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181879#M163019</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Set him up with the shell '/usr/bin/rsh' and give him profile only to look at certain path. For ex., Create a directory /home/jobftp with .profile containing only the following line&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/restrict/bin&lt;BR /&gt;&lt;BR /&gt;Change the ownership of this file to root:bin with only 400 permissions.&lt;BR /&gt;&lt;BR /&gt;Copy /usr/bin/ftp into /usr/restrict/bin. Do not add anything to it.&lt;BR /&gt;&lt;BR /&gt;Now the user, after logs in can only execute ftp command.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 03 Feb 2004 15:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181879#M163019</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-03T15:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181880#M163020</link>
      <description>The home dir should not be /bin/false, rather the users default shell (the LAST field on the line) should be /bin/false or /usr/bin/false.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Feb 2004 15:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181880#M163020</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-02-03T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181881#M163021</link>
      <description>Ahh.. I didn't quite read your message (yet another one).&lt;BR /&gt;&lt;BR /&gt;If you make it /bin/false, then the user cannot login. So, the best way is to make the shell as /usr/bin/ftp and add /usr/bin/ftp to /etc/shells.&lt;BR /&gt;&lt;BR /&gt;The user logs in and gets an ftp prompt. He|she will have to type "o systemname" etc.,etc&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Feb 2004 15:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181881#M163021</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-03T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181882#M163022</link>
      <description>Long term, you need to test the configuration yourself.&lt;BR /&gt;&lt;BR /&gt;I would want things structured so the user is in a chroot jail.  That means the user's home directory is root. Thats if you allow a telnet/ssh login at all, which you currrently are not doing.&lt;BR /&gt;&lt;BR /&gt;The user can't cd up to the real root.&lt;BR /&gt;&lt;BR /&gt;In this scenario the user may need an actual home directory thats in position to access the files you want the user to access.&lt;BR /&gt;&lt;BR /&gt;Under your current setup the user can not log on with telnet.  So the only way in or out is by ftp.&lt;BR /&gt;&lt;BR /&gt;Other things to consider.&lt;BR /&gt;&lt;BR /&gt;Why use ftp at all.&lt;BR /&gt;&lt;BR /&gt;Authentication is clear text.&lt;BR /&gt;&lt;BR /&gt;Why not use a Secure Shell which includes a secure ftp server for the server side.&lt;BR /&gt;&lt;BR /&gt;You'll need a client for the Microsoft side and that will cost a few dollars.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA" target="_blank"&gt;http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Feb 2004 15:56:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181882#M163022</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-03T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181883#M163023</link>
      <description>Attached is the HP doc, I have used, in pdf format.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 03 Feb 2004 16:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181883#M163023</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-02-03T16:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181884#M163024</link>
      <description>Still waiting to be able to edit the user's default shell path. &lt;BR /&gt;&lt;BR /&gt;By the way, can the /etc/passwd file be edited directly? &lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 05 Feb 2004 13:43:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181884#M163024</guid>
      <dc:creator>James Ellis_1</dc:creator>
      <dc:date>2004-02-05T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181885#M163025</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Now with "vi". YOu will need to use 'vipw' to edit the passwd file. It sets the appropriate locks so that another session won't change the password file simultaneiously.&lt;BR /&gt;&lt;BR /&gt;YOu can also do a "chsh" command to change the shell. For ex.,&lt;BR /&gt;&lt;BR /&gt;chsh jobftp "/usr/bin/ftp"&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2004 13:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181885#M163025</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-05T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181886#M163026</link>
      <description>Hmmm.. small correction. Please read "now" as "not" in the first line. My hand doesn't type what my brain says. Sorry.</description>
      <pubDate>Thu, 05 Feb 2004 13:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181886#M163026</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-05T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: restrict userid to execute FTP command only</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181887#M163027</link>
      <description>Sorry James, thought I had responded to this already. &lt;BR /&gt;Attached find the HP doc we have used for ftp only account setups.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Fri, 06 Feb 2004 14:21:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restrict-userid-to-execute-ftp-command-only/m-p/3181887#M163027</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-02-06T14:21:36Z</dc:date>
    </item>
  </channel>
</rss>

