General :: How To Stop Files Moved - From Windows Via USB Being Marked "executable"?
Sep 27, 2010
When I move files from Windows to Linux using a USB drive, all files are marked as executable. Then double clicking on a ".txt" file gets you the ridiculous dialog box asking whether you want to display the file or execute it. (NOTE: The /etc/fstab entry for the USB mount includes the "noexec" option already and it hasn't helped.) Now that my wife and daughters are moving files back and forth between the two OSs, I'm getting pestered for a solution to this and I haven't been able to track anything down. Yet.
What can one do -- presumably on the Windows side of the transfer -- to prevent these files from being marked executable? Or is it a hopeless problem caused by some dainbread decision made by a Windows developer?
I have just installed Ubuntu 10.4 and having problems reinstalling an app I used to use routinely on 9.10 using wine 1.2 - Is there way round this? I tried installing from USB hard drive and CD and just get this: I don't know whether it is a wine or OS issue.The file '/media/Data disc (23 Jun 10)/macromedia8/Fireworks8-en.exe' is not marked as executable.If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details,read about the executable bit
I want to run minecraft, but when clicking Minecraft.jar it wont cuz of Ubuntu's policy crap. Is there a way to turn this off, because this is worse than Windows UAC. If not, using Java SDK 6, how can I run it? I'm assuming it's a terminal command since wine lets you get around the restrictions with a sudo wine command.
So I'm following the online tutorials I've found to install sketchup, and I've run into a snag right off the bat. The instructions I've found say to open the Sketchup exe file by right clicking and selecting open with Wine I do this and I get a box stating that the file is not marked as an executable. How do I fix that? Step by step instructions would be best since I only just installed ubuntu for the first time two days ago
I'm new to ubuntu, and I've been trying to get shockwave running on firefox using the instructions here: [URL]. However, when I try to open firefox with wine, I get this message. "The file '/home/Downloads/Firefox Setup 5.0.exe' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit." I looked into this, but I don't understand what I'm doing well enough to assign file permission to this program.
I've installed wine several times in ubuntu 11.04 but after the installation when i click on the wine icon it gives an warning message "The file 'wine' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."
I use Ubuntu 9.04 exclusively on my own machines, but I have a couple of flash drives that got infected by some corrupt windows executable (*.exe) files, probably by somebody's trojan (they are Cruzer 4GB so came with installed fancy programs that I dont need but didnt remove and Windows keeps installing unwanted ini files and other trash every time I use them in somebody elses machine or in an internet cafe). I deleted quite a few files, but some are stubborn. $ sudo chmod +w-X doesnt seem to work. How do I unprotect and remove them? The filesystem is vFAT.
I suspect the files were created by some kind of a trojan as my work requires my flash to be pretty promiscuous. When I 've backed up all the good files I need, I'd be happy to reformat the flash drives as straight vanilla data storage and retrieval, provided I can still use them on a variety of machines running MS windows as well as on my Linux machines. Any guidance on reformatting?
i run this command on file : chmod u+x recon (recon is the name of the file). then i run the file in question (. recon). i just want to stop it; how to do this ?
I am an Ubuntu refugee. Allow me to explain what happened. I am dual booting with Windows 7 and F15 x64.
(1) I wanted to created a shortcut of my "Documents" folder in my Windows in Nautilus (2) I opened the Windows drive by double clicking the drive under Devices, and navigated to my "Documents" folder (F15 already has ntfs-3g installed so no hassles there) (3) I then dragged the folder to the sidebar to place it under the Trash icon--but for some reason, it would not let me do this, and accidentally got placed in the Trash bin. (4) problem is I can't see this folder in the Trash bin (it is not even hidden) (5) To check if the Trash bin actually captures items when we move files/folders to Trash, I tried sending a folder from my Home directory to Trash, and the folder appears in the Trash; it can even be restored to Home. (6) Only files/folders from the NTFS formatted Windows drive do not appear in the Trash folder if sent there. (7) I have Google searched this problem, but to no avail. (8) I even thought that because the drive is not mounted 'officially' I would mount it using command line:
Code:
(9) But still I can't see the folders in the Trash (10) Interestingly, when I try to unmount the Windows drive 'formally' then I get a message if I want to "empty the Trash"--I obviously chose not to--so I know there is my Windows Documents folder in there somehere.
I need to instal JDownloader, I downloaded as a linux version and this is the command line output (Archive Manager):
Archive: /root/Downloads/JDownloader/JDownloader.exe [/root/Downloads/JDownloader/JDownloader.exe] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. zipinfo: cannot find zipfile directory in one of /root/Downloads/JDownloader/JDownloader.exe or /root/Downloads/JDownloader/JDownloader.exe.zip, and cannot find /root/Downloads/JDownloader/JDownloader.exe.ZIP, period.
How to set the default file permissions on ALL newly created files in linux - but differs in important ways:
I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.
Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)
umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.
It seems all .exe files work from my /home folder, however as this didn't have enough space I installed a game(World of Warcraft) onto one of the file systems in /media folder. The game worked perfectly when I played it on Linux Mint 9 but when I upgraded to Linux mint 11 it wasn't marked as executable. When I attempt to change the permissions from properties to "allow executing file as program", it instantly deselects the box and double clicking has no effect. I've tried the "chmod +x" command from the terminal and that has no effect either. I can't move the file to my "/home" folder as it's too large.
I have just noticed a nice feature in Windows 7 - when you drag a window to the edge of the screen (the mouse pointer must touch the edge), windows offers you to resize the window to exactly half of the screen size. This is actually very handy on the wide screen monitors.
Is it possible (and how) to configure Kde 4 to do the same thing?
Suppose there is a directory named mydir containing ... aaa.cpp aaa.h bbb.cpp bbb.h Makefile a b Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).
I recently got the information that Windows software do not run in Linux as such. In order to run these software (Running the software also includes installing the software by running the set-up executable file) I need to install 'wine' on my system and then run the set-up files from within this 'wine'. I therefore wish to install 'wine' on my system in order to run the corresponding Windows set-up files (which are executable files). I am running Linux Mint version 10 on my system.
I have created some text executable files and put them on my desktop. In the way of background I created them in gedit. Then used chmod ugo+x (filename) to make them executable. One of them is a ping test to see if a printer is on. Text in file = ping 192.168.1.5. Others are to turn my laptop touchpad on and off. text in file = sudo modprobe -i psmouse. I have 2 questions about executable text files:
- When I click on an executable text file it present a window with 4 options (Run in terminal, display, cancel, run). Can I set a parameter or do something else so it just runs in terminal? I know I can set an option in Nautilus to run them but when I select run nothing seems to happen. In addition I would want to set this option on a case by case basis not globally in Nautilus. If there is an option or flag where it would run this file in terminal I would use it on my printer ping test.
- When I click on these executable text files to turn my touchpad on and off, the text within the file uses the sudo command so that requires that I input my password. After I click on either of these files a window appears with the 4 options (Run in terminal, display, cancel, run). I select run in terminal, a terminal window opens and requests my password. Subsequent to inputting my password the file executes fine.
Is there a way to set a parameter or do something else so I don't need to not only select the run in terminal option from (run in terminal, display, cancel, run) but also not to enter my password?
I have found that when a shell script having executable permission(+x) is copied to Windows from Linux machine,loses its executable permission when again copied back to Linux from Windows machine
I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process
find /dir/ -type f -exec chmod ugo-x {} ; find /dir/ -type d -exec chmod ugo+rx {} ;
Is it possible to modify the first line so that I can strip exec flag from all non-directory files? Since this needs to be done on a fairly regular basis across a lot of directories and files, I'd prefer not to use a bash script which would slow it down.
Did a basic mistake . Dnt know how to recover .In root user i gave a commandmv / /home/username/except the home directory all the other folders that is /sbin /lib /optetc was moved to /home/username.Now i am unable to execute any command.I also tried to set the PATH and LD_LIBRARY_PATH to the newly copied localtion but none of the command works. Since "mv" command also not working i am unable to change the location.
I have been having problems hibernating my windows 7 partition recently. It happened approximately right after I set up the dual boot.
I have found other topics where it says to make sure that the windows 7 partition is marked as the active partition. I have since done so and it has not changed anything. I did it with Partition Magic on Windows. I did find it suspicious though that my Dell Recovery partition is labeled as boot while the Windows one is marked as Active and System.
However when I looked at it using disk utility in Ubuntu the windows 7 partition is marked as Bootable while the recovery partition is not.
Hibernation works on Ubuntu with a couple error messages while shutting down and some weird screen issues while booting up. But it ends up working decently.
Under Disk Utility the Ubuntu Partition is not marked as Bootable. Should it be?
Vista Recovery Windows 7 GRUB Extended -->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
I cut paste sys folder, tmp folder, and many more folder to a backup storage place , after that folder icon and other icon converted into txt icon , i can make any folder but can't access, can't open storage, thrash disappear, terminal icon disappear, and also the application and places and system icons, after that someone suggested restarting may help but i can't restart it , so i unplugged the power wire and replugged it and restarted the system but it can't open , all things comes fail, and show INIT: "x" respawning too fast: disabled for 5 minutes. after each 5 mins this msg is repeating
If I move a file to the trash,I can restore it later.But if I empty the trash,I'll be warned that I cannot recover the files if I proceed.Is this really true or are there Linux applications for recovering files deleted from the trash?Uhm...are the files deleted completely and unrecoverably or are there any traces left behind?
I have Ubuntu 10.10 running here and a Windows 7 desktop. I'm using samba to share files and folders. I have full read/write access to the 7 box, and vice versa. However, whenever a user of the 7 box drops a file on my Desktop, for example (it could be any of my shared directories), it always has a padlock on it and I have to chown it before I can move or delete it.Can anyone tell me how to get myself permanent ownership of these files? I'm pretty sure I had this problem once before, and it was an issue of adding myself to a particular group, but I forget.
But I'm curious as to if drivers installed on Ubuntu can be moved/copied over to windows. I have been trying for weeks to get my sound card to work in my system. It's a kind of older Sound Blaster Live! 5.1 card and windows will not recognize it nor will any drivers I install work. To my surprise, I was messing with the audio options after my first ever install and test of Ubuntu (thoroughly impressed and excited btw), I noticed that my sound card was listed as a hardware option. I'd use ubuntu 24/7 if other computers, my HTPC, xbox, ect could connect to my media. I use windows for games, and such, so having the sound card installed would be a huge plus.
I had bad experience with disk checking in windows. Boot checker just moved all more and more of my files to a hidden folder without me knowing. I lost a lot of photos due to this. Afterwards when I checked that folder I found that most of the files were intact and I was able to open them without a problem. How dumb is that a program moves files without your permition to do so So I'm wondering what happens with files on Ubuntu if they get corrupted or are suspected as corrupted? And how can I know if the automatic checking procedure that runs when booting found any corrupted files, bad sectors etc... ?
I dual boot Windows and Ubuntu dual on my computer. I made the big mistake of moving a bunch of files directly from the ubuntu partition and now all those files are gone. How can I get them back?