<?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 Adding user with restrictions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297739#M183288</link>
    <description>How do you restrict a user to accessing your server strictly via ftp? Also, how do you restrict them to use one specific directory?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 07 Jun 2004 09:29:13 GMT</pubDate>
    <dc:creator>Steve Ferrara</dc:creator>
    <dc:date>2004-06-07T09:29:13Z</dc:date>
    <item>
      <title>Adding user with restrictions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297739#M183288</link>
      <description>How do you restrict a user to accessing your server strictly via ftp? Also, how do you restrict them to use one specific directory?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 07 Jun 2004 09:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297739#M183288</guid>
      <dc:creator>Steve Ferrara</dc:creator>
      <dc:date>2004-06-07T09:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user with restrictions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297740#M183289</link>
      <description>Create user id with shell as /usr/bin/ftp and add /usr/bin/ftp to /etc/shells.&lt;BR /&gt;You can restrict to a perticular directory by mentioning PATH=/restrictedDIR in .profile file of user's home directory and change ownership of the .profile to root:bin&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Mon, 07 Jun 2004 09:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297740#M183289</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2004-06-07T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user with restrictions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297741#M183290</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To restrict the user to have only ftp access, ley the login shell for the user be set as /usr/bin/false and add this in the /etc/shells file. Also you can setup ftpaccess to set restrictions for the user.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000073346999" target="_blank"&gt;http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=200000073346999&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The itrc doc id is BC0814KBRC00007719.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2004 09:44:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297741#M183290</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-06-07T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user with restrictions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297742#M183291</link>
      <description>let's assume the username who will only have ftp access and nothing else is 'ftpuser'&lt;BR /&gt;&lt;BR /&gt;useradd -m -s /usr/bin/false &lt;BR /&gt;&lt;BR /&gt;edit password file using 'vipw' command and change the home directory of the user to /home/ftpuser/./ ,i.e., add a /./ at the end of whatever is already there&lt;BR /&gt;&lt;BR /&gt;add /usr/bin/false to /etc/shells if it is not there already&lt;BR /&gt;&lt;BR /&gt;if exists edit /etc/ftpd/ftpaccess file and add these lines :&lt;BR /&gt;&lt;BR /&gt;class all ftpuser,guest *&lt;BR /&gt;guestgroup none&lt;BR /&gt;&lt;BR /&gt;chmod 444 /etc/ftpd/ftpaccess &lt;BR /&gt;chown bin:bin /etc/ftpd/ftpaccess &lt;BR /&gt;&lt;BR /&gt;vi /etc/inetd.conf&lt;BR /&gt;&lt;BR /&gt;find the line beginning with ftp and if is not there already add "-a" without the quotes of course to the end. It should look like this :&lt;BR /&gt;&lt;BR /&gt;ftp   stream tcp nowait root /usr/lbin/ftpd    ftpd -l -a&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/inetd -k&lt;BR /&gt;/usr/sbin/inetd -l&lt;BR /&gt;(which restarts inetd with the newly changed settings if you changed anything)&lt;BR /&gt;&lt;BR /&gt;mkdir ~ftpuser/usr&lt;BR /&gt;mkdir ~ftpuser/usr/bin&lt;BR /&gt;chown bin:bin ~ftpuser/usr&lt;BR /&gt;chmod 555 ~ftpuser/usr&lt;BR /&gt;chown root:bin ~ftpuser/usr/bin&lt;BR /&gt;chmod 555 ~ftpuser/usr/bin&lt;BR /&gt;cp -p /sbin/ls ~ftpuser/usr/bin/ls&lt;BR /&gt;&lt;BR /&gt;hope this helps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2004 10:05:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297742#M183291</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-06-07T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding user with restrictions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297743#M183292</link>
      <description>oh, I realized that I made a typo on the user add line. it should have read:&lt;BR /&gt;&lt;BR /&gt;useradd -m -s /usr/bin/false ftpuser&lt;BR /&gt;&lt;BR /&gt;(must find coffeee...)</description>
      <pubDate>Mon, 07 Jun 2004 10:07:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-user-with-restrictions/m-p/3297743#M183292</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-06-07T10:07:01Z</dc:date>
    </item>
  </channel>
</rss>

