Hi friends, I had formatted my complete hard drive to install debian linux. One of the partitions I had made was a FAT32 partition. But, due to some mistakes in partitioning I had to repartition my hard disk. But, this time I left my FAT32 partition untouched. I have mounted it as /entertainement Now, I cannot write to that partition using normal user account. Though I can do it as root. I tried to change the permissions using root but I couldn't allowing to do so. Any ideas about what can I do?
Sometime Today, m cobbled together some glyphs to say:
disk. But, this time I left my FAT32 partition untouched. I have mounted it as /entertainement Now, I cannot write to that partition using normal user account.
In your /etc/fstab for the /entertainment line, add umask=000 to the options field. If you don't understand what I just said, then read man fstab (completely).
Philip
This is how my fstab line looks /dev/hda5 /entertainment vfat rw,user,mehul,auto 0 0 I even tried phillip's solution but still no success.
mehul wrote:
This is how my fstab line looks /dev/hda5 /entertainment vfat rw,user,mehul,auto 0 0 I even tried phillip's solution but still no success.
You have not specified your users and there is no exec entry.
for that options section put this full entry
rw,exec,umask=000,users,uid=your_user_name,gid=your_group_name
This will definately work. :)
Regards,
Rony.
___________________________________________________________ Yahoo! Exclusive Xmas Game, help Santa with his celebrity party - http://santas-christmas-party.yahoo.net/
Sometime Today, RB cobbled together some glyphs to say:
rw,exec,umask=000,users,uid=your_user_name,gid=your_group_name
exec is dangerous because everything is executable. uid and gid is not required if umask is specified.
also, don't forget that you have to mount the drive _after_ you make these changes to fstab
Sometime on Tue, Dec 06, 2005 at 11:20:26PM +0530, mehul said:
This is how my fstab line looks /dev/hda5 /entertainment vfat rw,user,mehul,auto 0 0 I even tried phillip's solution but still no success.
^^^^ That's Philip, with a single `l' :)
Anurag
Thank you everybody. Its solved. I had to modify fstab and unmount it as root and mount it as normal user.
On 12/7/05, Anurag anurag@gnuer.org wrote:
That's Philip, with a single `l' :)
Well that's a typo. :-(
On 12/6/05, Philip Tellis philip.tellis@gmx.net wrote:
In your /etc/fstab for the /entertainment line, add umask=000 to the options field. If you don't understand what I just said, then read man fstab (completely).
I use dmask & fmask instead of umask and use uid=500,gid=100 so that my id (500) can write to the partition and other accounts can only read. So no execute permissions on files here, as defined by the appropriate values of fmask & dmask.
vjp
-- Registered Linux User #374218
Minister of Offense, Preserver of the Way of the Great Llama, Ambassador to India for the Republic of Loungevania
mehul wrote:
I have mounted it as /entertainement Now, I cannot write to that partition using normal user account. Though I can do it as root. I tried to change the permissions using root but I couldn't allowing to do so.
Add this line in your /etc/fstab
/dev/hda? /entertainment vfat rw,exec,users,uid=username,gid=groupname 0 0
Reboot your system.
Regards,
Rony.
___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
On Tue, 2005-12-06 at 23:08 +0530, Rony Bill wrote:
mehul wrote:
I have mounted it as /entertainement Now, I cannot write to that partition using normal user account. Though I can do it as root. I tried to change the permissions using root but I couldn't allowing to do so.
Add this line in your /etc/fstab
/dev/hda? /entertainment vfat rw,exec,users,uid=username,gid=groupname 0 0
Reboot your system.
Reboot is not necessary :)
1. as root umount the file system and 2. then as user "uid" remount the filesystem.
Arun K. Khan wrote:
Reboot is not necessary :)
1. as root umount the file system and 2. then as user "uid" remount the filesystem.
For this bone lazy Rony, could you give the full command line for the remount. :)
Thanks,
Rony.
___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Philip Tellis wrote:
man mount search for remount don't be lazy
I went through it. It has many options and an important point was that when a mount command is given, it looks up the fstab and mounts it accordingly. So I have to simply give 'mount mount_point' or 'umount mount_point' as user. Another thing that initially got me confused was that even if the partition was unmounted, when I clicked on its desktop shortcut, it would show files as if it was mounted. After some investigation it was noticed that on clicking the icon, it was mounting the partition automatically. So the entire exercise was restricted to command line only and everything was correctly displayed.
To be doubly sure, the fstab entry was disabled with a '#' and the machine was rebooted. The partition was not mounted. Now the fstab entry was made active by removing the '#' (to simulate a fresh addition of the line) and as user I simply gave the command 'mount mount_point' and the partition was mounted.
So on final analysis:- First add the appropriate line in fstab as admin. Next, as user simply give the command 'mount mount_point'. The partition is mounted and ready to use. No reboot required. :)
Thanks,
Rony.
___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
Philip Tellis wrote:
man mount search for remount don't be lazy
I went through it. It has many options and an important point was that when a mount command is given, it looks up the fstab and mounts it accordingly. So I have to simply give 'mount mount_point' or 'umount mount_point' as user. Another thing that initially got me confused was that even if the partition was unmounted, when I clicked on its desktop shortcut, it would show files as if it was mounted. After some investigation it was noticed that on clicking the icon, it was mounting the partition automatically. So the entire exercise was restricted to command line only and everything was correctly displayed.
Regards,
Rony.
___________________________________________________________ WIN ONE OF THREE YAHOO! VESPAS - Enter now! - http://uk.cars.yahoo.com/features/competitions/vespa.html