You are not logged in.
Hello,
So I have a headless server, that is running samba/plex/teamspeak/nginx+php/spigot. I got Plex/Samba running as root at the moment to have my basic home services running, but nginx will refuse to run as root for obvious good reason, so i'm trying to setup the server the right way and move the services away from using root account. I would like all users + to be able to fully read/write to the externally mounted drive.
Currently only root is able to browse the mounted external USB drive, any non-root user gets the following error:
bash: cd: EDATA/: Permission denied
ls -la of the mount point
[root@server mnt]# ls -la
total 24
drwxr-xr-x 3 root root 4096 May 12 11:57 .
drwxr-xr-x 18 root root 4096 May 15 00:45 ..
drwxrwxrw- 1 root root 192 May 13 08:33 EDATA
[root@server EDATA]# ls -la
total 20
drwxrwxrw- 1 root root 192 May 13 08:33 .
drwxr-xr-x 3 root root 4096 May 12 11:57 ..
drwxr-xr-x 1 root root 58 May 5 22:12 Folder1
drwxr-xr-x 1 root root 0 May 8 18:32 Folder2
drwxrwx--- 1 root root 8446 Mar 5 16:06 Folder3
drwxr-xr-x 1 root root 74128 Apr 23 10:42 Folder4
drwxr-xr-x 1 root root 508 May 8 15:53 Folder5
drwxr-xr-x 1 root root 712 May 8 18:32 Folder6
drwxr-xr-x 1 root root 15046 May 8 18:36 Folder7
drwxr-xr-x 1 root root 6740 May 8 18:32 Folder8
fstab:
# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# ROOT
/dev/mmcblk0p2 / ext4 rw,relatime,data=ordered,discard 0 1
# BOOT
/dev/mmcblk0p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# Mount EDATA
UUID=58f0e1ba-27cf-4297-9223-2336cb27d8b1 /mnt/EDATA btrfs rw,user,exec,nofail,autodefrag,compress-force=lzo,space_cache 0 2
If anyone is curios i'm using a ECS Liva X with 64GB MMC + 4GB ram, right now with all the services running it uses around 1.5GB of ram, almost silent setup except for the external 4TB HDD.
Last edited by hcgonzalezpr (2016-05-16 17:40:08)
Offline
Without execute permission on the directory, 'other' users cannot not traverse it.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks that solved it. This thread can be closed.
Executing chmod 777 to the mount point folder did the trick.
chmod 777 /mnt/EDATA
And to think I spend the whole weekend trying to figure it out, before giving up and posting it.
Offline