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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-29-2007, 12:53 PM
|
#1
|
Member
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53
Rep:
|
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.
|
|
|
10-29-2007, 02:45 PM
|
#2
|
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Rep:
|
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..
|
|
|
10-29-2007, 03:07 PM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Rep:
|
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
|
|
|
10-29-2007, 03:56 PM
|
#4
|
Member
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53
Original Poster
Rep:
|
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
|
|
|
10-29-2007, 04:26 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 12
Rep:
|
/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.
|
|
|
10-29-2007, 06:29 PM
|
#6
|
Member
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53
Original Poster
Rep:
|
Quote:
Originally Posted by samthakur
/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.
|
|
|
All times are GMT -5. The time now is 10:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|