Network file permission error and Log???  Need help...

Hi everyone!
Based on what I learned here:
http://discussions.apple.com/thread.jspa?messageID=1760312&#1760312
I have a log in my script like this:
set log_path to (startup disk as string) & "Applications:My Folder:My Log"
set the_date to (current date) as string
set logfilecontent to (open for access file log_path with write permission)
try
write the_date & return & "Here's my Log:" & return & "item1" & return to logfilecontent starting at eof
on error
close access logfilecontent
end try
close access logfilecontent
It has always worked but this is part of an app. I just realized that this will work on my admin login but not on a regular login (I mean logging into the computer). And if I change the owner/group of the app sometimes it will change if I can do it either on an admin login or standard. I often get a Network file permission error and it gets stuck. I know it's something to do with permissions, but maybe I don't fully understand still? I need it so it will work on admin or standard login without that error. In that same link above a user mentions he had the same problem. So there's something I'm just not getting??? And I know it's here with the Log because I took it out and no problem. Hope you guys can help out???
Thanks in advance,
Reg

If the log already exists on the hard disk, you may not be able to write to it from a non-admin account, and you may want to avoid writing to the Applications folder. You can provide an empty log in the expected place which allows all accounts to write to it, but the permissions may be lost when the application is installed.
Alternative options include creating different logs for each account:
set log_path to (startup disk as string) & "Applications:My Folder:" & (do shell script "whoami") & "'s Log"
or writing the log to the account's home folder:
set log_path to (path to home folder as string) & "Library:Preferences:My Folder:My Log"
(17283)

