<?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: set alias in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918888#M285628</link>
    <description>Hy&lt;BR /&gt;&lt;BR /&gt;You can add this to /etc/profile then every user has this.&lt;BR /&gt;&lt;BR /&gt;or you can make a file called .alias and put the aliases in this file. now you can source this file to the profile of the users&lt;BR /&gt;&lt;BR /&gt;source:&lt;BR /&gt;&lt;BR /&gt;. /path_to/.alias&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Fri, 29 Dec 2006 03:46:47 GMT</pubDate>
    <dc:creator>Oviwan</dc:creator>
    <dc:date>2006-12-29T03:46:47Z</dc:date>
    <item>
      <title>set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918887#M285627</link>
      <description>If I want a group of user  has the same alias setting , can advise what can i do ?&lt;BR /&gt;&lt;BR /&gt;alias cp='cp -i'&lt;BR /&gt;alias mv='mv -i -r'&lt;BR /&gt;alias rm='rm -i -f '&lt;BR /&gt;alias vi='vim'&lt;BR /&gt;alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-ti&lt;BR /&gt;lde'</description>
      <pubDate>Fri, 29 Dec 2006 03:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918887#M285627</guid>
      <dc:creator>hangyu</dc:creator>
      <dc:date>2006-12-29T03:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918888#M285628</link>
      <description>Hy&lt;BR /&gt;&lt;BR /&gt;You can add this to /etc/profile then every user has this.&lt;BR /&gt;&lt;BR /&gt;or you can make a file called .alias and put the aliases in this file. now you can source this file to the profile of the users&lt;BR /&gt;&lt;BR /&gt;source:&lt;BR /&gt;&lt;BR /&gt;. /path_to/.alias&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 29 Dec 2006 03:46:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918888#M285628</guid>
      <dc:creator>Oviwan</dc:creator>
      <dc:date>2006-12-29T03:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918889#M285629</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For already existing users add alias settings into&lt;BR /&gt;users .profile&lt;BR /&gt;&lt;BR /&gt;for new users copy /etc/skel dir to say /etc/skel_new&lt;BR /&gt;&lt;BR /&gt;# cp -Rp /etc/skel /etc/skel_new&lt;BR /&gt;&lt;BR /&gt;then add required alias into /etc/skel_new/.profile&lt;BR /&gt;&lt;BR /&gt;while adding user use -mk /etc/skel_new&lt;BR /&gt;&lt;BR /&gt;for eg.&lt;BR /&gt;&lt;BR /&gt;# useradd -u &lt;UID&gt; -g &lt;GROUP&gt; -mk /etc/skel_new &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;this newly created user will have all the&lt;BR /&gt;aliases into his .profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;/USERNAME&gt;&lt;/GROUP&gt;&lt;/UID&gt;</description>
      <pubDate>Fri, 29 Dec 2006 03:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918889#M285629</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2006-12-29T03:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918890#M285630</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;/etc/profile would be the most appropriate place to put them.&lt;BR /&gt;&lt;BR /&gt;But, to avoid that to be too messy, refrain from defining too many aliases as it will affect all the users who log on the system.&lt;BR /&gt;&lt;BR /&gt;Another option is to have a common home directory for that particular group of users and add these aliases to the .profile file.&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 29 Dec 2006 05:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918890#M285630</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-12-29T05:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918891#M285631</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;1) Create a new group for users who will have these aliases: 'groupadd aliasgp'.&lt;BR /&gt;2) Assign users to this group.&lt;BR /&gt;3) Insert a check into /etc/profile:&lt;BR /&gt;if [[ "$(id -gn)x" = "aliasgpx" ]]; then ...&lt;BR /&gt;4) Place your aliases after this check.&lt;BR /&gt;5) Terminate the conditional block with 'fi'.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 29 Dec 2006 08:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918891#M285631</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-12-29T08:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: set alias</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918892#M285632</link>
      <description>In my previous example, if you do not wish to make "aliasgp" the users' primary group, change the if-statement to:&lt;BR /&gt;&lt;BR /&gt;if $(id -Gn | grep -q 'aliasgp');&lt;BR /&gt;then&lt;BR /&gt;...&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 29 Dec 2006 12:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/set-alias/m-p/3918892#M285632</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-12-29T12:16:54Z</dc:date>
    </item>
  </channel>
</rss>

