<?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: How create user with only FTP access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022155#M130736</link>
    <description>Hi,&lt;BR /&gt;Create a new user usr01.&lt;BR /&gt;Modify the user's default shell to /usr/bin/false in /etc/passwd , last field.&lt;BR /&gt;Make a file "/etc/shells" , keep these entries:&lt;BR /&gt;/usr/bin/false&lt;BR /&gt;/sbin/sh&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;Then the user can't use telnet but can su.&lt;BR /&gt;&lt;BR /&gt;-ux&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 14 Jul 2003 01:32:34 GMT</pubDate>
    <dc:creator>Fragon</dc:creator>
    <dc:date>2003-07-14T01:32:34Z</dc:date>
    <item>
      <title>How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022149#M130730</link>
      <description>Dear All,&lt;BR /&gt;&lt;BR /&gt;  Hi ,&lt;BR /&gt;I would like to create a user with only FTP privilege, so he can not use any application like telnet or any thing else.&lt;BR /&gt;&lt;BR /&gt;I would prefer to create a group called FTP with this privilege but acctually i do not know how to do it?&lt;BR /&gt;&lt;BR /&gt;Kind Regards</description>
      <pubDate>Sun, 13 Jul 2003 09:25:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022149#M130730</guid>
      <dc:creator>Abdullah_2</dc:creator>
      <dc:date>2003-07-13T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022150#M130731</link>
      <description>Take a look at the whitepaper from HP:&lt;BR /&gt;Setting up restricted user accounts with FTP DocId: KBRC00008355   Updated: 10/30/01 12:24:00 PM &lt;BR /&gt;&lt;BR /&gt;PROBLEM&lt;BR /&gt;How can I restric certian users to one directory though ftp?RESOLUTION&lt;BR /&gt;The new version of FTP is supplied to HP-UX 11.00 through patch PHNE_14479&lt;BR /&gt;and this must be installed on your system. Please check the release notes&lt;BR /&gt;provided at /usr/share/doc/RelNotes_newftp.txt for further information on&lt;BR /&gt;the enhancements provided by this FTP revision.&lt;BR /&gt;&lt;BR /&gt;There are three kinds of logins provided wu-ftp;&lt;BR /&gt;* anonymous FTP&lt;BR /&gt;* real FTP&lt;BR /&gt;* guest FTP&lt;BR /&gt;&lt;BR /&gt;The focus of this document is how to setup a 'guest' ftp account to get&lt;BR /&gt;around the sublogin problems encountered with HP-UX 11.00.&lt;BR /&gt;&lt;BR /&gt;Guest accounts require explicit user entries in the system /etc/passwd&lt;BR /&gt;file but performs a chroot to a designated directory, thus maintaining&lt;BR /&gt;integrity.&lt;BR /&gt;&lt;BR /&gt;Steps to be followed;&lt;BR /&gt;&lt;BR /&gt;1. Make the edits to the /etc/passwd file&lt;BR /&gt;&lt;BR /&gt;ftpguest:4rL2HZkDatENY:505:125::/home/ftp/ftpguest/./:/usr/bin/false&lt;BR /&gt;                                                  ^^^&lt;BR /&gt;- '.' Is the delimiter to determine where the chroot will be performed. In&lt;BR /&gt;this example, after logging in '/' will in effect be /home/ftp/ftpguest.&lt;BR /&gt;If the delimiter was placed between ftp and ftpguest then '/' would be&lt;BR /&gt;/home/ftp  ftpguest was used as the account name in this example but you&lt;BR /&gt;could use any name you like.&lt;BR /&gt;&lt;BR /&gt;2. /usr/bin/false will have to be added to the /etc/shells file.&lt;BR /&gt;See man(4) shells for further details&lt;BR /&gt;&lt;BR /&gt;3. Make the edits to the /etc/group file&lt;BR /&gt;&lt;BR /&gt;ftpgroup::125:ftpguest&lt;BR /&gt;&lt;BR /&gt;- Create and set the permissions and ownership for the directory&lt;BR /&gt;(/home/ftp/ftpguest) to what suits you best.&lt;BR /&gt;&lt;BR /&gt;4.&lt;BR /&gt;Add an entry into the ftpaccess file. This file will most probably have to&lt;BR /&gt;be copied from the /usr/newconfig/etc/ftpd/ftpaccess to /etc/ftpd/ftpaccess.&lt;BR /&gt;&lt;BR /&gt;Add a guestgroup entry (in the /etc/ftpd/ftpaccess file) to allow a group&lt;BR /&gt;of users to be treated as 'guests'. This entry will correspond to the entry&lt;BR /&gt;in the /etc/group file. Here is a sample of the ftpaccess file to use guest&lt;BR /&gt;groups.&lt;BR /&gt;&lt;BR /&gt;# specify which group of users will be treated as "guests".&lt;BR /&gt;guestgroup ftpgroup&lt;BR /&gt;&lt;BR /&gt;5. Edit the /etc/inetd.conf file and add the '-a' option to enable ftpd to&lt;BR /&gt;use the ftpaccess file. Here is an example;&lt;BR /&gt;&lt;BR /&gt;ftp          stream tcp nowait root /usr/lbin/ftpd      ftpd -l -a&lt;BR /&gt;&lt;BR /&gt;You will need to reconfigure inetd by running /usr/sbin/inetd -c to&lt;BR /&gt;reread the /etc/inetd.conf file after making the change.&lt;BR /&gt;&lt;BR /&gt;6. Since this is similar to anonymous FTP in the respect that you are in a&lt;BR /&gt;chrooted area (the path to / is different than on your system) you will&lt;BR /&gt;also have to replicate the /usr/bin and /etc directories. The easiest way&lt;BR /&gt;to do this is to use SAM to create an anonymous FTP setup and then replicate&lt;BR /&gt;the /etc &amp;amp; /usr/bin directories into your ftp guest root directory. Here&lt;BR /&gt;is an example of how you would replicate the ~ftp/usr and ~ftp/etc directory&lt;BR /&gt;to your new ftp guest directory. We use the ftpguest user in this example.&lt;BR /&gt;&lt;BR /&gt;cp -R ~ftp/usr ~ftpguest/usr&lt;BR /&gt;cp -R ~ftp/etc ~ftpguest/etc&lt;BR /&gt;&lt;BR /&gt;At this point you should have the files and programs needed for your&lt;BR /&gt;ftpguest user.&lt;BR /&gt;&lt;BR /&gt;** This is dependent upon where the '.' delimiter has been positioned. If&lt;BR /&gt;the delimiter is positioned prior to the ftp username then only the root&lt;BR /&gt;directory (/home/ftp) needs to contain a /usr &amp;amp; /etc directory structure.&lt;BR /&gt;If the delimiter is placed post the username then each individual user&lt;BR /&gt;will require this directory structure.&lt;BR /&gt;&lt;BR /&gt;** NOTE: When providing the 'ls' command, use /sbin/ls, not /usr/bin/ls.&lt;BR /&gt;&lt;BR /&gt;7. Another thing I noticed is that you must touch the file /etc/ftpd/ftpgroups.&lt;BR /&gt;If you do not, you will see messages in syslog.log indicating that ftpd could&lt;BR /&gt;not stat this file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Jul 2003 10:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022150#M130731</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-07-13T10:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022151#M130732</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;this is what we do for ftp only users.&lt;BR /&gt;&lt;BR /&gt;1. create a new user with /usr/bin/passwd as the shell.&lt;BR /&gt;&lt;BR /&gt;2. add /usr/bin/passwd to /etc/shells. ftpd checks this.&lt;BR /&gt;&lt;BR /&gt;3. when the user wants to change his password, he telnets to the system. the system prompts for old password and once he sets the new password the shell exits.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;-balaji</description>
      <pubDate>Sun, 13 Jul 2003 10:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022151#M130732</guid>
      <dc:creator>Balaji N</dc:creator>
      <dc:date>2003-07-13T10:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022152#M130733</link>
      <description>man ftpusers , ftpaccess&lt;BR /&gt;also nice feature is to create /bin/noshells&lt;BR /&gt;put inside a line like:&lt;BR /&gt;echo "Sorry,not a login shell!\n"&lt;BR /&gt;exit 0&lt;BR /&gt;And use it in /etc/passwd.&lt;BR /&gt;Again,this user would be able to use rexec,&lt;BR /&gt;which I'd rather disable at all in /etc/inetd.conf.</description>
      <pubDate>Sun, 13 Jul 2003 11:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022152#M130733</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2003-07-13T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022153#M130734</link>
      <description>I think the too suggestions above are great.  I'd like to add two cents of refinement.&lt;BR /&gt;&lt;BR /&gt;By setting the shell at creattion time to the ftp shells or the rsh shell, it is possible to set up a user that can only do ftp and telnet, the two least secure protocols I can think of(passwords across the public Internet in Clear text....eeeekers).&lt;BR /&gt;&lt;BR /&gt;Setting up a system whereby passwords are maintained with a system that transmits these password across the internet in clear text is insecure.&lt;BR /&gt;&lt;BR /&gt;Thy PuTTY program is free and nicely handles ssh(Secure Shell) connections in a windows environment.  If you are just starting off, you should consider installing Secure Shell 3.50 in your HP-UX box and at least require the password change process to occur in an encrypted environment.&lt;BR /&gt;&lt;BR /&gt;Secure shell&lt;BR /&gt;&lt;A href="http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA" target="_blank"&gt;http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Better still would be learning the basics of setting up a secure passord maintenance environment that is integrated with the Apache web server.&lt;BR /&gt;&lt;BR /&gt;User password maintenance can then be done with ssl in an encrypted way.&lt;BR /&gt;&lt;BR /&gt;This search contains interesting information with regards to the web server portion of the question.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support.external.hp.com/emse/bin/doc.pl/sid=729c1abe0c2f430ce8?todo=search&amp;amp;searchtext=ssl++htaccess+apache&amp;amp;x=20&amp;amp;y=2&amp;amp;searchtype=SEARCH_TECH_DOCS&amp;amp;searchtype=SEARCH_MANUAL&amp;amp;searchtype=SEARCH_FORUMS&amp;amp;searchcategory=ALL&amp;amp;rn=25&amp;amp;presort=rank" target="_blank"&gt;http://us-support.external.hp.com/emse/bin/doc.pl/sid=729c1abe0c2f430ce8?todo=search&amp;amp;searchtext=ssl++htaccess+apache&amp;amp;x=20&amp;amp;y=2&amp;amp;searchtype=SEARCH_TECH_DOCS&amp;amp;searchtype=SEARCH_MANUAL&amp;amp;searchtype=SEARCH_FORUMS&amp;amp;searchcategory=ALL&amp;amp;rn=25&amp;amp;presort=rank&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As does this paper book:&lt;BR /&gt;Practical Unix &amp;amp; Internet Security&lt;BR /&gt;Garfinkel &amp;amp; Spafford&lt;BR /&gt;&lt;BR /&gt;Its handed out as part of HP's Practical Network Security Course, which I highly recommend.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 13 Jul 2003 11:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022153#M130734</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-13T11:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022154#M130735</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;Use the chroot that will execute the ftp in the&lt;BR /&gt;end.&lt;BR /&gt;Made the user home dir with the ftp and&lt;BR /&gt;the files that needed like /etc/services&lt;BR /&gt;that will have only port for ftp&lt;BR /&gt;When user will log in he will automaticly enter&lt;BR /&gt;to ftp.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Sun, 13 Jul 2003 19:07:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022154#M130735</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-13T19:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How create user with only FTP access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022155#M130736</link>
      <description>Hi,&lt;BR /&gt;Create a new user usr01.&lt;BR /&gt;Modify the user's default shell to /usr/bin/false in /etc/passwd , last field.&lt;BR /&gt;Make a file "/etc/shells" , keep these entries:&lt;BR /&gt;/usr/bin/false&lt;BR /&gt;/sbin/sh&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;Then the user can't use telnet but can su.&lt;BR /&gt;&lt;BR /&gt;-ux&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Jul 2003 01:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-create-user-with-only-ftp-access/m-p/3022155#M130736</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-07-14T01:32:34Z</dc:date>
    </item>
  </channel>
</rss>

