View previous topic :: View next topic |
Author |
Message |
tebers Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Gordon_Freeman.gif)
Joined: 24 Apr 2002 Posts: 115 Location: Germany, Kirchheim near Munich
|
Posted: Mon Jun 16, 2003 9:41 am Post subject: How to change group owner of partitions ? |
|
|
look subject |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
psp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/21040721573ef85b8523988.png)
Joined: 06 Aug 2002 Posts: 120 Location: Cape Town, South Africa
|
Posted: Mon Jun 16, 2003 12:00 pm Post subject: |
|
|
Not the most informative posting...
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 |
|
![](templates/gentoo/images/spacer.gif) |
tebers Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Gordon_Freeman.gif)
Joined: 24 Apr 2002 Posts: 115 Location: Germany, Kirchheim near Munich
|
Posted: Mon Jun 16, 2003 12:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Zu` l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Mon Jun 16, 2003 12:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
tebers Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/HalfLife/Half_Life_-_Gordon_Freeman.gif)
Joined: 24 Apr 2002 Posts: 115 Location: Germany, Kirchheim near Munich
|
Posted: Mon Jun 16, 2003 12:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
psp Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/21040721573ef85b8523988.png)
Joined: 06 Aug 2002 Posts: 120 Location: Cape Town, South Africa
|
Posted: Mon Jun 16, 2003 12:44 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
flurix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Mar 2003 Posts: 26
|
Posted: Mon Jun 16, 2003 12:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|