<?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: Grant user's right in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862224#M25196</link>
    <description>a couple of ways.&lt;BR /&gt;1. add John to the group where the file belongs to&lt;BR /&gt;2. Change the program to allow suid for appropriate owner/group-ship&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Sep 2006 13:03:22 GMT</pubDate>
    <dc:creator>George Liu_4</dc:creator>
    <dc:date>2006-09-13T13:03:22Z</dc:date>
    <item>
      <title>Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862222#M25194</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;The file permission is set to rw,rw,r -- How do I give a specific user "John" permission to run a process without world's permission?  As root I can do chmod 666 or 777 to a file, but I would like this user to be able to run a process to process this file without having to run chmod prior to.&lt;BR /&gt;&lt;BR /&gt;Please help!!&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Wed, 13 Sep 2006 12:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862222#M25194</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-13T12:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862223#M25195</link>
      <description>Yes, this would be in RHAS 3.0.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Wed, 13 Sep 2006 12:29:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862223#M25195</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-13T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862224#M25196</link>
      <description>a couple of ways.&lt;BR /&gt;1. add John to the group where the file belongs to&lt;BR /&gt;2. Change the program to allow suid for appropriate owner/group-ship&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2006 13:03:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862224#M25196</guid>
      <dc:creator>George Liu_4</dc:creator>
      <dc:date>2006-09-13T13:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862225#M25197</link>
      <description>Hi Jorge,&lt;BR /&gt;&lt;BR /&gt;There are many ways to accomplish this:&lt;BR /&gt;&lt;BR /&gt;1) Create a wrapper script to execute 'sudo -u owner file', or teach John the syntax.  Make sure john is set up in sudoers.&lt;BR /&gt;&lt;BR /&gt;2) Create a new group and make john a member.    Then 'chgrp newgroup file &amp;amp;&amp;amp; chmod g+x file'.&lt;BR /&gt;&lt;BR /&gt;3) Create a wrapper script that checks for john's uid and executes 'file' in the event of a match.  Make sure to 'setuid' or 'setgid' for the script appropriately.&lt;BR /&gt;&lt;BR /&gt;4) Use an ACL.  RHEL 3.0 has ACL support for ext3 built into the kernel.  To enable ACLs for a filesystem, use the '-o acl' option to 'mount'.  Then:&lt;BR /&gt;&lt;BR /&gt;# setfacl -m u:john:rwx file&lt;BR /&gt;&lt;BR /&gt;Of course, if this is the only instance you'll use ACLs on the filesystem, it's overkill.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Wed, 13 Sep 2006 13:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862225#M25197</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-13T13:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862226#M25198</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'd like to say thanks for all your suggestions.  However, I'm still learning Linux, therefore, I would need more details such as the command to add seudo user account, etc.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jorge</description>
      <pubDate>Wed, 13 Sep 2006 22:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862226#M25198</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-13T22:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862227#M25199</link>
      <description>I added the user "John" to the sudoers file.  By testing, I logged as him and find that "John" still have the permission as he did before.  Once I modified the sudoers file, do I need to stop &amp;amp; restart sudoers service or some sort before it can work?&lt;BR /&gt;&lt;BR /&gt;Please help!!</description>
      <pubDate>Fri, 15 Sep 2006 08:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862227#M25199</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-15T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862228#M25200</link>
      <description>Jorge, in order to use sudo you must do 2 things:&lt;BR /&gt;a) as root, use visudo to edit the /etc/sudoers file and add a line similar to:&lt;BR /&gt;john    ALL=(ALL) command to run including parameters&lt;BR /&gt;b) as user john, run:&lt;BR /&gt;sudo command to run including parameters&lt;BR /&gt;&lt;BR /&gt;The alternative is to follow spex's suggestion number 4. Just mount the filesystem with the "acl" option and grant execute permission to the user. spex has provided step by step instructions for that.</description>
      <pubDate>Fri, 15 Sep 2006 15:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862228#M25200</guid>
      <dc:creator>Manuel Wolfshant</dc:creator>
      <dc:date>2006-09-15T15:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grant user's right</title>
      <link>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862229#M25201</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Dummy me...I forgot to run "sudo su -" command after I logged in as john.  It's now working prefectly.&lt;BR /&gt;&lt;BR /&gt;However, I would like to know more about ACL - I know ACL pretty well the VMS world, but lost when I read the docs online for Linux.&lt;BR /&gt;&lt;BR /&gt;Does anyone here have step-by-step instructions on setting up ACL in RHAS 2.1 AS?&lt;BR /&gt;&lt;BR /&gt;Thanks anyone for your help!!&lt;BR /&gt;&lt;BR /&gt;Have a great weekend.&lt;BR /&gt;&lt;BR /&gt;Jorge &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Sep 2006 15:58:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/grant-user-s-right/m-p/3862229#M25201</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-09-15T15:58:31Z</dc:date>
    </item>
  </channel>
</rss>

