LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2008, 01:57 PM   #1
CelticBlues
LQ Newbie
 
Registered: Jan 2005
Posts: 29

Rep: Reputation: 15
Problem mounting a drive via mount point under home


I have a secondary hard disk, /dev/sdb1, which I want to mount using a mount point which is a directory under my user home. In my fstab I have the following entry:

/dev/sdb1 /home/myhome/secondarydisk ext2 rw,suid,dev,exec,auto,user,sync 0 0

I can read/write to the drive, but when I build an app on this drive I can't execute it. The app has the following permissions:

-rwxr-xr-x

Which I thought gave me permissions to execute the app. What have I done wrong?

Thanks,

CB
 
Old 06-17-2008, 02:26 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
Check the permissions for the /home/myhome/secondarydisk directory. Make sure that it allows program execution.

--------------------
Steve Stites
 
Old 06-17-2008, 02:30 PM   #3
CelticBlues
LQ Newbie
 
Registered: Jan 2005
Posts: 29

Original Poster
Rep: Reputation: 15
It does...
CB

Quote:
Originally Posted by jailbait View Post
Check the permissions for the /home/myhome/secondarydisk directory. Make sure that it allows program execution.

--------------------
Steve Stites
 
Old 06-17-2008, 03:36 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
What happens when you try to run the application? eg error messages.
 
Old 06-17-2008, 04:35 PM   #5
CelticBlues
LQ Newbie
 
Registered: Jan 2005
Posts: 29

Original Poster
Rep: Reputation: 15
I get this:

bash: /home/myhome/secondarydisk/myapp: Permission denied

The permissions of /home/myhome/secondarydisk is: drwxrwxr-x

It seems that the owner of the /home/myhome/secondarydisk directory is user 505, which is not listed in the table of users or groups.

CB

Quote:
Originally Posted by pixellany View Post
What happens when you try to run the application? eg error messages.
 
Old 06-17-2008, 04:41 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Quote:
/dev/sdb1 /home/myhome/secondarydisk ext2 rw,suid,dev,exec,auto,user,sync 0 0
Take a look at the mount man pages. The user option implies noexec, nosuid, and nodev which will override anything prior. The mount command without options will show how each filesystem is mounted.
 
Old 06-17-2008, 04:43 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by CelticBlues View Post
I get this:

bash: /home/myhome/secondarydisk/myapp: Permission denied

The permissions of /home/myhome/secondarydisk is: drwxrwxr-x

It seems that the owner of the /home/myhome/secondarydisk directory is user 505, which is not listed in the table of users or groups.

CB
A mount point cannot also be used as a regular directory. Try creating a directory under /home/myhome/secondarydisk and put your programs there. In other words create something like:

/home/myhome/secondarydisk/bin/myapp

----------------------
Steve Stites
 
Old 06-17-2008, 04:46 PM   #8
CelticBlues
LQ Newbie
 
Registered: Jan 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Actually the app is not in the root directory...it is several down

something like...

/home/myhome/secondarydisk/development/projects/newproj/thisone/trunk/bin


CB

Quote:
Originally Posted by jailbait View Post
A mount point cannot also be used as a regular directory. Try creating a directory under /home/myhome/secondarydisk and put your programs there. In other words create something like:

/home/myhome/secondarydisk/bin/myapp

----------------------
Steve Stites
 
Old 06-18-2008, 11:30 AM   #9
CelticBlues
LQ Newbie
 
Registered: Jan 2005
Posts: 29

Original Poster
Rep: Reputation: 15
Ding Ding Ding.... We have a winner.... the user option was over riding the previous options... I removed 'user' and now it is all working like I thought it should....Thanks,

CB


Quote:
Originally Posted by michaelk View Post
Take a look at the mount man pages. The user option implies noexec, nosuid, and nodev which will override anything prior. The mount command without options will show how each filesystem is mounted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux, FAT32, and /home mounting point question rshields9093 Linux - General 6 10-16-2006 08:54 AM
mount error: mount point /home/me/x does not exist whil Fedora 3 05-24-2006 11:39 AM
FreeBSD /home mount point question Ahmed *BSD 5 11-07-2005 09:58 PM
Same /home mount point for two distros? jaristr Linux - General 4 08-18-2005 12:27 PM
mapping home directories to different mount point jjohnston62 Linux - General 5 11-05-2003 05:42 PM


All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration