Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

changing permission on devices

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 09-07-05, 09:30 PM Thread Starter   #1
grimm003
Member

 
grimm003's Avatar 

Join Date: Jul 2004
Location: SIU

 
changing permission on devices


I have a sata drive mounted with all my songs on it, it's ntfs. Now how do I set the permission for it to be read by all users. I've tried this:
chmod a+r /mnt/media
while logged in as root. It then gives me:
chmod: changing permissions of `/mnt/media/': Read-only file system
It sounds like it should work to me, but I still get permission denied when accessing as a user.

__________________
Motherboard ASUS P5Q Deluxe
CPU E8400
RAM Mushkin DDR2-1000 2x2GB
Video Sapphire HD4870 512MB
Case Lian-Li A-7010
Res MCR320-QP
CPU Block GTZ
Video Block MCW60-R2
Pump MCP355

There are 10 kinds of people in the world.
Those that understand binary, and those that don't.
grimm003 is offline   QUOTE Thanks
Old 09-07-05, 09:46 PM   #2
khiloa
Open Source Senior

 
khiloa's Avatar 

Join Date: Jul 2004
Location: /usa/sc/florence

 
I have a line like this in my /etc/fstab file:
Code:
/dev/sda1               /mnt/media   ntfs            ro,user,noauto,umask=002 0 0
and with that I can do exactly what you want; You can even mount it with a normal user. change the /dev/sda1 part to whatever your ntfs partition is, and the /mnt/media part to where you want to mount it.

__________________


Say NO to ads!

Did someone just help you? Thank them.

Along with F@H, please help support some of our other teams.

khiloa is offline   QUOTE Thanks
Old 09-07-05, 09:55 PM Thread Starter   #3
grimm003
Member

 
grimm003's Avatar 

Join Date: Jul 2004
Location: SIU

 
ok, my partitions on my sata drive look like this:
/dev/sda1 /mnt/appz ntfs ro,user,noauto 0 0
/dev/sda2 /mnt/media ntfs ro,user,noauto 0 0

So by my great deduction skills, I see that umask=002 makes the difference. Could you explain to me, briefly, why? Thanks for your help btw

__________________
Motherboard ASUS P5Q Deluxe
CPU E8400
RAM Mushkin DDR2-1000 2x2GB
Video Sapphire HD4870 512MB
Case Lian-Li A-7010
Res MCR320-QP
CPU Block GTZ
Video Block MCW60-R2
Pump MCP355

There are 10 kinds of people in the world.
Those that understand binary, and those that don't.
grimm003 is offline   QUOTE Thanks
Old 09-07-05, 10:02 PM Thread Starter   #4
grimm003
Member

 
grimm003's Avatar 

Join Date: Jul 2004
Location: SIU

 
oh yeah, how do you make those nifty code blocks too?

__________________
Motherboard ASUS P5Q Deluxe
CPU E8400
RAM Mushkin DDR2-1000 2x2GB
Video Sapphire HD4870 512MB
Case Lian-Li A-7010
Res MCR320-QP
CPU Block GTZ
Video Block MCW60-R2
Pump MCP355

There are 10 kinds of people in the world.
Those that understand binary, and those that don't.
grimm003 is offline   QUOTE Thanks
Old 09-07-05, 10:17 PM   #5
MRD
Senior Member

 
MRD's Avatar 

Join Date: Feb 2003
Location: CT

10 Year Badge
 
Add umask=000 as an option in fstab or on the command line when you mount to give permission for all to rwx. This works for any non standard filesystems that do not support a normal unix permission structure, such as ntfs, vfat, msdos, etc.
MRD is offline   QUOTE Thanks
Old 09-07-05, 11:43 PM Thread Starter   #6
grimm003
Member

 
grimm003's Avatar 

Join Date: Jul 2004
Location: SIU

 
thanks, what does the umask=002 do differently than just 000?

__________________
Motherboard ASUS P5Q Deluxe
CPU E8400
RAM Mushkin DDR2-1000 2x2GB
Video Sapphire HD4870 512MB
Case Lian-Li A-7010
Res MCR320-QP
CPU Block GTZ
Video Block MCW60-R2
Pump MCP355

There are 10 kinds of people in the world.
Those that understand binary, and those that don't.
grimm003 is offline   QUOTE Thanks
Old 09-08-05, 03:17 AM   #7
MRD
Senior Member

 
MRD's Avatar 

Join Date: Feb 2003
Location: CT

10 Year Badge
 
Different permissions. 000 is like chmod 777, 002 is like chmod 775.

do a man chmod for an explanation of how the numbers work.
MRD is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 07:37 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?