editing /etc/fstab--for rw permissions for all users
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The problem is that i still don't have write permissions to those two vfat drives as a normal user (I know I am wrong somewhere but don't know where please point out)
Also now I have two icons named win1 and win2 on my desktop whereas i didn't have them with the previous fstab.
So, what i want now is to have write and execute permissions for win1 and win2 for all users and also i don't want those two icons to be messing up with my desktop
add umask=000 to the options part of the VFAT drives.
The umask is the value of read/write/execute permissions that are NOT present. (i.e. if 777 is read+write+execute then the umask is 000).
This means that all files on those drives will be read/write and executable for everyone.
If you're wondering, the user flag just means that a regular user can mount the drive. If they should unmount as well then use 'users' instead.
I have write permissions to /win2 for all users but for /win1 the case is different :
For /win1 i have write permissions (as a normal user) only in the first level in the directory tree or in the lowest level and not anywhere else :
i.e.
Code:
[koodoo@localhost koodoo]$ cd /win1
[koodoo@localhost win1]$ ls
Flash Fun Movies Songs tc tt6 WALLPAPERS
[koodoo@localhost win1]$
i.e. as a normal user :
I can write in /win1/
but not in /win1/Flash\ Fun or /win1/Movies or /win1/Songs .......................
also
Code:
[koodoo@localhost win1]$ ls
Flash Fun Movies Songs tc tt6 WALLPAPERS
[koodoo@localhost win1]$ cd Movies/
[koodoo@localhost Movies]$ ls
axn Moon tomnjerry
[koodoo@localhost Movies]$ cd axn/
[koodoo@localhost axn]$ls
first.mpeg last.mpeg
i can write in /win1/Movies/axn/
The system also appears to run remarkably slower
Any ideas ??
Also for more info fdisk -l gives :
Code:
[root@localhost root]# fdisk -l
Disk /dev/hda: 40.0 GB, 40057224704 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2435 19559106 c Win95 FAT32 (LBA)
/dev/hda2 2436 4870 19559137+ f Win95 Ext'd (LBA)
/dev/hda5 2436 3653 9783553+ b Win95 FAT32
/dev/hda6 3654 4804 9245376 83 Linux
/dev/hda7 4805 4870 530113+ 82 Linux swap
Thanx guys I've resolved the problem.I just logged in as root and checked permissions for those files I wasn't able to write to as a normal user. As expected they were 555. So I simply changed them to 777 and now i have all the permissions as a normal user.
I not very clear about file permissions and masks
So sorry if I had done something stupid and kept u guys busy
Also I am now trying to learn more about file permissions and masks. Will try googling for it.
If anyone has a link to a good HOWTO on this please pass me the link
Thanx guys I've resolved the problem.I just logged in as root and checked permissions for those files I wasn't able to write to as a normal user. As expected they were 555. So I simply changed them to 777 and now I have all the permissions as a normal user.
I not very clear about file permissions and masks
So sorry if I had done something stupid and kept u guys busy
Also I am now trying to learn more about file permissions and masks. Will try googling for it.
If anyone has a link to a good HOWTO on this please pass me the link
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.