LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing permisson settings to /mnt/ devices? (https://www.linuxquestions.org/questions/linux-newbie-8/changing-permisson-settings-to-mnt-devices-65544/)

unitcoed 06-14-2003 03:45 AM

changing permisson settings to /mnt/ devices?
 
I partitioned my Harddisk so that I could have all my music on one partition, documents and files on the other, and my Linux OS on the other..

The strange thing is, I can add/delete files in the music partition, but the other parition for documents cannot be modified (files can only be viewed)....

I logged into the ROOT, went to the /mnt/ directory and attempted to change the folder owner to my user, but it says that I don't have permission to do so :confused:. (the owner of the folder is the root)

Is there anyway I can change permission settings in the terminal so that my user can modify folders in this folder?

carlywarly 06-14-2003 03:49 AM

You may well have to modify your /etc/fstab file, so post it here and it should be possible to alter it to let you do what you want.

lokee 06-14-2003 06:33 AM

In your /etc/fstab file, make sure the partition isn't loaded with the 'ro' option,
then put this option: 'umask=0003', it will set all file permissions to 'rwxrwxr-x'.

unitcoed 06-14-2003 07:35 AM

/dev/hda6 /mnt/shared vfat rw,auto,noexec,user,uid=kris 0 0
/dev/hda4 /mnt/music vfat rw,auto,noexec,user,uid=kris 0 0

err.. there isn't an 'ro' option but there is 'rw'...

Should I add the unmask=003 option?

by the way, thanks for the quick replies :)
-Kris

acid_kewpie 06-14-2003 09:21 AM

003 is for rwxrwxr--, 002 is for what you suggested. so add umask=000 or umask=002 to the options line yes. (you then won't really need that uid= option...)


All times are GMT -5. The time now is 10:57 PM.