Author Topic: Partition Access  (Read 894 times)

Offline The Black Pig

  • Global Moderator
  • Full Member
  • *****
  • Posts: 169
Partition Access
« on: May 03, 2014, 12:12:24 am »
My hard drive is partitioned  /    ,     home - and a partition  for 'storage'.

The storage area is only available to 'root' , how can I change it so I have access as 'john' ?
« Last Edit: May 03, 2014, 12:12:24 am by 16 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Partition Access
« Reply #1 on: May 03, 2014, 01:11:43 am »
Show me your /etc/fstab file.
« Last Edit: July 01, 2014, 02:35:33 pm by 14 »
Nothing is easy as it looks.

Offline paxmark1

  • Full Member
  • ***
  • Posts: 209
Re: Partition Access
« Reply #2 on: May 03, 2014, 07:37:08 am »
as root

chown -R   john       /storage



or



sudo chown -R john  /storage



but yes, show /etc/fstab   Is your /storage set up that way to be accessed by a BSD or Windows OS?  Is /storage for backups?.



« Last Edit: July 01, 2014, 02:35:17 pm by 292 »
Don't make a FrankenDebian

Offline The Black Pig

  • Global Moderator
  • Full Member
  • *****
  • Posts: 169
Re: Partition Access
« Reply #3 on: May 03, 2014, 10:18:29 am »

Quote:

Quote from pavroo on May 3, 2014, 01:11

Show me your /etc/fstab file.




Don't know whether it is relevant but My folder is named fstab.d and the file  -  aufs / aufs rw 0 0

tmpfs /tmp tmpfs nosuid,nodev 0 0



which of course means nothing to Me.  :D  :D
« Last Edit: July 01, 2014, 02:35:00 pm by 16 »

Offline The Black Pig

  • Global Moderator
  • Full Member
  • *****
  • Posts: 169
Re: Partition Access
« Reply #4 on: May 03, 2014, 10:29:53 am »

Quote:

Quote from paxmark1 on May 3, 2014, 07:37

as root

chown -R   john       /storage



or



sudo chown -R john  /storage



but yes, show /etc/fstab   Is your /storage set up that way to be accessed by a BSD or Windows OS?  Is /storage for backups?.





I like to test all the versions of Sparky but I did it once and the system was unusable I had to use My backup (an external HD)

so when prior to re-installation  I partitioned My hard drive  root/home/ ?  (I have just noticed that when I mount it the label is it is media 263dd24a-60fc-4f3c-a4e5-0d536371b20b)
« Last Edit: July 01, 2014, 02:34:45 pm by 16 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: Partition Access
« Reply #5 on: May 03, 2014, 01:52:03 pm »
Show me the file called 'fstab' - it is located in '/etc' directory under all folders. /etc/fstab.d is a folder.

Show me results of two commands as root:

blkid

fdisk -l

« Last Edit: July 01, 2014, 02:34:30 pm by 14 »
Nothing is easy as it looks.

Offline The Black Pig

  • Global Moderator
  • Full Member
  • *****
  • Posts: 169
Re: Partition Access
« Reply #6 on: May 04, 2014, 04:58:31 pm »
Problem solved- Did not think to look at folder permissions   :o

Created a new folder and transferred contents  :D
« Last Edit: July 01, 2014, 02:34:07 pm by 16 »