<?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: default perms on .* startup files when creating a new user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136361#M154135</link>
    <description>Thanks All for the quick responses - that clarifies it for me now.&lt;BR /&gt;&lt;BR /&gt;Vanja</description>
    <pubDate>Thu, 04 Dec 2003 12:11:38 GMT</pubDate>
    <dc:creator>Vanja</dc:creator>
    <dc:date>2003-12-04T12:11:38Z</dc:date>
    <item>
      <title>default perms on .* startup files when creating a new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136357#M154131</link>
      <description>Hello all - this question pertains HPUX 11.0&lt;BR /&gt;&lt;BR /&gt;Is there a way to set a default permission on .profile, .login and other startup files in a user's home directory when creating a new user with sam. The permissions on these files don't seem to correspond to /etc/skel permissions for these files when I create a new user.&lt;BR /&gt;&lt;BR /&gt;Example: setting on .profile in /etc/skell is 440 and when I create a new user using sam the permissions in home directory for user are 644 for .profile.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;Vanja</description>
      <pubDate>Thu, 04 Dec 2003 11:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136357#M154131</guid>
      <dc:creator>Vanja</dc:creator>
      <dc:date>2003-12-04T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: default perms on .* startup files when creating a new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136358#M154132</link>
      <description>You set the permissions on the files in /etc/skel&lt;BR /&gt;&lt;BR /&gt;That sets the default permissions on the files when a user is created using /etc/skel. Since thats not doing it, set the umask in the script that creates the user.  That should do the job.&lt;BR /&gt;&lt;BR /&gt;As a practical matter, our user add script sets the permissions and then displays them so that the oeprator knows what was done.&lt;BR /&gt;&lt;BR /&gt;The .profile and other files merely need to be readable by the user. They don't need execute permissions because they are not executed. They don't need to be owned by the user either.&lt;BR /&gt;&lt;BR /&gt;For many of my users I don't let them edit their profiles, because they do things that create security problems.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Dec 2003 11:56:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136358#M154132</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-12-04T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: default perms on .* startup files when creating a new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136359#M154133</link>
      <description>Vanja,&lt;BR /&gt;&lt;BR /&gt;You can add a script to run after SAM finishes adding the user.  Go into SAM &amp;gt; Users and Groups &amp;gt; Users, then select Actions &amp;gt; Task Customization and enter the full path name of the script you want to have executed.  The Help section will explain how you can pass parameters to the script and such.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 04 Dec 2003 11:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136359#M154133</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-12-04T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: default perms on .* startup files when creating a new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136360#M154134</link>
      <description>Hi Vanja,&lt;BR /&gt;&lt;BR /&gt;most useful info was provided by Steven and Peter.&lt;BR /&gt;Anyway if you would like to create an user (and of course his/her home directory) bypassing SAM:&lt;BR /&gt;&lt;BR /&gt;# useradd -mk /etc/skel &lt;USER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;This command will create a user's home directory with same permissions of /etc/skel/.profile and other files under it.&lt;BR /&gt;&lt;BR /&gt;Just a thought...&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Ettore&lt;BR /&gt;&lt;/USER_NAME&gt;</description>
      <pubDate>Thu, 04 Dec 2003 12:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136360#M154134</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2003-12-04T12:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: default perms on .* startup files when creating a new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136361#M154135</link>
      <description>Thanks All for the quick responses - that clarifies it for me now.&lt;BR /&gt;&lt;BR /&gt;Vanja</description>
      <pubDate>Thu, 04 Dec 2003 12:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/default-perms-on-startup-files-when-creating-a-new-user/m-p/3136361#M154135</guid>
      <dc:creator>Vanja</dc:creator>
      <dc:date>2003-12-04T12:11:38Z</dc:date>
    </item>
  </channel>
</rss>

