LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-29-2007, 12:53 PM   #1
Fugazi
Member
 
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53

Rep: Reputation: 15
Permission problem


Hi. I'm trying to set up MythTV. When I set up my system, I have 1 drive being shared by Windows and Linux. I have a seperate 300 gig drive formatted as NTFS for recordings.

I have it mounted at /mnt/storage

I tried to do chown don:don storage (as root)

It seems to run, but the owner doesn't change. I also made a directory on the drive called store.... i.e. /mnt/storage/store and then chown on that, and the owner doesn't change.

I tried to do a chmod also, and I can't get write privileges. I need write privileges so MythTV can write to the drive.

Is it because it's an NTFS partition?


Any help would be great... thanks.
 
Old 10-29-2007, 02:45 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Don't know but could it be the way it's mounted - the instructions for how to mount it in /etc/fstab?? Ownership of file system uid gid mode exec etc..
 
Old 10-29-2007, 03:07 PM   #3
samthakur
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Rep: Reputation: 0
Dude, you need to install latest ntfs drivers. Try this command :
yum install ntfs-3g
After finishing installation use the following commands :

ntfs-3g <device> <mount point>

e.g.
ntfs-3g /dev/hda1 /mnt/storage
 
Old 10-29-2007, 03:56 PM   #4
Fugazi
Member
 
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53

Original Poster
Rep: Reputation: 15
Oh jeez yeah. Thanks, forgot to mention that.

I have ntfs-3g installed (root wrote to the drive, no problem.)

The line from fstab is:


/dev/sdb5 /mnt/storage ntfs-3g rw,defaults,umask=0222 0 0

and ls -al from the /mnt directory looks like:


[don@localhost mnt]$ ls -al
total 28
drwxr-xr-x 4 root root 4096 2007-10-28 21:12 .
drwxr-xr-x 23 root root 4096 2007-10-29 11:14 ..
dr-xr-xr-x 1 root root 8192 2007-10-29 11:10 ntfs
dr-xr-xr-x 1 root root 4096 2007-10-29 10:34 storage

I just want to change the owner of give users write privileges... either way, doesn't matter to me.

thanks
 
Old 10-29-2007, 04:26 PM   #5
samthakur
LQ Newbie
 
Registered: Oct 2007
Posts: 12

Rep: Reputation: 0
/etc/fstab entry :

/dev/sdb5 /mnt/storage ntfs-3g rw,uid=1000 0 0

Above entry will mount /dev/sdb5 to /mnt/storage and make user with uid 1000 to be the owner of all files.
 
Old 10-29-2007, 06:29 PM   #6
Fugazi
Member
 
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by samthakur View Post
/etc/fstab entry :

/dev/sdb5 /mnt/storage ntfs-3g rw,uid=1000 0 0

Above entry will mount /dev/sdb5 to /mnt/storage and make user with uid 1000 to be the owner of all files.

That did the trick... thanks very much.

Now on to getting my remote working. Should be lots of head banging squishy fun.
 
  


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
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 06:55 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
Permission problem kalyanofb Programming 1 02-26-2007 01:51 AM
Permission Problem scbops Linux - Newbie 2 12-07-2006 01:39 AM
permission problem - "You don't have permission to access" radone Linux - General 3 07-24-2006 11:23 AM


All times are GMT -5. The time now is 02:55 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