Welcome to the Linux Foundation Forum!
Cannot run program off usbflash on Ubuntu 10.10
PartialPenguin
Posts: 1
in Command Line
I've never encountered this on any distro before. Ubuntu does not let me run a program off a usbflash drive. For example when I try:
./HelloWorld
it gives:
bash: ./HelloWorld: Permission denied
and when I try:
sudo ./HelloWorld
it gives:
sudo: ./HelloWorld: command not found
so I try:
sudo chmod 777 HelloWorld
but it shows the permissions as:
-rw-r--r--
The usbflash is formatted as vfat. Is there any execute the progam off the usbflash without having to copy the program to every hard drive and change permissions there then delete it?
0
Comments
-
It appears that devicekit has set the default permissions for vfat partitions to be non-executable, I recommend addint an entry for the specific device in fstab with your chosen permissions or using the devicekit application to change the permissions of the partition when you choose to use it. You can find instruction for modifying deviekit at http://superuser.com/questions/134438/how-to-set-default-permissions-for-automounted-fat-drives-in-ubuntu-9-10 and instructions for setting fstab at http://ubuntuforums.org/showthread.php?t=15027750
Categories
- All Categories
- 179 LFX Mentorship
- 179 LFX Mentorship: Linux Kernel
- 777 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 76 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 104 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 21 AI & ML Training
- 2 Blockchain & Decentralized Identity Training
- 51 Cloud & Containers Training
- 7 Cybersecurity Training
- 5 DevOps & Site-Reliability Training
- 3 Linux Kernel Development Training
- 3 Networking Training
- 2 Open Source Best Practice Training
- 10 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 799 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 97 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 776 Linux Distributions
- 83 Debian
- 68 Fedora
- 25 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 473 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 104 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 190 Mobile Computing
- 32 Android
- 142 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 312 Kernel Development
- 735 Software Development
- 1K Software
- 421 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)