LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-25-2007, 12:59 PM   #1
Cage47
Member
 
Registered: Feb 2003
Location: Pasadena, TX
Distribution: Debian Lenny
Posts: 220

Rep: Reputation: 31
Question on mounting partitions and permissions


Got etch running nicely. But I have an issue I would like to work out, not necessarily Debian issue but did't have this before in Mandrake. I've got 3 partitions extra on my machine. hda1 is the windows drive, hdb1 is Windows D: and hda2 is an archive drive I use for data storage and transfers (formated ext2). Now I've got the permisions set on all those drives to allow group read writes and they are in the disk group which has all my users as part of that group. However when I put auto in fstab for each drive the drive permissions switch to root owner and root group. Making the drives unwritable to users. Then if I manually unmount the drives the permission reverts to what I set it as.

Now I find if I put noauto in fstab and they aren't mounted at boot, I can mount them manually as user and can read write fine.

Now I would like to have these drives mounted with wr permissions for users in group disk as the family isn't as tekkie as me about mounting and unmounting. So am I missing something? Any ideas?
 
Old 04-25-2007, 01:15 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You should be able to set the gid in fstab to always boot the drive as that group permissions.
 
Old 04-25-2007, 01:26 PM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Replace the "auto" entry under "options" with either "defaults" or "user,noauto".
 
Old 04-25-2007, 02:06 PM   #4
Cage47
Member
 
Registered: Feb 2003
Location: Pasadena, TX
Distribution: Debian Lenny
Posts: 220

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by Dutch Master
Replace the "auto" entry under "options" with either "defaults" or "user,noauto".
That's the point. I did do that. But that's also the problem. I want the drives to mount auto with user permissions. All three drives have rw,user,noauto for now. SO I can mount them and write to them as user. But I want them already mounted on boot. I did try setting the gid but that didn't help either. Still when they are mounted at boot the permissions are switched to owner root and group root.

Oh, do you mean change the gid of the fstab file itself? Not just the drive dirs in /mnt? I'll try that.
 
Old 04-25-2007, 03:28 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by Cage47
Oh, do you mean change the gid of the fstab file itself?
Not of the fstab file. in the fstab file, where you have user,rw,auto add gid=xxxx (the gid of your disk group).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
Mounting NTFS partitions question danritter Linux - Newbie 2 09-12-2005 02:14 AM
partitions and permissions muddywaters Linux - Newbie 1 08-29-2005 03:53 PM
mounting fat partitions with special permissions nagromo Linux - Software 1 04-20-2005 07:17 PM
Newbie Question (mounting drives/partitions) Abremelin Linux - Newbie 11 07-01-2002 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:01 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
Open Source Consulting | Domain Registration