Similar Messages

  • Web-Disk on OSX 10.9 Give me this error: "Finder got an error: Network file permission error."

    Previously I was using OSX 10.8 and Web Disk was working great.
    Since I upgraded to OSX 10.9 Web Disk Dont Attach to my compputer and give me this ERROR:
    FInder got an error: Network file permission error.
    When I got this ERROR first time I searched GOOGLE and found this link: http://cammodude.blogspot.no/
    And I did:
    To force all connections to be SMB1:
    Open A terminal window
    paste in the following line followed by the return key(should be all on one line): 
    echo "[default]" >> ~/Library/Preferences/nsmb.conf; echo "smb_neg=smb1_only" >> ~/Library/Preferences/nsmb.conf
    What the command does:
    Creates a file called nsmb.conf  in your  home directory at the path ~/Library/Preferences/nsmb.conf.
    Adds directives to force SMB connections to use the SMB1 protocol.  This is slower but stable.
    Then I could use Web Disk on OSX 10.9 after executing this command in Terminal.
    But now I restarted my Macbook and now Im NOT able to connect to Web Disk and get the same ERROR.
    FInder got an error: Network file permission error
    After trying 100 times it attaches 1 time but then show this ERROR:
    Can't get <<class cdis>> "my.server.com/2078" of application "Finder".
    If this happen then I can see the files in Finder and see the Contents and Size of files but if I open a PHP file in BBEdit then it shows BLANK.. But actually it is NOT blank.
    Now Im stuck How can I solve this? All help is highly appericated..
    Thank you so much...

    Hi,
    Make sure to chmod the app, something like this :
    chmod -Rf 777  secure_site_WebDisk.app
    (in my case the CPanel provided the app for my OSx version.)

  • Network file permission error

    I've finally tracked down the source of the problem for third-party template installers that get the network file permission error. I'm not sure if Peter (Laimavia) has been here discussing this, but he uses the same installer and Jumsoft (iLifeStuff) would be using the same method as well so neither of them would be exempt from this issue.
    It looks like JTemplate is resetting the admin file permissions for TemplatesInfo.plist to read only. Why it does this is questionable - it's absolutely not necessary. It allows JTemplate full control of the file, but it blocks any other third-party installer from updating the file. <scratching head>
    If you're using JTemplate and you purchase templates for iWeb, you will likely encounter an error that states Network File Permission Error when trying to install them. I'm not a UNIX guru so I could not find a way to set the permissions back to read/write. When I tried this, my access dropdown was entirely disabled at the admin level - even when I unlocked the settings. Even the back-up copy of TemplatesInfo.plist that JTemplate makes for you is reset to read-only permissions so even if you thought you're reverting to your original installation, you're not.
    On my development machine where JTemplate was not installed, the default iWeb installation allows admin access to that file with read/write permissions so it would seem the only way to undo this problem is to reinstall iWeb.
    Testing confirmed all of these results, including the reinstall. Template installers worked just fine once the files were restored so if you're getting that error, that's what you need to do.

    Okay I'm talking with Peter now... he was already aware of the issue and also confirmed that JTemplate was the source of this problem. He provided this solution for resetting your file permissions. I'm not sure if you have to do this every time JTemplate is used. I'll test it later and report back.
    If you are familiar with the "Terminal" application, then this should do the trick:
    Open up Terminal. ( Applications/Utilities/Terminal )
    Copy and paste this:
    sudo -s
    cd /Applications/iWeb.app/Contents/Resources/English.lproj/Templates
    chmod g+w TemplatesInfo.plist
    Now, hit enter. Close terminal.
    Try and run the installers again

  • Permission error...need help

    I have the following code...
    USER1 HAS THE FOLLOWING TABLE:
    =========================
    create table taxpayer (
    tid char(5) primary key,
    name varchar2(20),
    district varchar2(20)
    GRANT ALL ON taxpayer to USER2;
    =========================
    USER2 HAS THE FOLLOWING:
    =============================
    CREATE TABLE employment_logs (
    tid char(5),
    year number(4),
    company varchar2(20),
    self char(1) check(self in ('y','n')),
    user_ VARCHAR2(20),
    datetime DATE,
    terminal VARCHAR2(10)
    GRANT ALL ON employment_logs to USER1;
    CREATE OR REPLACE TRIGGER employment_del
    BEFORE DELETE ON USER1.taxpayer
    FOR EACH ROW
    DECLARE
    datetime_ DATE;
    terminal_ CHAR(10);
    user_ VARCHAR2(20);
    BEGIN
    datetime_ := SYSDATE;
    terminal_ := USERENV('TERMINAL');
    user_ := USER;
    INSERT INTO employment_logs VALUES
    ( :old.tid, :old.year, :old.company, :old.self, user_, datetime_, terminal_);
    END;
    when I compile this it gives me the following error....
    Error report:
    ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    *Cause:    An attempt was made to change the current username or password
    without the appropriate privilege. This error also occurs if
    attempting to install a database without the necessary operating
    system privileges.
    When Trusted Oracle is configure in DBMS MAC, this error may occur
    if the user was granted the necessary privilege at a higher label
    than the current login.
    *Action:   Ask the database administrator to perform the operation or grant
    the required privileges.
    For Trusted Oracle users getting this error although granted the
    the appropriate privilege at a higher label, ask the database
    administrator to regrant the privilege at the appropriate label.
    anyone who can tell why is happening....the error goes away when I run all this under only one user....but the trigger suppose to record the activity of the other user...
    so need your help.....

    I'm still not sure I understand
    Are you trying to create the trigger in the User1 schema or in the User2 schema?If you are trying to create a trigger in User2's schema that logs changes on a table owned by User1, User2 needs the CREATE ANY TRIGGER privilege, as Solomon indicated
    SQL> create user user1 identified by user1 default tablespace users;
    User created.
    SQL> create user user2 identified by user2 default tablespace users;
    User created.
    SQL> grant create session, create table to user1;
    Grant succeeded.
    SQL> grant create session, create any trigger to user2;
    Grant succeeded.
    SQL> grant unlimited tablespace to user1;
    Grant succeeded.
    SQL> conn user1/user1
    Connected.
    SQL> create table x ( col1 number );
    Table created.
    SQL> grant select on x to user2;
    Grant succeeded.
    SQL> conn user2/user2
    Connected.
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace trigger user2.x_trg
      2    before insert on user1.x
      3    for each row
      4  begin
      5    raise_application_error( -20001, 'Trigger fired' );
      6* end;
    SQL> /
    Trigger created.
    SQL> conn user1/user1
    Connected.
    SQL> insert into x values( 2 );
    insert into x values( 2 )
    ERROR at line 1:
    ORA-20001: Trigger fired
    ORA-06512: at "USER2.X_TRG", line 2
    ORA-04088: error during execution of trigger 'USER2.X_TRG'Note that I'm raising an exception rather than logging to User2's table, but that should be easy enough to change.
    Justin

  • File permission error in LabVIEW, but what file?

    I am in the process of smoothing out the wrinkles in a large LabVIEW program that I've converted from LV 7.0 to LV 2011SP1.  I've also moved from WinXP to Windows 7.  I get why there are file permission errors and I understand what the issues are in regard to moving from XP to 7.  What I would really like, is for the error message to tell me WHAT file is having the issue.  There are entirely too many file accesses in this program, I am not the originator, and it's been painful.  A more explicit error message, a log file, or some other cool trick to find what file is having the issue would be super.  While I'm asking for stuff, a call stack or at least the name of the VI this code calls would be wonderful, as nothing at all calls New File directly.
    Certified LabVIEW Developer
    NI-VLM Administrator

    How are you currently handling the error?  The file you tried to access should be part of the string in the error cluster.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • There has been a network or file permission error. The network connection..

    hello,
    there has been a network or file permission error. The network connection may be lost.
    this is the error my client gets sometimes when he wants to save a word document.
    when i go in the finder i have no problem accessing that network share, and when i look up the file and check the permissions there is no reason why this error should occure.
    situation :
    1 os 10.3.9 server
    7 os 10.5.5 clients
    1 os 10.3.9 client
    office 2004 for mac (version 11.50)
    there are 2 10.5.5 clients (emacs) with this problem on a regular base (3-5 times a week). One imac 17" 10.5.5 has this once a month.
    it is a wired cat5 network.
    any idea what could cause this problem?
    thanks
    Marco

    I found a logical explanation on the following site : http://www.makemacwork.com/office-2004-wont-save-to-server.htm , I am gonna try the steps they describe and post back the result.
    Marco

  • Trying to inistall itunes keep getting error code 2330 need help unistalling and reinstalling

    Im trying to install itunes but keep getting an error message. (The installer has encountered an unexpected error installing this package, this may indicate a problem with this package. Error code 2330
    I need some resolution please assist. I did call microsft but they want to charge just to get help.  I need assistance please.
    Thank  you

    Although it's a better bet with a 2330 than a 2349, I'd try running a disk check (chkdsk) over your C drive. 
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • I have a PC and a need help to configure my external hard disk on my network. Thanks

    I have a PC and a need help to configure my external hard disk on my network. Thanks

    If you mean you wish to plug a USB drive into the Airport Extreme router (or TC not express) that is easy..
    The disk must be formatted FAT32.. as if.. stay away from FAT .. or HFS+ ie Mac OS extended Journaled.
    Format the disk on a Mac is best.. and even use GUID partition scheme not MBR.
    The PC has no issue writing and reading files because this is a network drive.. The PC does not write to the drive.. it writes files to the Airport OS which writes and reads the disk and passes the info using standard windows SMB.. To the windows computer it will be a Windows NT server.. FAT32 setup.
    If your setup is different.. to my hugely guessed assumptions.. give details.. always helps to have.. make and model.
    Make and model of disk.. make and model of router.. how the setup will be done.. what windows OS you run.. etc etc.
    As it stands your question could have nothing to do with apple at all.. other than you posted in a forum so I guess there is something apple in there somewhere.

  • Network of file permission error.

    "There has been a network of file permission error. The network connection may be lost."
    This is happening only in the afternoon (after 12 noon) on someones machine with Word.
    We got him a brand new machine, deleted and recreated his user account on the server but it still happens when he re-opens and saves a document. He can only save it to his desktop and then drag it to the server.
    We used Migration assistant to transfer files. Haven't tried a new user account on his actual machine yet, but it's very strange. Others using Word are not having this problem.
    We have an Apple RAID server and a Windows server and he can't save to either one directly after about noon cst?

    I'm having the same problem with an Intel iMac. The user has a network account and has been having several strange account/permission issues like this. And we have deleted and recreated her account to no avail.
    Any luck figuring out what's going on or what the solution is?

  • "There has been a network or file permission error. The network connection may have been lost

    Hi,
    While trying to save an Excel or (less frequently) Word document, employees at my company have been seeing the error, "There has been a network or
    file permission error. The network connection may have been lost."  This is more common when they are connected through the VPN, but it also occurs locally.
    The employees all have Win 7 Pro laptops and the file server is Win Server 2008 R2.  I have found suggestions that a Windows update is the cause, but the articles on that all limit it to Server 2003.  Others have suggested setting the program to
    save a local copy of remote files; however, while the setting exists in Word, it does not exist in Excel.
    If anybody has any advice, it would be greatly appreciated.
    Thank you

    This is a known issue, might try the workaround is a better chooses .
    http://support.microsoft.com/kb/291156
    KR

  • Hello, Our indesign file keeps crashing and we need to go to print today. We use CS6. Please help!

    Hello, Our indesign file keeps crashing and we need to go to print today. We use CS6. Please help!

    Ok - we're going to need a few more details.
    Operating System - Windows or Mac?
    Version of CS6 - are you fully patched to the latest version (Help>Updates)?
    Do you use any 3rd Party Plugins (Help>Manage Extensions and look for 3rd Party Plugins)
    At what point does it crash? How are you exorting/printing?
    What file type or action are you doing when it's crashing?
    Common Troubleshooting tips
    Troubleshooting 101: Replace, or "trash" your InDesign preferences
    https://forums.adobe.com/thread/526991
    File Crashing on Output - printing/PDF/other

  • How can we a validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

    How can we a  validate a CSV file in SSIS and log the error details in another CSV File by using Sript Task.

    Please see:
    http://www.bidn.com/blogs/DevinKnight/ssis/76/does-file-exist-check-in-ssis
    http://social.msdn.microsoft.com/Forums/en-US/01ce7e4b-5a33-454b-8056-d48341da5eb2/vb-script-to-write-variables-to-text-file

  • I had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    first, head into your Add/Remove programs and uninstall your QuickTime. if it goes, good. if it doesn't, we'll just attend to it when we attend to itunes.
    next, download and install the revo uninstaller http://http://www.revouninstaller.com/revo_uninstaller_free_download.html. use it to clear any existing itunes and/or QuickTime installation configuration information from the PC.
           next download itunes. it worked for me hope this is helpful!!
        oonce you get into the revo uninstallergo thru to delete itunes hit uninstall on the itunes icon then you will go thru to it will tell u the same nmessage about the feature and network hit cancell then go thru and hit scan (make sure bthe advance scan button is pushed) this will take awhile but go thru the list and hit everything associated with itunes. hit delete then install itunes again. it worked for me hope it works for you!

  • Hello I Download Adobe Photoshop CC 2014 Last Night i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message I Need Help Can You Resolve This Problem i Tried Creative Cloud Sign Out Nd Sign iN But iT DidnT ReSolve My

    Hello I Download Adobe Photoshop CC 2014 Last Night
     i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message
    I Need Help Can You Resolve This Problem

    Lotfi are you receiving any error messages during the installation?  I would recommend reviewing your installation logs for errors.  Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.  You are welcome to post any specific errors you discover to this discussion.

  • CAN Test File Permission Error

    Hi Everyone,
    Could someone help me with a file permission error when calling CAN test with a different user login account that has full local admin rights.  The error is as follows:
    Labview: File permission error.  You do not have the correct permission for this file.  Please refer to attached picture for more details.
    We are using TestStand/Labview 2012, SP1 and windows 7.
    Thanks very much,
    tstand
    Attachments:
    CAN BUS Code -file permission error.PNG ‏1866 KB

    Hi tstand,
    Are you able to run the sequence if you're logged in as the Administrator on your computer?  Also, are you able to access the LabVIEW Run Time Engine at all from this user account?  Try running a simple LabVIEW executable.  Can you call LabVIEW code modules from any other steps, or do you receive this error every time you call any LabVIEW code module?
    Thanks,
    Myriam

Maybe you are looking for