File Ownership/PHP...

Can anyone point me at a way to report file ownership in PHP running on the server console? We have a problem with users creating illegal file paths (dragging and dropping into longer folder names is the most common one) and I want to be able to run a process on the server to identify them and report to the owners...

jimc,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/

Similar Messages

  • How to extract text from a PDF file using php?

    How to extract text from a PDF file using php?
    thanks
    fabio

    > Do you know of any other way this can be done?
    There are many ways. But this out of scope of this forum. You can try this forum: http://forum.planetpdf.com/

  • How To Generate PDF File IN PHP?

    Hello.programmer.
    I am a php  beginner,I want to creat Pdf file in pHP ,but what can I do ?
    I have   found[ PHP PDF |http://www.phpkode.com/projects/category/php-pdf/]project already ,but what can I do ?

    Hi,
    Use This code to generate PDF, and Happy code.
    <?php
    // create handle for new PDF document
    $pdf = pdf_new();
    // open a file
    pdf_open_file($pdf, "philosophy.pdf");
    // start a new page (A4)
    pdf_begin_page($pdf, 595, 842);
    // get and use a font object
    $arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10);
    // print text
    pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,", 50, 750); pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50, 730);
    // end page
    pdf_end_page($pdf);
    // close and save file
    pdf_close($pdf);
    ?>
    All the Best
    Madhu....

  • Unable to download from AppStore, updates,etc.Messages 'the installer is damaged' to 'there might be a problem with file ownership and permissions.' I am the owner and only user of a new MBP. What could be going on?

    Is anyone having the same type of problems I'm having with Lion. I have a new MacBook Pro, received 7 weeks ago, preinstalled with Leopard 10.6.7. I didn't migrate anything from my old iMac, wanted a clean install from the Apple Store. While there, I asked for the upgrade to Lion 10.7, however their system was down.
    I  installed it myself, wirelessly about a week later, and Apple emailed me a receipt. Now, I've had to call support directly last week when I lost Mail, Address Book, was unable to open Preview or iTunes, among other problems. Seemed fixed after a session that baffled even the store tech.  Now I am unable to download or install the recent Mac updates for Lion, from the App Store, could not install Adobe Reader, etc. Messages range from 'A network error has occured - Check your Internet connection and try again' to 'The Installer is damaged and cannot open the package. There may be a problem with file ownership or permissions.'  All fail and I'll probably have to call Apple again. I am frustrated beyond words.  Logs 'Install's runner tool is not properly configured as a setuid tool', domain errors, 'attempt to write a readonly database, and on and on. I have barely done a thing on this computer except search online for help with these problems. Safari gives me a 'You are not connected to the internet' too often. Diagnostics disagrees. I do see wi-fi problems in the forum. Disk and permissions were fine at the beginning of the earlier problems, checked first by support tech. I'm not sure if support tech even knew. I was just happy they were fixed. Anyone have these download and/or install problems after a 'clean bill of health' so to speak, only a week ago?

    Let's try the following user tip with that one:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • Why  would an error pop up saying the installer is damaged. The Installer can't open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    why  would an error pop up saying the installer is damaged. The Installer can’t open the package. There may be a problem with file ownership or permissions. when trying to install java 7?

    Launch the Console 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 Console in the icon grid.
    Select
    /var/log ▹ install.log
    from the hierarchical list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, click the Clear Display button in the toolbar of the Console window and then try the installation again.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • Mac OS 10.7.4, installing Microsoft Office 14.2.7, error "The Installer can't open the package. There may be a problem with file ownership or permissions."

    Mac OS 10.7.4, updating new version Microsoft Office 14.2.7, ERROR "The Installer can’t open the package. There may be a problem with file ownership or permissions."
    The Apple Installer version is Version 5.0.1 (537).
    When I check the Installer Log, I find only these two messages that I do not understand.
    Jul 12 09:29:13 Bruces-MacBook-Pro Installer[423]: Install's runner tool is not properly configured as a setuid tool.
    Jul 12 09:29:13 Bruces-MacBook-Pro Installer[423]: Unable to create InstallController
    I changed all the permissions for all the Microsoft Office Folder users to Read and Write.
    Restart, same error

    See:
    https://discussions.apple.com/thread/1948155?threadID=1948155&tstart=1
    I had identical Installer Log failure notices: I used Houdini to view the invisible files and per Limnos' suggestion cautiously dragged
    user > library > preferences > com.apple.installer.plist out of that folder onto my desktop and double-clicked on the .pkg file again and it opened and installed properly.
    My Installer now works properly on all .pkg files.

  • Task or script to monitor file ownership, permissions and change as needed

    I'm using a Mac OS X Tiger (10.4.9) computer as a file server for a group of people who are (1) individually non-administrative users and (2) members of Groups. The hard drive is partitioned into 2 volumes: Vol1 has no non-admin access, Vol2 has a Shared folder containing folders with files intended for either Public or Private access. I'm admin with UID=501 and trying not to be a danger. Each other user has a unique UID. Each Group has a unique GID. The folder that all users have access to is named Pub_shares. Every user allowed to access Pub_shares is a member of PubGroup (GID=505).
    Now when a user accesses a file nested in Pub_shares, that file usually becomes owned by that user and the group membership may change from PubGroup and may undergo a change to "Read only" or "No Access." Since all members of PubGroup should have Read & Write access to files in Pub_shares, this is a problem. All files in Pub_shares, regardless of who last touched them, should remain:
    Owner = chris / Access Read & Write
    Group = PubGroup / Access Read & Write
    Others = No Access
    I've read some about Ownership & Permissions. I've seen it suggested that an admin set up an automated task, say to run every 3 minutes; that task checks file ownership and permissions and, if different, changes the values recursively to those shown above, such that:
    Owner = 501 / Access = rwx
    Group = 505 / Access = rwx
    What do I need here? An Automator workflow? A shell script? AppleScript? Cron? launchd? How do I put this together? I don't know the syntax or the expressions to use. Any help is much much appreciated. [Note again: My "server" runs Tiger 10.4.9.] Thanks.

    ..."I have some Windows users (trying) to access shared files. Will the afp inheritance options stand up to a Windows user?"...
    No the afp inherit settings won't apply to windows sharing, but I think there are equivalent settings that can be applied to smb.
    ..."I thought, too, I'd read somewhere that inheritance options use the topmost volume folder to set inheritance patterns."...
    I am not able to double-check this for Tiger, but I don't think that is the case. As far as I know, with those settings enabled (and it doesn't work reliably if only one is enabled) permissions and ownership should be inherited from the folder that the items are added to.
    ..."My topmost folder on vol2 is "Shared" but it contains both Pub_shares (accessible by members of PubGroup) and a few Private_shares (folders accessible by members of various private groups)."...
    Sorry I missed that point in your earlier post. The above would cause complications if a user were to move items from the private area to the public area. The inheritance only applies to when files are created, so something moved from the private area to the public area would retain its original permissions. To make it work, the public and private areas would have to be set up as separate shares, rather sharing the whole volume.

  • File Ownership via Command Line

    Hello - oh my I went and did a stupid thing. I renamed my home folder and restarted which logged me as a brand new user. I can see my previous folder in the Users folder with all of it's files and everything is there - but I can't access it through the log-in pane.
    I have been told by more than a couple of mac stores that it will require 5-7 days to fix... however I googled it and found one specific document on what to do at the command level to fix this. I need assistance from anyone who knows the right syntax in which to do this. I have started by making a backup of all the original home files I want to keep. This is what I found on-line...
    "Changing File Ownership: chown
    The chown command is used to change the ownership of files. Only the root user can execute the chown command. The simplest form, and the one in which you'll end up using it the most frequently, is chown <username> <filename> , which changes the ownership property of <filename> to belong to the user <username> . The command can optionally be given as chown <username> : <groupname> <filename> to change the user and group at the same time. Additionally, -R can be specified after the command to cause a recursive change in an entire directory, instead of to a single file. The command documentation table is shown in Table 24.1"
    Can someone show me how the command line should look as I proceed with this?
    Thank you very much.
    -Derek
    MacBook   Mac OS X (10.4.8)  

    Actually, I was thinking about being even more cautious (being there, done that, ain't pleasant).
    Let me make sure I understand where you are:
    1/ you have only one login, it's your new name, but the Home associated with it is empty (has all the "regular" folders that come with the creation of a new account)
    2/ your old account cannot be accessed upon login but you "ex" home is still there and you have access to it
    If that's right, then do 2 things
    1/ create a new admin account. Call it whatever you want. In case of anything, you'll still have one with admin privileges. You may want to keep it for the future. It's always a good idea to have such an account, never used but for troubleshooting, where the Preferences are pristine.
    2/ start copying (not moving) what you had in your old home into your new one (you wanted that new name anyway, right?), making sure that the privileges are indeed associated with your new name. That should work as you are doing the copying from your new account.
    When you are all done and have made sure that everything works, then you'll be able to delete the old folder. Or you may want to keep it around for a while.
    If you have too much stuff to copy (movies, etc...), then let me know. Having the "third" account (the one I mentioned in 1) may help you. You could log in with that one, and change the names back of your homes (old and new). You would have to check what you have under Syst Pref/Accounts

  • Bordercontainer into .jpg file using php

    hi
    i have done one bordercontaine using flex 4.
    that bordercontainer contain one image and label
    i want to store that bordercontainer into jpg using php file
    I give my mxml file and php
    newflexphp.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.graphics.codec.JPEGEncoder;
                import mx.rpc.events.ResultEvent;
                import mx.utils.Base64Encoder;
                //import com.adobe.images.JPGEncoder;           
                import flash.utils.ByteArray;
                import flash.system.System;
                private var bmSave:BitmapData;
                public function resultHandler( event: ResultEvent ):void
                    Alert.show( "Result "+String(event.result) );
                public function saveImg():void{
                    var jpgSource:BitmapData = new BitmapData (bcont.width, bcont.height);
                    jpgSource.draw(bcont);
                    var jpgEncoder:JPEGEncoder = new JPEGEncoder(85);
                    var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
                    var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
                    var jpgURLRequest:URLRequest = new URLRequest("http://localhost/jpg_encoder.php?name=sketch1.jpg");
                    jpgURLRequest.requestHeaders.push(header);
                    jpgURLRequest.method = URLRequestMethod.POST;
                    jpgURLRequest.data = jpgStream;
                    navigateToURL(jpgURLRequest);
            ]]>
        </fx:Script>
        <s:BorderContainer x="369" y="171" width="232" height="216" id="bcont">
            <mx:Image x="44" y="14" width="151" height="87" source="images/3.jpg"/>
            <s:Label x="44" y="132" text="Best wishes" width="94" height="44"/>
        </s:BorderContainer>
        <s:Button x="163" y="182" label="Button" click="saveImg()"/>
    </s:Application>
    jpg_encoder.php
    <?php
    if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
        // get bytearray
        $jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
        // add headers for download dialog-box
        header('Content-Type: image/jpeg');
        header("Content-Disposition: attachment; filename=".$_GET['name']);
        echo $jpg;
    ?>
    now i get the result seketch.jpg file
    but the link is redircted to php
    just i want to convert my bordercontainer into .jpg file using php.
    how can i do .
    regards
    athi

    Try this possible workaround:
    1.— Take your original file (before any edits) and duplicate it.
    2.— Work on the duplicate (exact clone) only.  Do all your Photoshop edits to your heart's content.  (Optional step: save the file, but don't close it so you don't compress the JPEG and deteriorate its quality.)  Do a select all (Command+A on the Mac, Control+A on Windows) to select the entire pixel content of the duplicate, and COPY that.  Now you have your edited image on your clipboard.
    3.— Open the original file, and do a select all on it, but don't copy that!  Instead, DELETE all the pixel content of the original.  Now you have a blank image with only the metadata of the original.
    4.— Paste the contents of your clipboard (the pixels of the edited clone) into the blank original.  Save.
    With any luck, you'll have the edited pixels with the metadata of the original.
    It should work, but there are no guarantees.

  • When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    When I tried to run php file I am getting the following error message, "/home/karthick/Desktop/PHP files/third.php could not be opened, because the associated helper application does not exist. Change the association in your preferences." How to fix this?

    first, you just asked me to use MS file Explorer to see what the properties were.,..and to ask what happened. Yes - that's on my hard drive. The problem I have is opening word files in a DB that is web enabled.....I've used Firefox browser for that, and everything else , for years...... When I look at the Tools, and options on FireFox., as your support page noted.....NOTHING is listed in the Applications tab....hence my note asking for help. The file I need to open is a Word file out on a web enabled DB. It's not on my hard drive - I have to problems opening docs there - but for that, I don't use Firefox

  • File ownership incorrect - can't login!

    hi
    i accidentally did a
    chown -R <myaccount> /usr
    on my Mac and now i'm unable to login to the system.
    i've tried mounting the hard disk on another Mac using Firewire mount but unfortunately the file ownerships are all mapped to user nobody and doing a
    chown -R root /usr
    does not have any effect.
    is it possible to disable the mapping to nobody?
    i've also tried looking at the disk through Disk Utility. there's a "Repair Disk Permissions" button there but the button is disabled.
    any ideas on how to fix this problem?
    can i somehow enable the root account on my system?

    i was able to fix this by unchecking the "Ignore ownership on this volume" checkbox which is visible when you choose Get info for the volume in Finder.
    the option can be found under Ownership & Permissions / Details section.
    after doing this was able to run
    chown -R root usr

  • Why can't I change file ownership in the Finder when logged in as root?

    Why can't I change file ownership in the Finder when logged in as root?
    I can change it in the Finder if logged in as admin or via the terminal as root.
    Xserve   Other OS  

    N8 Thomas wrote:
    I then went into my finder preference section and changed my "New finder window show" to my computer's name.  At that point I could view and find anything within it.  this part got the job done. 
    "You don't, they only appear in open file dialogs and in tool panels like in iMovie, iPhoto.
    To view your media, you open the app that you use to manage that type of media." this on the other hand was zero help
    What you did doesn't show the Media Browser. It just shows the folders where your media is stored. You may be correct that was all that cobacc wanted. 
    The Media Browser shows the actual media in thumbnails so that you can preview the media.
    However, neither requires any Sharing services to be enabled.

  • Java API getting unix file ownership(name, group..etc)

    I am looking for any standard or 3rd-paty Java API that retrieves unix file ownership (name, group..etc)
    Thanks.

    I don't like your chances of finding a standard library to pull Unix group and user ownership. That would be violating the whole theory of Java being OS agnostic. I'm also unaware of any 3rd party library that does this.
    That said, you can definitely do this. One way I can think of is making a Runtime call:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    You could use this to do an ls -l on a file and parse the result.
    This would of course be violating standard practice in J2EE when any access direct to the file-system is regarded as being a pretty bad idea. It would also make remove the write-once run-anywhere aspect to your code, though that may not concern you too much.
    cheers,
    Trevor Nielsen
    londonmiddleware.org

  • RAC crs vip log file ownership

    Hi Experts,
    I am debugging oracl2 11.1 cluster issue and find i am not able to download ora.nodename.vip.log file under log/<hostname>/racg in Linux platform.
    The further finding, ora.nodename.vip.log file file owner is root:root. I think it should be owner as oracle:oinstall
    Experts does this vip log file ownership is correcttion? It seems that i can download these file before by oracle account in linux.
    as ls -ltr commend show
    ora.nodename.vip.log file rw-rw--- root:root
    Thanks
    Jin
    Edited by: user589812 on Feb 3, 2012 4:03 PM

    Thanks for your explaining!

  • ADDT file upload server behavior / file ownership on server

    When using the ADDT file upload server behavior, I found out that the files stored on my server have the ownership "www-data www-data", where other files uploaded (with Dreamweaver or a FTP client) have the ownership "[mydomain] www-data.
    This means I cannot manipulate these ADDT uploaded files with a FTP client like Filezilla or in the Dreamweaver file window, because I then get an error message saying I don't have the required permission for that operation (eg delete the file).
    Any clue on how to solve this problem?
    Thanks in advance,
    Erik

    You can also check with your host if they are running suexec. If they are you can possibly use a PHP-CGI wrapper in your script to have it create files/folders with the right permissions. It's more about the ownership of the php interpreter. Surprising though as I never seen ADDT have this kind of issue. I have seen this issue several times in hand written scripts by me where I don't do a lot of pre-checking.

