Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to change group owner of partitions ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tebers
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 115
Location: Germany, Kirchheim near Munich

PostPosted: Mon Jun 16, 2003 9:41 am    Post subject: How to change group owner of partitions ? Reply with quote

look subject
Back to top
View user's profile Send private message
psp
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2002
Posts: 120
Location: Cape Town, South Africa

PostPosted: Mon Jun 16, 2003 12:00 pm    Post subject: Reply with quote

Not the most informative posting... :wink:

I presume you want to change the default permissions of a mounted disk partition?

The default mount options is to mount a partition with the option "nouser" which forbids an ordinary user to mount the filesystem.
You can change this by modifying the mount options in the /etc/fstab file. For example to add permission for all your users to read and write to files on the floppy disk you should change the line in /etc/fstab from:
Code:

/dev/fd0    /mnt/floppy    vfat    noauto    0 0

to:
Code:

/dev/fd0    /mnt/floppy    vfat    noauto,users    0 0

See the mount manpage for more details...(search for -o)

Hope this helps...
Back to top
View user's profile Send private message
tebers
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 115
Location: Germany, Kirchheim near Munich

PostPosted: Mon Jun 16, 2003 12:13 pm    Post subject: Reply with quote

well somehow you are right :-)

no i like to get acces to the /dev/hda5 for vmware and the owner is listed as root and group as well as root.
I like to get access now for this. I suppose because /dev/hda5 is rw------
i cannot access it even if i am memebr of root-group.
I like to have my partions member of disk-group and allowing members access to them.
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Mon Jun 16, 2003 12:14 pm    Post subject: Reply with quote

psp wrote:

See the mount manpage for more details...(search for -o)


That should be all the information he/she needs to know, but IIRC there's an option uid and gid, which can be set to specify userid and/or groupid, respectively. That way you can allow all the users in say, group 1001, to access a certain mounted partition.

I would check the man page myself to verify, but I'm not working in Gentoo/Linux at this very moment.

Hope that helps.
_________________
No growth without resistance.
No action without reaction.
No desire without restraint.
Back to top
View user's profile Send private message
tebers
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 115
Location: Germany, Kirchheim near Munich

PostPosted: Mon Jun 16, 2003 12:22 pm    Post subject: Reply with quote

the options in fsta allows only to mount and dismount these partitions.
Because i like use a dedicated partition (ntfs) with vmwarethey cannot and should not be mounted with linux. I think the solution is something with devfs ??
Back to top
View user's profile Send private message
psp
Tux's lil' helper
Tux's lil' helper


Joined: 06 Aug 2002
Posts: 120
Location: Cape Town, South Africa

PostPosted: Mon Jun 16, 2003 12:44 pm    Post subject: Reply with quote

Ahh... I see your problem...

Yes, the problem/solution is indeed with devfsd. You should be able to solve it using adding your own file to /etc/devfs.d:
Code:

# This is the /etc/devfs.d/hda5.conf file.
REGISTER     ^ide/host0/bus0/target0/lun0/part5     PERMISSIONS root.disk    0660

This should change the permissions to root:disk 0660 on the partition you want.
Give devfsd a HUP or USR1 signal for it to re-read the config file for the changes to take effect. Please see the defsd manpage for more options.

Hope this helps...
Back to top
View user's profile Send private message
flurix
n00b
n00b


Joined: 24 Mar 2003
Posts: 26

PostPosted: Mon Jun 16, 2003 12:46 pm    Post subject: Reply with quote

Quote:

no i like to get acces to the /dev/hda5 for vmware and the owner is listed as root and group as well as root.


I don't really know how vmware works, but it seems like you need to change the
permissions of device special files. Asuming you have a group named 'vmware' and
want to give it r/w access to /dev/hda5, do this as root:

# chgrp vmware /dev/hda5
# chmod g+rw /dev/hda5

This should be enough (at least if some program/script/library does not
change the permissions back)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum