Permissions on hdd

sda installed manjaro
sdb installed ubuntu

I change user name from joe to joe3 (for some reasons…)
Now i have problem to access 2nd hdd directories .

blkid -o list

device                                       fs_type         label            mount point                                      UUID
/dev/sda1                                    ext4                             /                                                8b3d8b6f-14bb-409e-a9ad-2a3d87486bd5
/dev/sda5                                    ext4            /home manjaro    (not mounted)                                    e9867b37-1380-4566-9ca5-e238310cc69f
/dev/sda6                                    swap                             (not mounted)                                    abd21997-e011-4140-ac6b-561b92b81227
/dev/sdb1                                    ext4            / wd             (not mounted)                                    09a05de8-964d-4587-882c-616798f6d274
/dev/sdb3                                    ext4            WDE-Home         (not mounted)                                    c9a44556-18e8-454b-8cec-eb69f7269d6d
/dev/sdb5                                    ext4                             /home                                            e9867b37-1380-4566-9ca5-e238310cc69f
/dev/sdb6                                    vfat            WD-G             (not mounted)                                    136B-136D
/dev/sdb7                                    ext4            WD-TimeShift     /run/timeshift/backup                            34cb427f-1ec1-4740-97fe-0f1961dabc3c
/dev/loop0                                   squashfs                         /var/lib/snapd/snap/core18/1885                  
/dev/loop1                                   squashfs                         /var/lib/snapd/snap/pokerth/1                    
/dev/loop2                                   squashfs                         /var/lib/snapd/snap/snapd/8790 

Now i want full access for sdb3 (home ubuntu) & sdb6 (just data).
Thanks in advance!

Since it is a Linux file system you could try chmod and or chown but it will be less secure.
Or set up a mount point and setup /etc/fstab with the right permissions (uid=xxxx, gid=xxxx,umask=0222 for instance) this is overall more secure. Perhaps the default option in fstab is okay to

your uid (user id) and group id (gid) can be found with the command “id” in a terminal

My /etc/fstab for / & /home

    UUID=8b3d8b6f-14bb-409e-a9ad-2a3d87486bd5 /              ext4    defaults,noatime 0 1
    UUID=e9867b37-1380-4566-9ca5-e238310cc69f /home          ext4    defaults,noatime 0 2

So the sdb3 will added as
UUID=c9a44556-18e8-454b-8cec-eb69f7269d6d ext4 defaults,noatime 0 2
and sdb6 added as
UUID=136B-136D vfat defaults,noatime 0 2
the filed <type> left it empty?

yes or:

# /dev/sdb3
UUID=c9a44556-18e8-454b-8cec-eb69f7269d6d   ext4	defaults,noatime 0 0

# /dev/sdb6
UUID=136B-136D vfat  noatime,uid=xxxx,gid=xxxx,user,rw	0 0

Remember to get your id with “id” in a terminal

About sdb3 is ok , sdb6 will be :
UUID=136B-136D vfat noatime uid=1002 gid=1002 joe3 rw 0 0
Ok i’ll edit fstab reboot and post result

sdb3 gone! Displays only on gparted!
Disable new entrys on fstab and be back where i was.

My bad but did you set a mount point? Without that you wont get anything

so the line should be

# /dev/sdb3
UUID=c9a44556-18e8-454b-8cec-eb69f7269d6d  /yourmountpoint  ext4	defaults,noatime 0 0

Changing owner on sdb3 & sdb6 from root to joe3

sudo chown -hR joe3 /media/wdg
sudo chown -hR joe3 /media/wdhome

chown -hR root /u = Change the owner of /u and subfiles to “root”.
Also create mount point on /media= wghome & wdg for sdb3 & sdb6 respectively

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.