Best way to do this is to add a group and put all members that you want to have access to the drive in that group.Originally Posted by SwampDonkey
Example for creating a windows group. You can use any name you wish.
Login as root user
Create a new group:
#groupadd windows
Find out what the new ID number for the group is:
#cat /etc/group | grep windows
Output will look similiar to this:
windows:x:501:
501 here is the new group ID
Make your user a member of the new group:
#usermod -G windows username
Replace username with the name of the user you want to have access
You can see what groups you are a member of with:
#groups username
Output will look like this:
username : username windows
Red Hat defaults to creating a group for each user.
Edit /etc/fstab and save the changes:
/dev/hda1 /drive_c ntfs noauto,users,gid=501,umask=007 0 0
Unmount/remount the drive
#umount /drive_c
#mount /drive_c
Note you will probably have to logout and login back in.
Also note I am using "users" and not "user". The difference is that when the drive is mounted "user" only the user and root can unmount the drive. With "users" any user with permissions to access the drive can unmount the drive even if it was mounted by another user.
I should add this to the article.
Jim H


Reply With Quote
Bookmarks