<?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: Permissions in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788005#M23385</link>
    <description>When a user creates a file or a directory, he always becomes its owner. This cannot be changed. Only exception for that is filesystems which do not support unix-style permissions (e.g. VFAT).&lt;BR /&gt;&lt;BR /&gt;Normally the new file gets its group ownership in the same way (i.e. the same as the creator's  primary group). This *can* be changed: by setting the directory's group as desired and setting the directory's sgid permission (chmod g+s directoryname) all files and directories created in the directory get the same group ownership as the directory. The sgid permission  gets also added automatically to all new subdirectories of the original directory with the sgid permission.&lt;BR /&gt;(In some Unix-like operating systems, files and directories created as root will ignore the directory-sgid effect.)&lt;BR /&gt;&lt;BR /&gt;The permissions (read/write/execute bits) are determined according to the user's umask setting, and no directory can affect that.&lt;BR /&gt;&lt;BR /&gt;However, in most modern Linuxes, each new user gets a personal group of his own (with a GID equal to the user's UID). This allows you to set your system's default umask as 002 (or 007). With that value, the users will create files in their home directories that are group writable by default... but that is no problem, because the group that has the write permissions contains only the user himself.&lt;BR /&gt;&lt;BR /&gt;With this setup, creating group writable directories becomes easy: the admin creates the top directory as root, then sets the correct group ownership, permissions and sgid for the directory. After that, the users belonging to the correct group can do all the rest. &lt;BR /&gt;</description>
    <pubDate>Mon, 15 May 2006 08:07:52 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2006-05-15T08:07:52Z</dc:date>
    <item>
      <title>Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788000#M23380</link>
      <description>Hi @ll&lt;BR /&gt;&lt;BR /&gt;assumption of the folder permission:&lt;BR /&gt;root@ex10110:/home/oracle# ll | grep test&lt;BR /&gt;drwxr-xr-x   2 oracle     dba             96 May 15 10:05 test&lt;BR /&gt;&lt;BR /&gt;assumption of the file permission:&lt;BR /&gt;root@ex10110:/home/oracle/test# ll&lt;BR /&gt;total 0&lt;BR /&gt;-rw-r--r--   1 oracle     dba              0 May 15 10:05 blah&lt;BR /&gt;-rw-r--r--   1 oracle     dba              0 May 15 10:05 blah2&lt;BR /&gt;&lt;BR /&gt;now when i create a file as root then the file permissions looks as follow:&lt;BR /&gt;-rw-r--r--   1 root       sys              0 May 15 10:05 blubb&lt;BR /&gt;&lt;BR /&gt;what can i do, that the folder/file/owner/group permissions are like the permissions of the higher folder even when I create the files as an other user? I have nowhere found an option in chmod, chown or chgrp, is there an other command?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Mon, 15 May 2006 03:14:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788000#M23380</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-05-15T03:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788001#M23381</link>
      <description>In current state only the owner is able to create files in the directory.&lt;BR /&gt;&lt;BR /&gt;You can use the following:&lt;BR /&gt;create some group and add all users that you would like to be able to write under that directory to this group.&lt;BR /&gt;&lt;BR /&gt;change the group ownership of that directory:&lt;BR /&gt;chgrp groupname foldername&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Execute&lt;BR /&gt;chmod g+s foldername&lt;BR /&gt;This will make all files created in this folder to have the same group as the folder.&lt;BR /&gt;</description>
      <pubDate>Mon, 15 May 2006 03:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788001#M23381</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-05-15T03:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788002#M23382</link>
      <description>Thank, but now the permissions:&lt;BR /&gt;when I create a new file with any user, then the permission of the files are 644, how can I take the permission of the higher folder?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 15 May 2006 06:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788002#M23382</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-05-15T06:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788003#M23383</link>
      <description>&amp;gt;how can I take the permission of the higher folder?&lt;BR /&gt;&lt;BR /&gt;I don't think that this is doable.&lt;BR /&gt;AFAIK, you should change default umask for *all* users if you want to change new files permission.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Vitaly</description>
      <pubDate>Mon, 15 May 2006 06:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788003#M23383</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2006-05-15T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788004#M23384</link>
      <description>Ty,&lt;BR /&gt;in fact there is no chance to set an option equivalent to this in windows "Allow inheritable permissions from parent to propagate to this object"?&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 15 May 2006 07:31:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788004#M23384</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-05-15T07:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions</title>
      <link>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788005#M23385</link>
      <description>When a user creates a file or a directory, he always becomes its owner. This cannot be changed. Only exception for that is filesystems which do not support unix-style permissions (e.g. VFAT).&lt;BR /&gt;&lt;BR /&gt;Normally the new file gets its group ownership in the same way (i.e. the same as the creator's  primary group). This *can* be changed: by setting the directory's group as desired and setting the directory's sgid permission (chmod g+s directoryname) all files and directories created in the directory get the same group ownership as the directory. The sgid permission  gets also added automatically to all new subdirectories of the original directory with the sgid permission.&lt;BR /&gt;(In some Unix-like operating systems, files and directories created as root will ignore the directory-sgid effect.)&lt;BR /&gt;&lt;BR /&gt;The permissions (read/write/execute bits) are determined according to the user's umask setting, and no directory can affect that.&lt;BR /&gt;&lt;BR /&gt;However, in most modern Linuxes, each new user gets a personal group of his own (with a GID equal to the user's UID). This allows you to set your system's default umask as 002 (or 007). With that value, the users will create files in their home directories that are group writable by default... but that is no problem, because the group that has the write permissions contains only the user himself.&lt;BR /&gt;&lt;BR /&gt;With this setup, creating group writable directories becomes easy: the admin creates the top directory as root, then sets the correct group ownership, permissions and sgid for the directory. After that, the users belonging to the correct group can do all the rest. &lt;BR /&gt;</description>
      <pubDate>Mon, 15 May 2006 08:07:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/permissions/m-p/3788005#M23385</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-05-15T08:07:52Z</dc:date>
    </item>
  </channel>
</rss>

