Re: Where to store shared data files?
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 01/12/04
- Next message: Will Dormann: "Re: TV recorder programs: Complicated?"
- Previous message: Måns Rullgård: "Re: TV recorder programs: Complicated?"
- In reply to: R S Prigan: "Re: Where to store shared data files?"
- Next in thread: Jeroen Geilman: "Re: Where to store shared data files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 11 Jan 2004 23:28:35 GMT
On Sun, 11 Jan 2004 21:47:36 GMT, R S Prigan <rprigan@insight.rr.com> wrote:
>
>
> John-Paul Stewart wrote:
>
>> Alan Connor wrote:
>>>
>>> On Sat, 10 Jan 2004 21:48:56 GMT, Noel Llopis
>>> <OUTllopisWITH@verizonTHIS.net> wrote:
>>> >
>>> >
>>> > I'm setting up a server for my home network. One of its main uses it's
>>> > going to be a file server so I can access mp3s, roms, documentation,
>>> > etc from any of the other computers.
>>> >
>>> > I know I can just stick those files anywhere I want (like /share or
>>> > /pub), but I was wondering if there was a recommended place in the
>>> > more-or-less-standard UNIX file hierarchy for that.
>> [snip]
>>>
>>> I'd create a directory under /usr/share.
>>
>> I'd suggest someplace other than /usr/share. Most distros use
>> /usr/share for stuff installed by their packages. /usr/local/share
>> would be a somewhat better choice since /usr/local is supposedly
>> reserved for locally installed stuff (as opposed to pre-packaged distro
>> stuff).
>>
>> Personally, though, I'd stay out of the /usr hierarchy entirely. /share
>> and /pub seem logical enough. Or perhaps something under /home would
>> make sense. After all, /home is supposed to be for users' files.
>>
>> However, where to put this sort of stuff is largely up to the individual
>> sysadmin in the end. You don't have to follow the FHS if you don't want
>> to (but don't complain if that breaks something else). There are
>> probably as many opinions as there are readers of this newsgroup.
> put it under /home/<something>
I rather like the idea of creating a seperate user account for a directory
tree like the OP has described.
Then the files could go in sub-directories of $HOME and he could
replace the shell in /etc/passwd with a script running a menu from a
restricted shell that offered only a limited number of possible operations.
Make the .bashrc and .bash_profile owned by root and trap out the Ctrl-z
and Ctrl-c keybindings with:
trap "kill -9 $$" INT TSTP
Make the username sf for shared files, and the password asdf.....
Anyone already logged in under another username could just do:
$su - sf
then asdf at the password prompt.
Near perfect security there....
AC
- Next message: Will Dormann: "Re: TV recorder programs: Complicated?"
- Previous message: Måns Rullgård: "Re: TV recorder programs: Complicated?"
- In reply to: R S Prigan: "Re: Where to store shared data files?"
- Next in thread: Jeroen Geilman: "Re: Where to store shared data files?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|