LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changing permissions on my windows partition (https://www.linuxquestions.org/questions/slackware-14/changing-permissions-on-my-windows-partition-98561/)

jspaceman 09-30-2003 06:36 AM

Changing permissions on my windows partition
 
Currently the permissions on my windows partition are as follows:

Quote:

drwxr--r-- 52 root root 16384 Dec 31 1969 windows/
When I try to change the permissions on the windows/ directory, as root, I get the following:

Quote:

chmod: changing permissions of `windows': Operation not permitted
Basically what I would like to do is have a symbolic link in my personal linux home directory to my mp3 folder that resides in windows; so that I can play mp3's in linux as a regular user rather than having to run XMMS as root.

What permissions do I have to change on my windows/ folder? And how do I change them as root so that I don't get the above 'operation not permitted' message?

T2F 09-30-2003 01:46 PM

As you discovered, no one can change the permissions of a fat32 or ntfs partition in the filesystem. It has to be done in /etc/fstab. Run a search on "mount windows filesystem" and you will get all the answers you need.
Regards,
Bill

webtoe 09-30-2003 02:02 PM

in your /etc/fstab file,
the line about your windows drive/partition

it needs the word user in it, before the two numbers at the end.

It might look a little like this (done from memory so forgive me if it is wrong):

/dev/hdb1 /mnt/windows/ vfat user,auto,rw 0 0

Its the user bit that's important.

Then just do a simple:

ln -s /mnt/windows/music /home/alex/Music

This will create a Music shortcut/alias/symbolic link in your home directory to the music stored in /mnt/windows/music

You'll have to change certain things to pertain to your setup but most of it should be similar.

HTH

Alex
P.S. You will have problems writing to your windows partition though. For example if you try to write ID3 tags. You'll need to add a umask= in the same place you put user before. I can't remember what number umask has to equal but search the boards. It's been posted before.

dotT 09-30-2003 03:28 PM

I've got a similar setup where I read and write mp3's to a windows partition.
umask=0 seems to work... this is from my fstab -

/dev/hda1 /mnt/win_c vfat iocharset=iso8859-15,codepage=850,umask=0 0 0

jspaceman 10-01-2003 04:08 AM

OK, my current entry for my /windows partition reads:

Quote:

/dev/hdc1 /windows vfat defaults,umask=000 1 0
I seem to be able to access my /windows folder as a regular user and read and write stuff to it. Would I benefit at all from adding the 'user' option to my above fstab entry so that it reads 'defaults,user,umask=000' or is that not necessary?

And since I'm on an /etc/fstab tip. The entry for my cd burner reads:

Quote:

/dev/hdb /cdwriter auto ro,noauto,user,exec 0 0
Should I add a 'umask' in there as well, or change the 'ro' to an 'rw', or something like that, so that regular users can use the cd burner?

acid_kewpie 10-01-2003 06:18 AM

no, it's more low level than that, you just need to manage the rights on the block device itself... /dev/hdb


All times are GMT -5. The time now is 04:55 PM.