Maybe you are looking for

  • Brand new ipod touch won't display home page

    Hi Folks Just bought 2 new Ipod Touch's for the kids for xmas. One turns on fine and went straight to the home page and allowed me to personalise it but the other one starts up and just displays a picture of the USB cable and an upward arrow pointing

  • I swapped out my hard drive and need to get the new computer to recognize it

    my hp died, and i had to take the hard drive and swap it out to a new computer. Right now it is in an external case hooked up to laptop via USB - no expansion slots. .  the laptop will not recognize it, it only sees the recovery partition. How can i

  • Can't open pdfs with adobe reader 11

    I was directed to download adobe reader 11, but am now unable to open any pdfs. I am using OSX version 10.7.5 and using safari. Previously I had no problem with viewing pdfs. I tried downloading again, but get a message that it is already downloaded.

  • Will there be an update for hdmi 2 on macs

    Mac pro is 1.4 hdmi so im wondering if there is an update, either in mavericks 10.9.1 or any other update to have displays go up to 60hz for better gameplay and video editing.

  • General Scrollbar Issues

    I see a lot of people posting about the scroll bar.  I use my iMac with a Wacom tablet.  When the scroll bar disappears on things like iTunes it never comes back. I borrowed a touch plate from a friend and placing two fingers on the touch plate makes