LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-30-2003, 07:36 AM   #1
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Rep: Reputation: 30
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?
 
Old 09-30-2003, 02:46 PM   #2
T2F
LQ Newbie
 
Registered: Sep 2003
Location: "The South Coast of Texas"
Distribution: slackware
Posts: 12

Rep: Reputation: 0
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
 
Old 09-30-2003, 03:02 PM   #3
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
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.
 
Old 09-30-2003, 04:28 PM   #4
dotT
LQ Newbie
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 9.2
Posts: 17

Rep: Reputation: 0
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
 
Old 10-01-2003, 05:08 AM   #5
jspaceman
Member
 
Registered: Dec 2000
Location: Toronto, Canaduhhhh
Distribution: Slackware -current, OpenBSD 3.8-stable
Posts: 178

Original Poster
Rep: Reputation: 30
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?
 
Old 10-01-2003, 07:18 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change permissions of Windows partition Dimension User Fedora 5 06-05-2005 03:17 PM
Permissions W/ Windows Partition Kedo Linux - Newbie 2 10-16-2004 09:22 PM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 02:44 PM
Problem changing permissions on partition habitue Linux - Newbie 2 10-23-2003 09:56 AM
Changing Permissions of windows drive sub_bastard Linux - Newbie 2 08-03-2003 10:15 PM


All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration