/dev/null file permission changes frequently

Hi,
We are experiencing file permission change issue frequently for the
following files:
root@domain5 # ls -l /devices/pseudo/mm@0:null
crw-rw-rw- 1 root sys 13, 2 Apr 22 2009
/devices/pseudo/mm@0:null
root@domain5 # ls -l /dev/null
crw-rw-rw- 1 root sys 13, 2 Oct 25 07:01 /dev/null
By default, above is the file permission settings. If the file permission
changes, it will look like as below:
root@domain5 # ls -l /devices/pseudo/mm@0:null
cr--r--r-- 1 root sys 13, 2 Apr 22 2009
/devices/pseudo/mm@0:null
root@domain5 # ls -l /dev/null
cr--r--r-- 1 root sys 13, 2 Oct 25 07:01 /dev/null
Due to this file permission change the script which uses this file loose
the write permission and the script fails. To fix this issue, we will be
manually changing the permission. Can you please help me to know the cause for
this file permission change.
Thanks,
Ram.

You need to correlate any changes on the system to when you have the problem, or see the date on /dev/null change. Software packages can change this, applications can change this, sometimes even patch installs.
Even certain administrative practices.
Here's one example, where touching a vendor software-created printer config with native Solaris admintool would change /dev/null permissions
http://www.rootunix.org/SOLARIS/printFAQ.txt
10) ONLY ROOT CAN SEND PRINT JOBS:
This problem is caused by network spooling software that for a
network printer that uses /dev/null for the printer device. The
software monitors the queue and spools the print requests over the
network to the printer. If the printer setup is modified in any
way with Admintool, the printer device (/dev/null) permissions will
change to 600 owner lp.

Similar Messages

  • /dev/null : no permission

    I wanted to color my prompt output yesterday using the templates from the wiki page https://wiki.archlinux.org/index.php/Color_Bash_Prompt
    After copy the content into my /etc/bash.bashrc and creating the DIR_COLORS file I rebooted
    When I logged in I got the message "/dev/null : no permission" the prompt was just like before
    I checked the rights of /dev/null and it is set to root 640, so no rights for me as a "normal" user
    I did "grep null /lib/udev/rules.d/* but no rule is treating "null"
    Following the workaround from this forum post https://bbs.archlinux.org/viewtopic.php?id=142816 I added
    SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"
    to 50-udev-default.rules
    Nevertheless the error message remains. Instead I experienced even more non related problems. (i3bar disappeared, error messages related with nectl...)
    So I removed the line but am still stucked to the problem about permissions for /dev/null

    This is why you should use your own bashrc instead of the system wide one. 
    When I was in elementary school, I remember one time getting a "test" in which the last instruction was simply to do nothing on the test.  It was to reinforce the teacher's repeated instructions to always read through the page first before diving into answering the questions.  I think that the same applies for the wiki.  You should read through what the page has to offer you and then start following the directions after you have a grasp of what you are doing and trying to accomplish.
    In this case, I think all those fancy prompts in the first part of the article should really be on the bottom.  The page should lead with the step-by-step section that starts a ways down the page.
    I have no idea what is in that config you tried to implement, or when it was written. Nor am I going to try to scan through and fix up what is there.  If you don't know what you are doing, then you should not edit the global config.  If you break the /etc/bash.bashrc file, you not only break bash for your own user, but also every other user on the system including root.

  • Can you please advice on RAW device file permission change to crw-r-----

    Currently we have Oracle9i (9.2.0.5) RAC on IBM AIX 5.2 system with 2 node cluster.
    We use the RAW device for Oracle data file default file permission for raw device is crw-rw---- can we change to crw-r-----(remove write permission from group).
    Can you please advice.
    Thanks & Regards

    Hi,
    What is your intention behind this? If protection, there can ve other ways possible.
    Regards,
    Ankit

  • Listen to File Permission Change

    I want to listen to any change in permissions (specifically whether a file is read only or not) of certain text files from within my program. How do I do it?
    Basically, I want to get notifications when an relevant file's read-only attribute toggles. This is to implement a feature where editing of a document is disabled if the document is read-only. The editor should detect the change in this property and allow editing when appropriate. This feature is implemented in several Java IDEs like Eclipse, IntelliJ etc.
    Please provide sample code.
    Thanks,
    Krishna

    This isn't directly possible in a pure Java implementation.
    However, you can implement it quite easily yourself......
    Have a Timer task (or similar) that you schedule to run at whatever frequency is suitable for your use, and have it inspect the files that you have registered interest in (check out the File 'canRead' and 'canWrite' methods).
    Its then quite easy to set up a notification based system:
    * Something capable of monitoring files for changes to their permissions and of notifying
    * registered listeners
    public interface FilePermissionsMonitor {
      void addPermissionsChangeListener(PermissionsChangeListener p, File target);
      void removePermissionsChangeListener(PermissionsChangeListener p);
      void removeListenersFor(File target);
    public interace PermissionsChangeListener {
      // could make this more swanky by introducing a PermissionsChangeEvent 'describing' the change.
      // e.g, it could provide the 'last known' previous permissions in addition to the target file.
      // For brevity, we'll just provide the target File here....
      void permissionsChanged(File target);
    * A FilePermissionsMonitor which uses a timer to periodically check for changes in permissions
    public class PeriodicMonitor implements FilePermissionsMonitor  {
        Implement this as described at the top of this post. I.e, schedule a TimerTask periodically
        which checks the permissions of all Files for which listeners are registered (you'll need to keep hold
        of the 'last known' permissions for each file you are interested in. Notify the relevant listeners when
        you find a change in permissions
    }

  • Monitoring file permission changes [ solved, kind of]

    I have a configuration file on my server for a program that runs on Windows desktops.  For some reason, the permissions on that file keep getting changed, and it isn't being done manually by anyone.  I'm not sure why this is happening, and it seems to happen at random intervals.
    Is there a way to monitor when the permissions on this file get changed?
    Last edited by timm (2009-04-03 19:47:00)

    http://fileschanged.sourceforge.net/
    fileschanged is a GNU/Linux command-line utility that reports when files have been altered.
    You'll need either fam or gamin installed to use this. I was gonna write a similar program myself. It'll most likely be better than having an infinitely look in a script or having crontab calling a script every second.

  • Monitoring File Permission Changes with dTrace?

    Hi,
    We have a file whose permissions are getting changed occasionally, and we're trying to determine which process is changing them.
    Can someone describe how to do this with dTrace?
    Thanks in advance!
    -Rocky
    Edited by: umuc-rocky on Mar 31, 2009 10:50 AM

    Try this clause for starters:
    syscall::chmod:entry
    printf("Calling program: %s\n", execname);
    printf("Target file: %s\n", fds[arg0].fi_name);
    }

  • Kernel Panic from system file permission changes

    A friend and i were trying to share some image files with each-other so we firewire connected our two macs... (both mac book pros mine a intel core on snow-leopard hers the latest is7 operating system -prob Lion) when the corresponding computer did not appear on our desktops I entered "sharing" console on my system prefs and attempted to allow her computer to see and read/write mine... I got a pop up prompt asking if i wished to share all my internal files and I said "yes"  Shortly thereafter a repeat prompt kept popping up on my computer saying something like ~"can't share system files" I pressed "ok" each time it appeared and after a few pop ups it all seemed ok...
    By now as a backup attempt to share my files i had plugged in my external (open permissions) hard-drive which at this point suddenly told me i am not allowed to read or write on it... I ejected it and since the whole system was still spinning and wanting to share permissions I force-quit the finder and selected "shut down" my system to start fresh but when attempting to restart finder I first a few moments later I got that - multilingual kernel panic prompt
    it won't start up - it won't boot from disc (at start i hold down option and insert operating disc) it wont start up (I've depressed shift after start and arrived at a spinning wheel that never ends... i'm also out of my warranty and hoping to solve this without paying for a new mac

    Unfortunately, the log files are full of scary-sounding messages. Unless you have some specific problem other than the logs, there is usually no need to worry about it. Sometimes, a problem may be reflected in the logs, but you can't start with the logs. You'll never finish.

  • /dev/null link destroyed. Need help

    I have Forms 6i applications deployed on the internet under Oracle 9iAS 1.0.2.2 on Solaris 2.9 64 bits OS.
    I am starting the 9iAS running the command "apachectl startssl" as 'root' because that's the only way I am able to grab port 443. However as soon as any output is redirected to /dev/null, the /dev/null link is broken and replaced by a /dev/null file writable to only by root.
    My question is what can I do to prevent that?

    Steve Walter (guest) wrote:
    : The "Deploying Applications on the WEB" docs are good for
    : release 2.1, but lack all detail in 6.0. Does anyone have a
    : guideline for building a forms cartridge in 6.0. I've
    followed
    : the 2.1 documentation, knowing it is a bit different, but I
    : still can't get it to work.
    : Thanks for any and all help.
    : Steve
    The error I recieve is Can not service this request, Please try
    again later
    null

  • Desktop permission changes

    I would like some help regarding permissions. In our office, each employee uses their own iMac and we are on a small Ethernet network. There are four iMacs and each is running Snow Leopard. I have configured it so that each iMac is sharing its desktop. In our office workflow, my co-workers and I intuitively share files by dropping them onto each other's desktops.No need to hunt in our drop boxes which are buried a few levels.
    ISSUE: When I put a file onto a co-worker's desktop, the file permission changes to 'nobody'. If they continue to work on the file and try to save it, they can't. So in order to continue working on a file they have to 'Get Info' first and change the permissions to 'Read & Write' for themselves. However, if I ask my co-worker to get the file from my desktop, the file's permissions are fine and they can open, modified, and save the file without a problem.
    QUESTION: Is there a way to configure our settings so that files can be put onto the desktop's of other co-workers without having to mess with the permissions each time? Why does it work one way (get) but not the other way (put)?

    You don't have permissions to modify an item you do not own.  When you copy a file to another account, it keeps your ownership and permissions, which means only you can write to it.  When another user copies your files, they own the copies, which lets them write to it (you might not have noticed, but you won't have permission to write to their copies, either).
    You can use ACL (Access Control List) entries to give additional permissions - each user's Drop Box folder is also set up this way.

  • HT1941 I have inadvertently changed a file permission setting. When opening Aperture I get the following; Aperture cannot access this library. To use this library make sure it's file permissions are set correctly. I am an old dude new to Mac OS. What up?

    I have inadvertently changed a file permission setting. When opening Aperture I get the following; "Aperture cannot access this library. To use this library make sure it's file permissions are set correctly". I am an old dude new to Mac OS. Looked in settings but have no idea how to allow file sharing to myself. I have been using Aperture actively for 6 weeks. I'm the only one using this Mac. What up?

    Back up all data now.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. You can demote it back to standard status when this step has been completed.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Drag or copy — do not type — the following line into the Terminal window, then press return:
    sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:20 ~ $_ ; chmod -R -N ~ $_ 2> /dev/null
    Be sure to select the whole line by triple-clicking anywhere in it. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning. If you don’t have a login password, you’ll need to set one before you can run the command.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select Utilities ▹ Terminal from the menu bar. A text window opens.
    In the Terminal window, type this:
    resetpassword
    That's one word with no spaces. Then press return. A Reset Password window opens. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select  ▹ Restart from the menu bar.

  • /dev/null changes result, why? ( How to know if svn repository exists )

    Hi,
    Because I am writing last few weeks some scripts for a project, I do want to put those under svn ( subversion ). As a scripting exercise I want to be able to create Repos and project folders in one go and add changes to the repo's svn conf files.
    I want to check if there is already an existing repository and if the name=passw line is already added to the passw db.
    I did use:
    svnlook youngest /Volumes/Development/_svnRepo/SSHToolNew 2>&1 | grep "No such file or directory" -c
    to check for the error message returned by svnlook
    svnlook: Can't open file '/Volumes/Development/_svnRepo/SSHToolNew/format': No such file or directory
    and want to continue doing my stuff when the result is bigger then 0, otherwise create the repo first with some options.
    With the following info
    /Volumes/Development/_svnRepo/SSHTools exists
    /Volumes/Development/_svnRepo/SSHToolNew doesn't exists
    using ( typed in the sh )
    svnlook youngest /Volumes/Development/_svnRepo/SSHToolNew 2>&1 | grep "No such file or directory" -c
    1
    echo "rv:" $?
    1
    gives as result 1 in the shell and when using echo "rv:" $?
    however
    svnlook youngest /Volumes/Development/_svnRepo/SSHToolNew 2>&1 | grep "No such file or directory" -c &> /dev/null
    echo "rv:" $?
    0
    gives 0 as result.
    And when the folder do exists it return the opposite!?
    Just to understands the happening. Why the difference with &> /dev/null ?
    What do I mis here?

    Hi Thanks you for your reply,
    I want that the result goes into a var so that I can compare it in an 'if' statement.
    If I leave & out then I get the following same result
    bash-3.2$ svnlook youngest /Volumes/Development/_svnRepo/SSHToolNew 2>&1 | grep "No such file or directory" -c > /dev/null
    bash-3.2$ echo "rv: "$?
    rv: 0
    It should be one ( 1 ) because the result count is one. Or am I wrong?
    So basicly, why is it changing the result? or is $? not the result of my line?
    What is the best way to check if f.e a command is failed like the one I use in an if statement? Can I move the result directly into a var, something like?
    bash-3.2$ svnlook youngest /Volumes/Development/_svnRepo/SSHToolNew 2>&1 | grep "No such file or directory" -c | MyVar=$? ( or whatever needed )
    Thanks again

  • Workflow to change file permission in SharePoint Online Document Library

    1.What are my options with SPD 2013 If I want to change a documents file permission in a workflow?
    2.Where does SPO host 2013 Workfows?
    3.If connecting to SPO Can I use Worklow Manager 1.0?
    4.Will I need to host my Workflow Manager workflows on server or Azure if running against o365/SPO?
    5.If I wish to create SPO 2013 workflows with Visual Studio 2012, what do I need and will I be limited to actions I see in SPD 2013?
    ============================
    Thank You
    cyberpine.com

    You can host this workflow as a SharePoint App in SharePoint Online or use SharePoint Designer to create this workflow as long as you use the app step. Managing the permissions can be done with a REST call.  The initiator of the workflow must have
    been granted the right to "Manage Permissions" and the app must have full control of the Site Collection.   We have done so for several of our clients.   I know you asked this question some time ago, but I thought the info might still be helpful.

  • Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enc

    Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enclosing folders." What on earth does it mean? How can I stop this message from appearing?

    See here:
    I cannot save recent images.

  • Changing oracle file permission with ftp / sql

    Hi, i have a question:
    I've configure webdav to browse my /i folder.
    I can use as well filezilla, connecting with hostname / uname: system / pass / myoraclesystem pass.
    Is there a way to change file permission attributes with ftp?
    Thank you

    Hi,
    Check out ORDSYS.ORDImage type from Oracle Intermedia, and especially its "process" method.
    It possesses various commands to change image properties.
    HTH.

  • [SOLVED] /dev/null: Permission Denied

    just tryin to run makechrootpkg, and was working fine 'till something happened recently.. now I get this:
    /usr/bin/makepkg: line 390: /dev/null: Permission denied
    ==> Retrieving Sources...
    /usr/bin/makepkg: line 461: /dev/null: Permission denied
    can anyone make sense of it? =/
    EDIT: nvm.. thankies #archlinux =P
    Last edited by Stythys (2010-06-05 17:33:33)

    I know it's solved, but I had the same issue today and fixed it like this:
    Add the following to the "mem" section in /usr/lib/udev/rules.d/50-udev-default.rules:
    SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666"

Maybe you are looking for

  • Access to SATA RAID-5 array without an MSI motherboard?

    I have (had) an MSI K8N Diamoond Plus motherboard, and used it to create a bootable SATA RAID-5 array of three 300Gb Western Digital disks.  Two years later, the motherboard developed a serious problem with the memory access, and now it won't POST be

  • How I work with MS-SQL function in oracle

    I'm working in oracle now but I don't know how can I use following function in oracle. convert, dateadd, datediff, fetch_status, isnumeric, reverse, str and stuff

  • Entering a blog into a flash web page

    I want to pull the first blog from a blog page into a flash web page. Anybody have an idea how I would go about this, or where to start?

  • Obtain XML info

    Hi, I have this XML <td> −<a href={code"/servlet/CRManManif?CMc1_Anno=2008&CMc1_Numero=1792&CG_cadu=118&viat=1&CMc1_Terminal=&TipM=mc"> <text>08 - 1792</text> </td> − <td align="center"> <text>01/08/2008</text> </td> − <td align="center"> <text>03/08

  • Icloud notes do not fully synchronize

    Hello, I synchronize my notes between my ipad3 and my Macbook pro running Mountain Lion. However today as I was making notes for a meeting (on my Macbook Pro), I went into the meeting (with my ipad) and I only had 4 lines out of about 20. My ipad has