<?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: Userid and group to have read access only. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953246#M27217</link>
    <description>Thanks, that helped. POints have been assigned.</description>
    <pubDate>Wed, 28 Feb 2007 16:52:19 GMT</pubDate>
    <dc:creator>Ragni Singh</dc:creator>
    <dc:date>2007-02-28T16:52:19Z</dc:date>
    <item>
      <title>Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953241#M27212</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have created a user nmlread, group nmlread, but I need both user and group to only have read access. What needs to be done?&lt;BR /&gt;&lt;BR /&gt;drwx------  3 nmlread  nmlread 4096 Feb 28 11:06 nmlread&lt;BR /&gt;&lt;BR /&gt;Thanks and points will be assigned.</description>
      <pubDate>Wed, 28 Feb 2007 15:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953241#M27212</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2007-02-28T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953242#M27213</link>
      <description>Use chmod command:&lt;BR /&gt;&lt;BR /&gt;chmod ug+r filename&lt;BR /&gt;or &lt;BR /&gt;chmod 440 filename &lt;BR /&gt;&lt;BR /&gt;see &lt;A href="http://en.wikipedia.org/wiki/Chmod" target="_blank"&gt;http://en.wikipedia.org/wiki/Chmod&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;for more examples.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2007 16:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953242#M27213</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2007-02-28T16:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953243#M27214</link>
      <description>Hi. Read only access to what? To files, directories, all system?&lt;BR /&gt;&lt;BR /&gt;You can use rbash to limit what the user can do.</description>
      <pubDate>Wed, 28 Feb 2007 16:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953243#M27214</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-02-28T16:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953244#M27215</link>
      <description>Hi Ivan, I would think the user nmlread should only have read access to everything on the system.</description>
      <pubDate>Wed, 28 Feb 2007 16:17:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953244#M27215</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2007-02-28T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953245#M27216</link>
      <description>Then, you need restricted bash.&lt;BR /&gt;&lt;BR /&gt;How to configure:&lt;BR /&gt;&lt;BR /&gt;Create a link for bash:&lt;BR /&gt;&lt;BR /&gt;# ln -s /bin/bash /bin/rbash&lt;BR /&gt;&lt;BR /&gt;Set the user's shell rbash&lt;BR /&gt;&lt;BR /&gt;# usermod -s /bin/bash username&lt;BR /&gt;&lt;BR /&gt;Create a the $HOME/bin directory for the user:&lt;BR /&gt;&lt;BR /&gt;# mkdir /home/username/bin&lt;BR /&gt;&lt;BR /&gt;Link the commands that you want to allow to the user in the bin directory:&lt;BR /&gt;&lt;BR /&gt;# cd /home/username/bin&lt;BR /&gt;# ln -s /bin/ls&lt;BR /&gt;# ln -s /bin/date&lt;BR /&gt;# ln -s /bin/cat&lt;BR /&gt;&lt;BR /&gt;Edit the user .bash_profile and set the PATH variable to contain only the $HOME/bin directory:&lt;BR /&gt;&lt;BR /&gt;# vi /home/username/.bash_profile&lt;BR /&gt;&lt;BR /&gt;PATH=$HOME/bin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;The user can only run the commands in his bin directory.</description>
      <pubDate>Wed, 28 Feb 2007 16:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953245#M27216</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-02-28T16:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Userid and group to have read access only.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953246#M27217</link>
      <description>Thanks, that helped. POints have been assigned.</description>
      <pubDate>Wed, 28 Feb 2007 16:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/userid-and-group-to-have-read-access-only/m-p/3953246#M27217</guid>
      <dc:creator>Ragni Singh</dc:creator>
      <dc:date>2007-02-28T16:52:19Z</dc:date>
    </item>
  </channel>
</rss>

