How to show the content of an external drive in bash with ROOT permissions ?
by Tricia279 from LinuxQuestions.org on (#6JK9P)
early every linux system has a data manager. In my case, I have Nautilus because, I have a GNOME environment.
If I connect an external drive to my system, I can see the content in Nautilus with my users permissions.
My question is:
With which command as ROOT, I can see the content in a tree structure as 'ls -lh' in '\' ?
I did: findmnt -l to see if the device was mounted
TARGET /run/media/admin/cf7a4e4e-9f2f-4952-bca8-46ddce184885 [name of the device]
SOURCE /dev/sda1
FSTYPE ext4
OPTIONS rw, nosuid, nodev, relatime, secl
lsblk -l to see the size of the content
I really appreciate your help !!!
Solution:
It is easier as I thought:
As ROOT:
# cd /run/media/admin/cf7a4e4e-9f2f-4952-bca8-46ddce184885
If I connect an external drive to my system, I can see the content in Nautilus with my users permissions.
My question is:
With which command as ROOT, I can see the content in a tree structure as 'ls -lh' in '\' ?
I did: findmnt -l to see if the device was mounted
TARGET /run/media/admin/cf7a4e4e-9f2f-4952-bca8-46ddce184885 [name of the device]
SOURCE /dev/sda1
FSTYPE ext4
OPTIONS rw, nosuid, nodev, relatime, secl
lsblk -l to see the size of the content
I really appreciate your help !!!
Solution:
It is easier as I thought:
As ROOT:
# cd /run/media/admin/cf7a4e4e-9f2f-4952-bca8-46ddce184885