<?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: touch command is not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314441#M339864</link>
    <description>&amp;gt;Dennis: Not hardly. It refers to permission problems changing the time to "now".&lt;BR /&gt;&lt;BR /&gt;ok Anjaneyulu, that means for your question:&lt;BR /&gt;&amp;gt;$ touch a&lt;BR /&gt;&amp;gt;touch: cannot change times on a&lt;BR /&gt;&lt;BR /&gt;The file 'a' exists, but you don't have write permissions to this file.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
    <pubDate>Fri, 28 Nov 2008 08:28:12 GMT</pubDate>
    <dc:creator>V. Nyga</dc:creator>
    <dc:date>2008-11-28T08:28:12Z</dc:date>
    <item>
      <title>touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314429#M339852</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;When I create files the touch command is not working It is showing error &lt;BR /&gt;&lt;BR /&gt;$ touch aa a2&lt;BR /&gt;touch: aa cannot create&lt;BR /&gt;touch: a2 cannot create</description>
      <pubDate>Thu, 27 Nov 2008 13:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314429#M339852</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2008-11-27T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314430#M339853</link>
      <description>Hey;&lt;BR /&gt;&lt;BR /&gt;The filesystem in which you're trying to create these files is read only for whatever reason.  That's the issue you need to troubleshoot.&lt;BR /&gt;&lt;BR /&gt;For instance:&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;touch aa a2&lt;BR /&gt;&lt;BR /&gt;will work.&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug O'Leary</description>
      <pubDate>Thu, 27 Nov 2008 13:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314430#M339853</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2008-11-27T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314431#M339854</link>
      <description>Hi Anjaneyulu,&lt;BR /&gt;&lt;BR /&gt;The directory in which you are trying to touch the files does not have write permission for the user you logged in.&lt;BR /&gt;&lt;BR /&gt;Simply go to the users home directory and touch it. it will work.</description>
      <pubDate>Thu, 27 Nov 2008 13:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314431#M339854</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-27T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314432#M339855</link>
      <description>yes.&lt;BR /&gt;&lt;BR /&gt;It's working fine in the /tmp. why? I logged in my userid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want to know one more I create one more user.&lt;BR /&gt;&lt;BR /&gt;There Iam trying to create a file with touch. then it shows error like.&lt;BR /&gt;&lt;BR /&gt;$ touch a&lt;BR /&gt;touch: cannot change times on a&lt;BR /&gt;&lt;BR /&gt;why these are showing these errors? Can you explain about both.</description>
      <pubDate>Thu, 27 Nov 2008 13:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314432#M339855</guid>
      <dc:creator>Anjaneyulu</dc:creator>
      <dc:date>2008-11-27T13:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314433#M339856</link>
      <description>Hi Anjaneyulu,&lt;BR /&gt;&lt;BR /&gt;You need to provide much details to help you better.&lt;BR /&gt;&lt;BR /&gt;How did you created new user? SAM or command line?&lt;BR /&gt;&lt;BR /&gt;if it is command line, you need to create home directory for that user manually and change the ownership to that user.&lt;BR /&gt;&lt;BR /&gt;just provide "id" output for that user and "ll -d &lt;HOME dir="" of="" that="" user=""&gt;" outputs.&lt;BR /&gt;&lt;BR /&gt;It is a permission issue only.&lt;/HOME&gt;</description>
      <pubDate>Thu, 27 Nov 2008 13:59:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314433#M339856</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2008-11-27T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314434#M339857</link>
      <description>&lt;BR /&gt; Dear Anjaneyulu,&lt;BR /&gt; &lt;BR /&gt;   I thing the exact problem is in user writes or file system problem,which it's readable file system.&lt;BR /&gt;that time you are not able to create the file.&lt;BR /&gt;&lt;BR /&gt;not in /tmp,where ever you want it will create above mentioned things are changed.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Unixguy.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314434#M339857</guid>
      <dc:creator>unixguy_1</dc:creator>
      <dc:date>2008-11-27T14:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314435#M339858</link>
      <description>1. Go into the directory where you are trying to create the files. Type:&lt;BR /&gt;&lt;BR /&gt;cd ..&lt;BR /&gt;ll -d dirname (where dirname is the name of the directory).&lt;BR /&gt;&lt;BR /&gt;Does the user have write permission to the directory?&lt;BR /&gt;&lt;BR /&gt;2. Go back into the directory ( cd - ) and type:&lt;BR /&gt;&lt;BR /&gt;ll aa&lt;BR /&gt;ll a2&lt;BR /&gt;&lt;BR /&gt;Do the files already exist? If so, does the user have write permissions to them?&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 27 Nov 2008 14:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314435#M339858</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2008-11-27T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314436#M339859</link>
      <description>Sorry, but are there no UX books in india?&lt;BR /&gt;&lt;BR /&gt;whoami -&amp;gt; gives your user name&lt;BR /&gt;groups -&amp;gt; gives your group(s)&lt;BR /&gt;pwd -&amp;gt; gives your actual directory&lt;BR /&gt;ls -ld &lt;YOUR_ACTUAL_DIRECTORY&gt; -&amp;gt; shows permissions, owner and group of your actual directory.&lt;BR /&gt;&lt;BR /&gt;Permissions: drwxrwx--- says:&lt;BR /&gt;d - its a directory&lt;BR /&gt;first rwx - r(ead)w(rite)(e)x(ecute) permissions for the owner&lt;BR /&gt;second rwx - same for the group&lt;BR /&gt;third rwx (or here ---) permissions for the 'wourld' (i.e. anybody else) here: no permissions&lt;BR /&gt;&lt;BR /&gt;So if you don't have 'w' you can't 'touch' a file.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Volkmar&lt;BR /&gt;&lt;/YOUR_ACTUAL_DIRECTORY&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:21:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314436#M339859</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-11-27T14:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314437#M339860</link>
      <description>... so if you're not owner and/or in the same group like the owner, you need the permissions of world to create/change/delete a file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;touch: cannot change times on a&lt;BR /&gt;&lt;BR /&gt;Maybe there's no time zone defined for the user?&lt;BR /&gt;&lt;BR /&gt;What hardware/os are you testing?&lt;BR /&gt;&lt;BR /&gt;V.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Nov 2008 14:34:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314437#M339860</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-11-27T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314438#M339861</link>
      <description>This is normal. As mentioned above, you CANNOT touch a file (either create or change timestamps) unless the directory (NOT the file) allow you to write (which means change) the directory. touch works just fine in /tmp because the permissions for /tmp are 777 or rwxrwxrwx (use the command: ls -ld /tmp). &lt;BR /&gt; &lt;BR /&gt;HP-UX (and Unix in general) have 3 categories for ownership (and therefore permissions). The owner, members of a group, and all others. Every file has 2 separate permission controls, one for the content of the file, and one for the content of the directory. File permissions control the data inside the file (read, write), and directory permissions control the existence (touch, rm, mv) of the file.&lt;BR /&gt; &lt;BR /&gt;So if you are an ordinary user (not root) then you cannot touch or create or remove a file in the /etc directory because your user ID has no write permissions in that directory.</description>
      <pubDate>Thu, 27 Nov 2008 15:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314438#M339861</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-11-27T15:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314439#M339862</link>
      <description>&amp;gt;Bill: you CANNOT touch a file (either create or change timestamps) unless the directory (NOT the file) allow you to write (which means change) the directory.&lt;BR /&gt;&lt;BR /&gt;This is partially incorrect.  You can change the timestamp on the file if you have write permission on the file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Mark: cd ..&lt;BR /&gt;&amp;gt;ll -d dirname&lt;BR /&gt;&amp;gt;2. Go back into the directory&lt;BR /&gt;&lt;BR /&gt;No need to do cd twice.  Simply:&lt;BR /&gt;ll -d .&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Volkmar: whoami -&amp;gt; gives your user name&lt;BR /&gt;&lt;BR /&gt;id(1) also gives you your user and group IDs.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Maybe there's no time zone defined for the user?&lt;BR /&gt;&lt;BR /&gt;Not hardly.  It refers to permission problems changing the time to "now".</description>
      <pubDate>Thu, 27 Nov 2008 20:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314439#M339862</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-27T20:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314440#M339863</link>
      <description>The problem is with the file / directory permissions. First thing to check would be whether write permission is available for the user who is logged in.&lt;BR /&gt;&lt;BR /&gt;It should be "drwx", if "w" is missing you cannot create / modify anything in that directory. If you are sure to have user have write permissions use the chown command. Refer the manpage at:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B3921-90010/chown.1.html" target="_blank"&gt;http://docs.hp.com/en/B3921-90010/chown.1.html&lt;/A&gt;</description>
      <pubDate>Thu, 27 Nov 2008 22:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314440#M339863</guid>
      <dc:creator>~sesh</dc:creator>
      <dc:date>2008-11-27T22:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314441#M339864</link>
      <description>&amp;gt;Dennis: Not hardly. It refers to permission problems changing the time to "now".&lt;BR /&gt;&lt;BR /&gt;ok Anjaneyulu, that means for your question:&lt;BR /&gt;&amp;gt;$ touch a&lt;BR /&gt;&amp;gt;touch: cannot change times on a&lt;BR /&gt;&lt;BR /&gt;The file 'a' exists, but you don't have write permissions to this file.&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2008 08:28:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314441#M339864</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-11-28T08:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314442#M339865</link>
      <description>&amp;gt;Volkmar: The file 'a' exists, but you don't have write permissions to this file.&lt;BR /&gt;&lt;BR /&gt;Didn't Mark and I say that?  :-)</description>
      <pubDate>Fri, 28 Nov 2008 08:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314442#M339865</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-28T08:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: touch command is not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314443#M339866</link>
      <description>&amp;gt;Dennis: Ah nooo, Mark and you didn't say that the file 'a' have to exists to get this message ....  :-)&lt;BR /&gt;&lt;BR /&gt;Maybe it was quite obvious for you?&lt;BR /&gt;For me it was new so I had to test it :-)&lt;BR /&gt;&lt;BR /&gt;V.</description>
      <pubDate>Fri, 28 Nov 2008 09:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/touch-command-is-not-working/m-p/4314443#M339866</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2008-11-28T09:39:04Z</dc:date>
    </item>
  </channel>
</rss>

