Thread: Issue on reading from flash with flash.....

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    145
    Thanks to all for your time and prompt reply......Let me digest all your comments and come back on this.......

  2. #2
    Registered User
    Join Date
    Apr 2009
    Posts
    145
    I may have to investigate why the directory is not getting created........

    What i don't get is how come it was working these days and all of a sudden it stop? anyways i will try to figure this out.

  3. #3
    Ticked and off
    Join Date
    Oct 2011
    Location
    La-la land
    Posts
    1,728
    Quote Originally Posted by sanddune008 View Post
    I may have to investigate why the directory is not getting created........ What i don't get is how come it was working these days and all of a sudden it stop?
    Check the directory and parent directory access mode, and mount options for the flash (just run mount). Linux will remount the filesystem read-only if there are problems writing to it; if that has happened, you'll see ro in the line corresponding to your flash media in the last column (in parentheses).

    I suspect one or more of the directories have just bad modes, something like d------rwx which allows everybody else but the owner user to modify the directory entries (create new files and so on). (If you habitually do stuff as root, you won't notice, because root is not bound by such trivialities.)

    In particular, if you have
    Code:
    dr-xrwxrwx  3 nominal animal 4096 Dec  7 00:00 /path/to/directory/
    drwxr-----  3 nominal animal    5 Dec  7 00:00 /path/to/directory/file
    then user nominal can modify the contents of the file, but not delete, rename or create a new file. Other users belonging to group animal can read the contents of the file, but not modify it; they can also delete or rename the file, and create a new one. Other users (not nominal, and not belonging to group animal) can delete or rename the file, and create new ones, but not read or write the existing one.

    Since everybody except user nominal is allowed to modify the directory, they can also change the access mode on the file. So this kind of setup is not really secure. But it does explain the symptoms you are seeing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using Flash with C++.
    By kakayoma in forum C++ Programming
    Replies: 17
    Last Post: 08-01-2009, 07:53 AM
  2. Get Flash
    By Queatrix in forum Tech Board
    Replies: 1
    Last Post: 09-04-2006, 07:19 PM
  3. Flash and PHP
    By ChadJohnson in forum Tech Board
    Replies: 2
    Last Post: 01-28-2006, 01:16 AM
  4. Flash Flash Revolution
    By Esparno in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 12-09-2002, 12:43 PM
  5. Flash <--> c++
    By c-- in forum C++ Programming
    Replies: 7
    Last Post: 09-13-2002, 11:26 PM