Hard drive permissions on Xubuntu

Chukchi Husky

Lone Wolf
Joined
Jan 28, 2004
Messages
8,573
Location
Carmarthenshire, Wales
On a computer running Xubuntu I have a second hard drive (in the media folder it's called HDD 2), but only I can access it. How do I make it so anyone can access it?
 
Open /etc/fstab with a text editor and set hard drive options to umask=022 (755 permissions)
 
This is what came up when I opened etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=1f30ebe5-7168-44f8-9f4b-0532173f3ff4 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=75ae6f80-d6cb-4bde-aef0-f5d1e3385928 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

What am I supposed to change?
 
I think it might help to also just give 755 permissions to the /media/whatever folder the disk gets mounted to, I'm not sure. You can do this either on the command line or by startin thunar as root ($ sudo thunar on the command line).

It usually helps, but I have a feeling it's not the "real way" to handle it.
 
Here is the etc/mtab.

/dev/sda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.22-14-generic/volatile tmpfs rw 0 0
securityfs /sys/kernel/security securityfs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
/dev/sdb2 /media/HDD\0402 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077,usefree 0 0
 
Copy the last line to /etc/fstab and change umask=077 to umask=022

Like this
Code:
/dev/sdb2 /media/HDD\0402 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=022,usefree 0 0
 
I saved it. Now whenever I try to center the hard drive it says "Cannot mount volume: You are not privileged to mount the volume 'HDD 2'" and "Unable to mount 'HDD 2': Unknown errpr". When I go into the media folder it's disappeared.
 
Did you reboot? The drive should be mounted during startup. If it doesn't then add auto to options
 
If you want it to be writable for everyone, remove the umask part, so that the line looks like
Code:
/dev/sdb2 /media/HDD\0402 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,usefree 0 0
And then reboot.
 
Back
Top Bottom