LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-06-2006, 11:29 AM   #1
Graham_R
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
Changing group on usb disk/pendrive


Hello

I am using Fedora 6 and it works fine, except that when I use an external disk the group is always set to root and it can't be changed, neither can the perms.

I get this at cmd line

[root@Strangeness media]# chgrp newgrp MATRON/
chgrp: changing group of `MATRON/': Operation not permitted

Not really a problem until I want to use rsync - which fails because it needs to change the perms/group temporarily.

Any help would be really good

Thanks

Graham
 
Old 12-06-2006, 03:07 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
Since this is Fedora6, I am assuming that the pendrive is being automounted when you plug it in. As such, I am sure that there is a setting somewhere amongst the automount settings that also sets the group ownership of the drive when it mounts.

Unfortunately, I don't really know how Fedora handles pendrive mountings these days, so beyond that I am pretty much useless without installing Fedora 6 on a box myself and playing with it for a little while.
 
Old 12-07-2006, 06:43 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
set to root and it can't be changed, neither can the perms.
irrespective of the automount system, as root nothing should stop you to change grps etc, unless you have mounted the drive read only

As a temp fix you could type commands as root (once drive mounted)
mount
cat /etc/fstab
and get inspired to mount manually the drive somewhere else

You may want to look at the /mnt permissions

Not using fc5 either. In MDV level of security affects the mounting of usb drive.
 
Old 12-07-2006, 06:45 AM   #4
Graham_R
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Hiya Wells

It looks like the problem is that it is formatted as windoze partition, vfat has no notion of groups/ownership etc and so it cannot be changed. ntfs will have the same problem I am told. It would be good if fedora had covered this problem by allowing it at a local level to allow rsync etc to run - perhaps in the next release....

I tried mounting manually and I get the same problem so it looks like reformatting to ext3 will be the solution.

Thanks again

Graham
 
Old 12-07-2006, 06:58 AM   #5
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
excellent your post saying what you find out

Quote:
windoze partition, vfat
In your interest in the future try to give as much details as possible, if you had posted the result of mount we would straight away "said vfat", forget about it. Just see it as a learning point
 
Old 12-07-2006, 09:48 AM   #6
my.dying.bride
LQ Newbie
 
Registered: Nov 2006
Distribution: Vector Soho Edition 5.1(Best yet)
Posts: 25

Rep: Reputation: 15
Group permissions on vfat can be changed when mounting but not when mounted. I use vfat a lot so i have edited fstab , changed gid=0 to some other group number X , which in turn gives group X write permissions. This can also be done by mount -t vfat .. command with gid=X as an option. (of course unmount usb drive first or use remount option)

Last edited by my.dying.bride; 12-07-2006 at 10:03 AM.
 
  


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
usb pendrive carmelo Slackware 3 04-08-2006 10:09 AM
USB Pendrive DarkAsHell Linux - Hardware 3 04-07-2005 03:26 PM
USB pendrive help jojotx0 Fedora 12 09-14-2004 02:49 AM
Accessing a USB pendrive.. KNIVES Linux - Hardware 6 07-11-2004 10:30 PM
USB Pendrive d4d4n9 Mandriva 7 02-03-2004 08:44 PM

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

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