Page 1 of 1

[SOLVED] Hard drive permissions

Posted: Thu Aug 23, 2012 8:07 am
by M4rtyz
Hello, I have 2 hard drives. 1 is 120GB for operating system and another 500GB for music, films, games etc and I want to allow all users to use that drive, but I'm having problems with that. I go to 500GB properties > Permissions then changing Others folder access from 'None' to 'Create and delete files' , but it changes it back to 'None'. Any ideas? :?
By the way sorry for my bad english..

Re: Hard drive permissions

Posted: Thu Aug 23, 2012 9:43 am
by Flemur
You might start a terminal (xterm, etc) and do:

$ sudo chmod -R a+w /partition_name

-R = recursive = do all the files
a+w = all users have write (and delete) permission.

Re: Hard drive permissions

Posted: Thu Aug 23, 2012 10:49 am
by Flemur
Edit: you might need to be root for your method ("Properties"):

$ sudo nautilus

then try the Properties.

Re: Hard drive permissions

Posted: Thu Aug 23, 2012 11:49 am
by altair4
I go to 500GB properties > Permissions then changing Others folder access from 'None' to 'Create and delete files' , but it changes it back to 'None'. Any ideas?
Yes, it's an ntfs formated partition. Please post the output of the following commands:

Code: Select all

sudo blkid -c /dev/null

Code: Select all

cat /etc/fstab

Code: Select all

mount

Re: Hard drive permissions

Posted: Fri Aug 24, 2012 3:50 am
by M4rtyz
altair4 wrote:
I go to 500GB properties > Permissions then changing Others folder access from 'None' to 'Create and delete files' , but it changes it back to 'None'. Any ideas?
Yes, it's an ntfs formated partition. Please post the output of the following commands:

Code: Select all

sudo blkid -c /dev/null

Code: Select all

cat /etc/fstab

Code: Select all

mount

Code: Select all

martynas@martynas-ect ~ $ sudo blkid -c /dev/null
[sudo] password for martynas: 
/dev/sda1: UUID="61e1517c-c0ce-46dd-859f-7aae63cdee41" TYPE="ext4" 
/dev/sda5: UUID="3621905c-862f-44fb-942e-49f02e36a935" TYPE="swap" 
/dev/sdb5: LABEL="500GB" UUID="00F40A76F40A6E6A" TYPE="ntfs" 
martynas@martynas-ect ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=61e1517c-c0ce-46dd-859f-7aae63cdee41 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=3621905c-862f-44fb-942e-49f02e36a935 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
martynas@martynas-ect ~ $ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/martynas/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=martynas)
martynas@martynas-ect ~ $ ^C
martynas@martynas-ect ~ $ 

@Flemur doesn't work

Re: Hard drive permissions

Posted: Fri Aug 24, 2012 6:16 am
by altair4
[1] If your partition is currently mounted unmount it:

Code: Select all

sudo umount /media/500GB
[2] Create a permanent home for the partition.

Code: Select all

sudo mkdir /media/500GB
[3] Edit fstab as root:

Code: Select all

gksu gedit /etc/fstab
[4] Add a line to the end of the file:

Code: Select all

UUID=00F40A76F40A6E6A /media/500GB ntfs defaults,nls=utf8,umask=000 0 0
[5] Run the following command to test for errors and if there are none mount the partition:

Code: Select all

sudo mount -a

Re: Hard drive permissions

Posted: Sun Aug 26, 2012 10:49 am
by M4rtyz
thanks!