Originally Posted by
sanddune008
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.