Re: Where to store shared data files?

From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 01/12/04


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



Relevant Pages

  • Reauthenticate SSL password
    ... browser and authenticate again. ... browser I got the username and password prompt. ... until I hit "cancel", at which point I was given the message "You have ...
    (comp.infosystems.www.authoring.cgi)
  • Re: Not prompted for admin user and pwd as Regular user when trying \domaincontrollerc$ anymore
    ... > I'd prefer to get the username and password prompt when they try to ... > Is there a certain permission setting or combo of settings that will ... > make this work for domain controllers? ...
    (microsoft.public.windows.server.active_directory)
  • Re: OWA has suddenly stopped working
    ... Ensure that your username and password are correct, ... OWA has also suddenly stopped working for me. ... I do not receive the password prompt, ...
    (microsoft.public.windows.server.sbs)
  • Re: setting uafalternate 1 doesnot work
    ... The system will display a password prompt, ... after hitting return after entering system as the username. ...
    (comp.os.vms)
  • Re: Access denied ! Shouldnt XP ask for username & password inste
    ... I can access the shared files only if the username/password is entered on ... Assuming computer A username is called Auser and computer B has Buser. ... How to Setup Windows, Network, VPN & Remote Access on ... of having his name/password added to the local machine, ...
    (microsoft.public.windowsxp.network_web)