LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SD Card - 'Permission denied' for anything installed from source (https://www.linuxquestions.org/questions/linux-newbie-8/sd-card-permission-denied-for-anything-installed-from-source-926975/)

Macburp 02-01-2012 12:14 PM

SD Card - 'Permission denied' for anything installed from source
 
My setup - Asus eeepc 701 with 4GB SSD and Kinston Class 10 16GB SD Card, running Linux Mint 9 (Katya).

Due to lack of disk space I've moved /home to the SD card. I previously had /home on a 4GB card, which worked well once set up.

The SD card is mounted in fstab as follows -

Code:

UUID=[uuid, too long to quote here] /home ext2 defaults,user,noatime,errors=continue 0 0
The first program I installed from source was Dropbox, which I have installed several times before. The command that runs dropbox is

Code:

~/.dropbox-dist/dropboxd
to which the pc said -

Code:

~/.dropbox-dist/dropboxd: Permission denied
I tried running the program as root, didn't work. Checking permissions for dropboxd showed the following -

Code:

-rwxr-xr-x 1 macburp macburp      258 2012-01-18 18:53 dropboxd
thi seems to indicate that the files is executable, so why is permission denied?

I've had this issue with other programs too, which indicates that I have an issue with the SD card rather than dropbox.

What can I try next to resolve this?

tia

suicidaleggroll 02-01-2012 12:49 PM

Add exec to the mount options in fstab

Code:

defaults,user,noatime,exec,errors=continue

SecretCode 02-01-2012 01:28 PM

Are you running with sudo?
I agree that you should have permissions to run ~/.dropbox-dist/dropboxd itself, but the error may be coming from within the code.

I don't see why those mount options should give this problem, but can you try it with defaults,errors=continue and even with rw,exec,suid,sync,errors=remount-ro (you probably don't want sync for long term use on an SD card, though)

---------- Post added 2012-02-01 at 21:29 ----------

Quote:

Originally Posted by suicidaleggroll (Post 4590762)
Add exec to the mount options in fstab

Code:

defaults,user,noatime,exec,errors=continue

According to my reading of man mount, defaults implies exec. But it seems like it has to be something to do with the mount options.

suicidaleggroll 02-01-2012 02:37 PM

Quote:

Originally Posted by SecretCode (Post 4590804)
According to my reading of man mount, defaults implies exec. But it seems like it has to be something to do with the mount options.

When you mount with the "user" option, noexec is the default

Code:

              user  Allow an ordinary user to mount the  file  system.  The
                    name  of the mounting user is written to mtab so that he
                    can unmount the file system again.  This option  implies
                    the options noexec, nosuid, and nodev (unless overridden
                    by  subsequent  options,  as  in  the  option  line
                    user,exec,dev,suid).


SecretCode 02-01-2012 02:48 PM

Aha. We have a suspect.

Macburp 02-01-2012 05:00 PM

Added 'exec' to fstab as suggested, and rebooted. I then tested by running the Flaah-aid plug-in in firefox, which opens a terminal and writes to /home - previously this plug-in would hang at an open terminal window.

Well, flash-aid ran fine, so I think this one is solved. Thanks to all for advice and assistance.


All times are GMT -5. The time now is 08:28 PM.