4

I am setting up a file server using Ubuntu and want to make sure I set up a folder structure that will last. Where should I be placing everything that I am sharing (Music, Pictures, Videos, etc)? In theory, if I was setting this up on Windows, I would create a folder directly under C: and set up the different areas of sharing under that (not that that approach would be best either).

EDIT

Based on constructive criticism, the question is rather ambiguous. My question could be restated to ask "Where shouldn't I set this up? Would /usr be an appropriate place to start? Or would /opt be better?

Benny
  • 197

2 Answers2

0

Typically one would use /var or a user's home directory or simply root (/) as the parent of shared directories. /usr and /opt are not good places because those are generally for programs, libraries, and their supporting files. /etc is also not great because that's where configuration files go.

The reasoning behind /var is that by convention it is often used for server data files (e.g. Apache, Syslog, etc.) in some distros. But you could also just create a new directory under root.

Rob H
  • 351
0

If you refer to the Windows approch, you can create a /home/share for all users on your system. Or create /smb-share (or somethink else), if you plan to share accross network (Samba).

Akarun
  • 101