LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-16-2005, 07:28 PM   #1
XJNick
Member
 
Registered: Dec 2003
Location: Texas
Distribution: Mandriva, SuSE
Posts: 79

Rep: Reputation: 15
Question Mount and Permissions


Hi,

The following has me stumped: I now have 3 hard drives: The primary (hda) on which I'm currently running Fedora Core 3, a secondary (hdb) which I use for testing other distributions/versions and such, and now another secondary (hdd) which I want to use as file storage.

I can successfully mount all the ext3 partitions on hdb and hdd using the command: mount -t ext3 /dev/hdb6 /mnt/hdb6 , and so on, but am tired of having to be root to move around files.

So my question is how can I mount those partitions so that I can read and write to them from my normal user account?

I've tried using commands including (but not limited to):
mount -t ext3 -o user,rw,exec,uid=500 /dev/hdd1 /mnt/hdd1
mount -t ext3 -o user,rw,exec,uid=500,umask=000 /dev/hdd1 /mnt/hdd1
mount -t ext3 -o ro,uid=500 /dev/hdd1 /mnt/hdd1
mount -t ext3 -o ro /dev/hdd1 /mnt/hdd1

and nothing works. All but the last one give me an error, and none of them make it so I can read/write to my other partitions as a non-root user. I've also tried adding to fstab, and that returns errors also. So what am I doing wrong?

Thanks,
 
Old 05-16-2005, 07:30 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
You need to make sure the files on the actual partition can be written to by the user, ext3 supports linux permissions you you might need to do a little chown -R
 
Old 05-17-2005, 03:32 PM   #3
XJNick
Member
 
Registered: Dec 2003
Location: Texas
Distribution: Mandriva, SuSE
Posts: 79

Original Poster
Rep: Reputation: 15
Hi,

Thanks. I had actually tried using chown -R before, but it wouldn't work, saying the files were read only (even though I was using it as root). Though, I hadn't tried it recently, and I discovered that once I had mounted the filesystems using only the -o rw option, chown -R worked and I was able to make all the files belong to my normal user. Problem solved

I figured it was something simple that I was overlooking...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount permissions baseballtwin86 Linux - Newbie 3 10-13-2004 03:31 PM
mount permissions RTT Linux - Newbie 5 03-08-2004 11:13 AM
mount permissions bb_matt Slackware 15 01-13-2004 09:40 AM
Mount Permissions Camasii Linux - General 2 12-08-2003 04:26 AM
Mount Permissions Odd_Bloke Linux - Newbie 2 08-26-2003 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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