<?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: User unable to write to file created by root in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872873#M773609</link>
    <description>No, the directory is still under root. I'll change it to operator ownership to see if it works.</description>
    <pubDate>Sun, 01 Oct 2006 22:50:49 GMT</pubDate>
    <dc:creator>Joshua Goi</dc:creator>
    <dc:date>2006-10-01T22:50:49Z</dc:date>
    <item>
      <title>User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872871#M773607</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a file created by root and I need to be able to write to that file by other users, for example, operator. So I chown-ed the file to operator:None and chmod-ed to 777. And still I can't write to it as operator. Am I missing something here?</description>
      <pubDate>Sun, 01 Oct 2006 22:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872871#M773607</guid>
      <dc:creator>Joshua Goi</dc:creator>
      <dc:date>2006-10-01T22:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872872#M773608</link>
      <description>What directory is the file in?  Does the operator have permissions on the directory?</description>
      <pubDate>Sun, 01 Oct 2006 22:42:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872872#M773608</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-10-01T22:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872873#M773609</link>
      <description>No, the directory is still under root. I'll change it to operator ownership to see if it works.</description>
      <pubDate>Sun, 01 Oct 2006 22:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872873#M773609</guid>
      <dc:creator>Joshua Goi</dc:creator>
      <dc:date>2006-10-01T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872874#M773610</link>
      <description>Nope, changing the ownership and access rights of the directory doesn't help either...</description>
      <pubDate>Mon, 02 Oct 2006 01:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872874#M773610</guid>
      <dc:creator>Joshua Goi</dc:creator>
      <dc:date>2006-10-02T01:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872875#M773611</link>
      <description>Joshua,&lt;BR /&gt;are you sure about your group of 'None'.&lt;BR /&gt;But this should not matter.&lt;BR /&gt;&lt;BR /&gt;Starting at the beginning of your path create dummy files until you are not allowed to do so.&lt;BR /&gt;&lt;BR /&gt;For Example:&lt;BR /&gt;/var/adm/logs/data.txt is your real file&lt;BR /&gt;touch /var/data.txt&lt;BR /&gt;touch /var/adm/data.txt&lt;BR /&gt;touch /var/adm/logs/data.txt&lt;BR /&gt;Please ensure you use an unused filename, otherwise you may overwrite. One of the touch statements will fail, which will give you the directory you need to chmod.&lt;BR /&gt;&lt;BR /&gt;Just out of interest, please give exact error message.</description>
      <pubDate>Mon, 02 Oct 2006 02:29:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872875#M773611</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-02T02:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872876#M773612</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;Yes, the group is None.&lt;BR /&gt;&lt;BR /&gt;The error message is from an external program that runs in the HP-UN environment.&lt;BR /&gt;&lt;BR /&gt;The directory is one level only and it has been changed chown-ed and chmod-ed already. It still doesn't allow me to write even it's 777 and operator:None.. sigh</description>
      <pubDate>Mon, 02 Oct 2006 02:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872876#M773612</guid>
      <dc:creator>Joshua Goi</dc:creator>
      <dc:date>2006-10-02T02:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872877#M773613</link>
      <description>Maybe another process is holding an exclusive lock on the file?&lt;BR /&gt;What does e.g.&lt;BR /&gt;/usr/sbin/fuser /path/to/unwritable_file&lt;BR /&gt;display?&lt;BR /&gt;But I am not sure, as I think that the common locking mechanism on Unix is merely "advisory",&lt;BR /&gt;(and if you writing attempt doesn't use the fcntl() syscall I think what I said is nonsense).&lt;BR /&gt;Or, is the file residing on an NFS mount? &lt;BR /&gt;Or, is your OS Linux?&lt;BR /&gt;There the owner has (at least for files on ext[23]fs, I think) can set additional attributes with chattr to make a file unchangable with the common OS file tools.&lt;BR /&gt;Execute an lsattr on the file to see the details.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 02:40:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872877#M773613</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2006-10-02T02:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872878#M773614</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;'The error message is from an external program ...' - is the program writing to the file or do you write with - for ex. - vi-editor?&lt;BR /&gt;&lt;BR /&gt;Volkmar&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 03:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872878#M773614</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2006-10-02T03:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872879#M773615</link>
      <description>Please do NOT change files and directories to 777 to solve 'permission denied' issues. It is the single most common sysadmin error reported by security auditors. 777 makes the file executable which can cause all sorts of problems, and also makes the file available to be DESTROYED by anyone in the system. The permission settings are there to prevent such destruction.&lt;BR /&gt; &lt;BR /&gt;root should NOT be creating files for users. A normal user should create the file with umask set to 002 or 007. For 002, your file will be created with 664 (read/write by owner and group, read by anyone else) or 660 (read/write by owner and group, no one else can look at the file. The user may need to change the group ownership if the user's default is not the desired group&lt;BR /&gt; &lt;BR /&gt;Now group=none is strange. I would start by creating a specific group based on the use of these files, perhaps acctg or finance or project1, whatever. Then add the various users to that group. To be sure that users have the right settings, login as the user and type the command: id  That will report on the user ID and all group IDs. &lt;BR /&gt; &lt;BR /&gt;Now as to a location, / (the root dirfectory) is the WORST possible location. This directory is critical to operation of the systemj and if you have a 777 file, then anyone can dump whatever they want into that file, fill the / filesystem and disable almost everything. And IMMEDIATELY change / back to 755 with owner root:root. If you don't you're going to have a number of insidious errors start occuring with system admin commands.&lt;BR /&gt; &lt;BR /&gt;The correct location for data files would be either /var/tmp (perhaps a directory called /var/tmp/datafiles) or an application directory in /opt. The permission for the datafiles directory would be 775 with owner and group set appropriately. I would NOT use a user ID called operator except possibly for some backup administrator tasks. Every user has their own login for accountability and you add groups as needed for each user.</description>
      <pubDate>Mon, 02 Oct 2006 09:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872879#M773615</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-10-02T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872880#M773616</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try getacl(1) to see if some restricted access have been set.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;JPH</description>
      <pubDate>Mon, 02 Oct 2006 19:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872880#M773616</guid>
      <dc:creator>Jean-Philippe HENRY_1</dc:creator>
      <dc:date>2006-10-02T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: User unable to write to file created by root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872881#M773617</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the best would be, to answer Patricks question first - send us the output of&lt;BR /&gt;&lt;BR /&gt;ls -ld /path/to/dir /path/to/dir/file&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 03 Oct 2006 08:17:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-unable-to-write-to-file-created-by-root/m-p/3872881#M773617</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-10-03T08:17:05Z</dc:date>
    </item>
  </channel>
</rss>

