Chukchi Husky
Apr 16, 2008, 07:14 AM
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?
|
View Full Version : Hard drive permissions on Xubuntu Chukchi Husky Apr 16, 2008, 07:14 AM 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? GVBN Apr 16, 2008, 07:24 AM Open /etc/fstab with a text editor and set hard drive options to umask=022 (755 permissions) Chukchi Husky Apr 16, 2008, 08:32 AM 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? Ankka Apr 16, 2008, 09:41 AM 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. Chukchi Husky Apr 16, 2008, 09:51 AM Thunar didn't work. I tried the way described on the Ubuntu documentation and that didn't work. GVBN Apr 16, 2008, 10:55 AM This is what came up when I opened etc/fstab What am I supposed to change? None of those look like a secondary hard drive. Post your /etc/mtab Chukchi Husky Apr 16, 2008, 02:17 PM 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,umas k=077,usefree 0 0 GVBN Apr 16, 2008, 02:49 PM Copy the last line to /etc/fstab and change umask=077 to umask=022 Like this /dev/sdb2 /media/HDD\0402 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umas k=022,usefree 0 0 Chukchi Husky Apr 17, 2008, 04:44 AM When I try to save it a message comes up saying "Can't open file to write". GVBN Apr 17, 2008, 04:48 AM Open it as root. Sudo command in Ubuntu Chukchi Husky Apr 17, 2008, 05:14 AM How do I open it in the terminal? GVBN Apr 17, 2008, 05:17 AM sudo nano /etc/fstab Chukchi Husky Apr 17, 2008, 05:27 AM How do I save the changes? GVBN Apr 17, 2008, 05:35 AM Ctrl+x and answer (y)es when it asks you to save the file Chukchi Husky Apr 17, 2008, 05:40 AM 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. GVBN Apr 17, 2008, 05:52 AM Did you reboot? The drive should be mounted during startup. If it doesn't then add auto to options Chukchi Husky Apr 17, 2008, 06:13 AM I restarted the computer. The permissions is now read only for everyone (I can still read and write). Pentium Apr 21, 2008, 03:43 PM If you want it to be writable for everyone, remove the umask part, so that the line looks like/dev/sdb2 /media/HDD\0402 vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,usef ree 0 0And then reboot. |
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.