#/media Permissions with Seafile

1 messages · Page 1 of 1 (latest)

crisp nest
#

I recently installed Seafile and tried to change the data directory to a folder on my second hard drive (mounted at/media/DriveName). After doing the symlink to the old data directory location however, it's still telling me the data directory doesn't exist. I think the issue is with /media, but I'm not 100% sure. I've already set the chown command for the user, but no luck. OS is Ubuntu 22.04 Any recommendations?

frail tapir
#

Depending on what seafile is, it may not follow symlimks

crisp nest
#

It's a self-hosted dropbox alternative. I originally used the symlink because it was recommended on their forums by someone else who got it to work, but theirs wasn't in /media

frail tapir
#

What are the permissions of /media and your mount point.

crisp nest
#

Let me double check.

frail tapir
#

There isn't anything intrinsically special about /media/, but it's generally reserved for dynamic/ephemeral or external devices. I personally would move it elsewhere for that reason, but there's nothing wrong with it in principle

crisp nest
#

Drwxr-x---

#

The HDD is physically attached via a HBA 330 card and the OS is reading a virtual drive of it

frail tapir
#

That doesn't tell me who owns it.
You can also choose to move the mount point over the original location.

crisp nest
#

Oh it's root

frail tapir
#

For both? On the mount point? You need at least execute on the dir for others if non users are accessing it's contents

crisp nest
#

Yea, as far as I can tell. From the ls -l I got drwxr-x---+ 3 root root 4096

frail tapir
#

Do you have ACLs enabled

crisp nest
#

No, I don't believe so.

#

I've never had to run ubuntu on a multi-user machine before

#

I'd be fine completely remounting the drive, but I'm not sure where to mount it that wouldn't cause problems

frail tapir
#

Literally the default location for you Seafile application.

See also man hier

crisp nest
#

So I should mount the drive at /opt/seafile?

frail tapir
#

If you want

crisp nest
#

That seems to have fixed the majority of the problems, although now I'm unable to upload anything to the server. I've got the ports for http and https open already