LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-10-2008, 06:30 AM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Rep: Reputation: 44
Question how to change drive permisions


i havn't struck any real issues with this yet, but i'd like to know how i can change the permissions of a mounted drive to a user rather than root, i have all my documents stored on a second partition of my HDD in a FAT32 FS, just for linux win XP cross-compatability, i mounted it as

/home/*user*/MyDocuments

at install time, but now the permissions are all for root and not *user* could someone tell me how to change this, it's using ubuntu x86_64 7.10
 
Old 02-10-2008, 08:06 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Edit /etc/fstab. Look at the mount options.

Add 'user' if you want the user to be able to munt/umount the partition. Add *nouser* if you don't want the user to mount/umount. Nouser is the default.

Add rw if you want the user to be able to read/write to the partition. Add ro if you don't want the user to read/write. I beleive *ro* is the default, but I'm not certain.

Save and close the file, then remount the partition.

Last edited by bigrigdriver; 02-10-2008 at 08:07 AM.
 
Old 02-10-2008, 10:41 PM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Gentoo / Debian / Rasbian / Proxmox
Posts: 519

Original Poster
Rep: Reputation: 44
right, i'll look into that, thx, can you modify these options as you use the "mount" command? i was also trying to use chmod but i didn't have a real lot of success there
 
Old 02-11-2008, 03:18 AM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
When you mount the drive, you cold also do something like this
Code:
mount -o umask=000 /dev/hdxy <mountpoint>
which will give the user 777 privs on the partition (obviously you'd need to substitute the actual partition and mountpoint you're using)

The umask option of course could also be changed to allow different permissions
 
  


Reply



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
change bzip2 output file permisions ricksoft Linux - Security 5 08-18-2006 04:05 PM
howto chowto change file permisions in multiplhange file permisions in multiple dirs? pingvina Linux - Software 3 01-13-2006 03:10 PM
permisions charnel Linux - General 3 07-10-2005 02:53 PM
permisions with subdirs of a fat32 drive poiuytrewq Linux - Newbie 3 11-02-2004 02:57 PM
drive permisions newbie03 Linux - Newbie 3 01-10-2004 06:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:21 PM.

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
Open Source Consulting | Domain Registration