<?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: homedir permission in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739400#M946641</link>
    <description>Again, tested the same with 'useradd' command and found the HOME directory permission is 755, even if the umask is set to 027. So I think 'useradd' keeps the permission always as 755, but SAM takes input from 'umask' value.</description>
    <pubDate>Thu, 06 Jun 2002 19:35:03 GMT</pubDate>
    <dc:creator>Helen French</dc:creator>
    <dc:date>2002-06-06T19:35:03Z</dc:date>
    <item>
      <title>homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739391#M946632</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I set up umask as 027 within the /etc/profile. But why when I create a new user, its home directory permission is 755?&lt;BR /&gt;&lt;BR /&gt;But any directories I created under this homedir, the permission is the same as what I think, 750...&lt;BR /&gt;&lt;BR /&gt;Crystal&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 17:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739391#M946632</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2002-06-06T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739392#M946633</link>
      <description>Crystal,&lt;BR /&gt;&lt;BR /&gt;How are you creating the user?&lt;BR /&gt;The creation process is setting permissions on the home directory without regard to your umask.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 06 Jun 2002 17:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739392#M946633</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-06-06T17:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739393#M946634</link>
      <description>Just tried the same thing in my test system and it worked fine for me ! It created the $HOME directory with permission 750. I 've created the user with SAM and before that changed my umask to 027. &lt;BR /&gt;&lt;BR /&gt;Before adding the users, check the umask with:&lt;BR /&gt;&lt;BR /&gt;# umask</description>
      <pubDate>Thu, 06 Jun 2002 18:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739393#M946634</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-06T18:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739394#M946635</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I put the umask in /etc/profile as 027 and logged out and logged on...&lt;BR /&gt;&lt;BR /&gt;Then ran the command "useradd -m test", and check the permission of /home/test, it is &lt;BR /&gt;drwxr-xr-x.&lt;BR /&gt;&lt;BR /&gt;I tried several systems and they gave me the same result...&lt;BR /&gt;&lt;BR /&gt;Crystal</description>
      <pubDate>Thu, 06 Jun 2002 18:39:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739394#M946635</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2002-06-06T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739395#M946636</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I did another test:&lt;BR /&gt;&lt;BR /&gt;1.Change the umask from 027 to 022 in /etc/profile, log out and log on.&lt;BR /&gt;&lt;BR /&gt;2. useradd -m testnew&lt;BR /&gt;3. the new homedir is the same 755&lt;BR /&gt;&lt;BR /&gt;If it is true that no matter what the umask is, it won't change the home directory's permission.&lt;BR /&gt;&lt;BR /&gt;Now my question is :&lt;BR /&gt;&lt;BR /&gt;Can I change this defaul setting to make the new created homedir 750?&lt;BR /&gt;&lt;BR /&gt;Tx, Crystal&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 18:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739395#M946636</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2002-06-06T18:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739396#M946637</link>
      <description>what is the output of 'umask' ?&lt;BR /&gt;&lt;BR /&gt;Did you try creating with sam ? are you getting the same result there ?</description>
      <pubDate>Thu, 06 Jun 2002 18:46:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739396#M946637</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-06T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739397#M946638</link>
      <description>Nothing wrong with your umask setting. I'm not sure but I think the "useradd" command has it's umask hardcoded as 755, that's why no matter what umask you set, it'll not work at the home dir level. Either you don;t use "useradd" or manually change the home dir permission afterwards.</description>
      <pubDate>Thu, 06 Jun 2002 18:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739397#M946638</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-06T18:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739398#M946639</link>
      <description>Again, I suspect you have another umask set in the local profile ($HOME/.profile). This will overwrite the /etc/profile 'umask' value. Confirm this with command:&lt;BR /&gt;&lt;BR /&gt;# umask ( display current umask)&lt;BR /&gt;&lt;BR /&gt;During my test, the HOME directory was created depend on the umask. So I believe the same.&lt;BR /&gt;&lt;BR /&gt;Setting permission to $HOME directories is up on your wish. But if you share the same HOME directory with another user/group, then set the permission accordingly. To change permission:&lt;BR /&gt;&lt;BR /&gt;# chmod&lt;BR /&gt;# chown</description>
      <pubDate>Thu, 06 Jun 2002 18:50:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739398#M946639</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-06T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739399#M946640</link>
      <description>I think useradd has a hardcoded 755. &lt;BR /&gt;&lt;BR /&gt;You have to be careful using useradd because it also does a "chown -R" to change the ownership of the files in the home directory. &lt;BR /&gt;&lt;BR /&gt;I had an SA who set up a pseudo root account with / as his home directory. All the files on the system were subsequently owned by him. This was a pop3 mail server. Mail delivery was broken until I restored the files to their proper owners.&lt;BR /&gt;&lt;BR /&gt;Marty&lt;BR /&gt;&lt;BR /&gt;P.S. The SA now has a nickname of "chown boy".&lt;BR /&gt;:-)</description>
      <pubDate>Thu, 06 Jun 2002 19:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739399#M946640</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-06T19:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739400#M946641</link>
      <description>Again, tested the same with 'useradd' command and found the HOME directory permission is 755, even if the umask is set to 027. So I think 'useradd' keeps the permission always as 755, but SAM takes input from 'umask' value.</description>
      <pubDate>Thu, 06 Jun 2002 19:35:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739400#M946641</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-06T19:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739401#M946642</link>
      <description>Have you viewed the SAM log to see what qualifiers it is using to add a user?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 06 Jun 2002 19:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739401#M946642</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-06T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739402#M946643</link>
      <description>Martin:&lt;BR /&gt;&lt;BR /&gt;I think the last question was for me. Yes, I checked it during that time and found SAM uses this command/script for adding user, create home directory, copy files from /etc/skel etc:&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/upusrfiles</description>
      <pubDate>Thu, 06 Jun 2002 19:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739402#M946643</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-06-06T19:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739403#M946644</link>
      <description>yes Shiju, the question was directed at you. I was just wondering if you could find out how SAM uses the umask values. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After the "chown boy" incident, we have frowned upon using useradd and use SAM to create new users. The only problem we have with SAM is creating accounts with duplicate UIDs.&lt;BR /&gt;&lt;BR /&gt;We use duplicate UIDs (including the use of UID 0 - pseudo root) for auditing purposes. It is not recommended by HP, but auditing wants accountability. What auditing wants, auditing gets.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Thu, 06 Jun 2002 20:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739403#M946644</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-06T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739404#M946645</link>
      <description>Guys,&lt;BR /&gt;&lt;BR /&gt;This is really intresting. &lt;BR /&gt;&lt;BR /&gt;Martin:  I had same problem with you. &lt;BR /&gt;&lt;BR /&gt;Why I raised the issue here is because I used the SAM to create a new id which is exactly the same as another account "ftp". After I created the account, I got a problem. The new account took over the "ftp" account, which means "ftp" was replaced by the new account name. This was not what I expected. Others cannot use "ftp" login name at that moment....&lt;BR /&gt;&lt;BR /&gt;I did some investigation and found that if I ran the command useradd with the option -o, I could get the problem fixed. Tow duplicate accounts can exist on the system. So,I ran it. Unfortunately, I got a new problem, because the ftp account is required to have 555 permission for its home directory. When I checked the permission of ftp homedir, it was changed to 755. "ftp" couldn't be used again. &lt;BR /&gt;&lt;BR /&gt;Guess what? The problem mentioned above happened on a trusted machine. When I tested it on an untrusted machine, the ftp home directory permission wasn't changed and the ftp account could be used.&lt;BR /&gt;&lt;BR /&gt;I was thinking that was because of umask setting. Actually, it is not related...&lt;BR /&gt;&lt;BR /&gt;It really made me confused...</description>
      <pubDate>Fri, 07 Jun 2002 01:16:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739404#M946645</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2002-06-07T01:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739405#M946646</link>
      <description>The solution is to customize sam's add user routines.&lt;BR /&gt;&lt;BR /&gt;"man sam"  should tell you how.&lt;BR /&gt;&lt;BR /&gt;I can't remember the exact procedures. I set it up years ago.&lt;BR /&gt;&lt;BR /&gt;Generally. I have a file called /etc/sam/custom.tasks&lt;BR /&gt;&lt;BR /&gt;It has one line:&lt;BR /&gt;UG_ADD_USER POST /etc/sam/doprofile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/etc/sam/doprofile is my profile customization script.  &lt;BR /&gt;If you need more help email me  and I will give you samples and procedures.&lt;BR /&gt;&lt;BR /&gt;Rory</description>
      <pubDate>Fri, 07 Jun 2002 14:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739405#M946646</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2002-06-07T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739406#M946647</link>
      <description>When using duplicate UIDs, I use SAM to set up the account with a unique UID, then I edit /etc/passwd to change the UID to the duplicate, followed by using chown to change the ownership of the newly created home directory.&lt;BR /&gt;&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 07 Jun 2002 15:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739406#M946647</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-07T15:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739407#M946648</link>
      <description>Just FYI,&lt;BR /&gt;   In our shop we recognized that using NFS to cross-mount filesystems would raise huge issues if we didn't enforce uniqueue UID NOs. &lt;BR /&gt;   I built a script that nightly gathers every NIS server's /etc/passwd file and those of a few critical servers that don't use NIS.     The script massages the aggregate password files and produces a UID.REGISTER file. Errors are emailed to the root recipients of each platform that identify UID collisions and handle(ie loginname) collisions. &lt;BR /&gt;    We add users to each platform manually by assigning the next UID available by vi'g the UID.REGISTER file and entering the placeholder which "reserves" the new UID. Then we simply create the user's /etc/passwd entry, add the user to any groups (except their default group), make their IAP(home account), setting the permissions and ownerships and finally set the user's initial password.&lt;BR /&gt;    We have a similar need to control our GIDs but this is an issue we haven't tackled yet</description>
      <pubDate>Fri, 07 Jun 2002 16:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739407#M946648</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2002-06-07T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: homedir permission</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739408#M946649</link>
      <description>Crystal,&lt;BR /&gt;&lt;BR /&gt;How about a little encouragement? Assign some points!&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;Marty</description>
      <pubDate>Fri, 07 Jun 2002 18:06:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/homedir-permission/m-p/2739408#M946649</guid>
      <dc:creator>Martin Johnson</dc:creator>
      <dc:date>2002-06-07T18:06:17Z</dc:date>
    </item>
  </channel>
</rss>

