LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-17-2009, 07:23 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Owner could not execute files until mounted in fstab? A question...


I'm trying to understand the last few hours... I installed slackware 13 yesterday in a multiboot system. On a seperate hdd from all the OS's I have my mp3 collection......I could play the mp3's as root after manually mounting sdb, but as a user I was unable to play them even though I chown'ed and chmod'ed 777 until I mounted sdb in fstab. The second drive was formatted ntfs by vista. Any idea what that was about?
 
Old 11-17-2009, 07:33 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
If something is mounted using fstab, convention states that means the system admin (root) wants the device mounted. Then appropriate permissions are created/inherited/changed on the mountpoint. Something mounted by root manually after boot may need to be chmod'd etc. to suit.

Most new distros, not sure about slack, use some virtual file system in the users home directory to deal with external devices. I imagine in slack there is a tool to modify settings in there to allow a regular user mount and unmount an NTFS drive as required. Dunno exactly what that might be, mind! In ubuntu, running gnome, it's found at: System -> Administration -> Authorisations

Last edited by irishbitte; 11-17-2009 at 07:44 PM. Reason: wrong pointer!
 
Old 11-17-2009, 07:45 PM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
That's the part that confused me, as root I mounted the drive, then chown to the user then chmod 777 for good measure. I could copy the file to my home directory and still not execute I could write to the drive as well. I just couldn't execute the files until fstab was edited and I rebooted. Just seems very weird to me.
 
Old 11-17-2009, 07:49 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Well, remember, you can't change linux permissions on an NTFS volume anyway, only root can execute stuff from there, for good reason!
Quote:
The second drive was formatted ntfs by vista
 
  


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
Default owner when fstab is mounting designed123 Linux - Server 3 07-27-2009 07:41 PM
Question concerning fstab, umask, chmod and executable files pmdkh Linux - General 4 03-21-2009 11:31 PM
permissions and owner of ntfs mounted drive bloodyscript Linux - Newbie 4 11-10-2008 05:24 PM
Can't execute NFS mounted script hexbox Linux - Networking 2 02-03-2005 05:59 PM
I can't execute scripts in mounted fs Dasc Linux - General 3 12-16-2004 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

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
Open Source Consulting | Domain Registration