Well, to get the browser part you would have to use apache, which I'm sure you knew, but I don't know how to configure maybe edit the /etc/hosts file... I don't know.
On the other hand, I would set up Samba as it is super easy to use, and can be configured from the terminal so you can set up SSH and access it remotely.
To install samba, type:
Code:
sudo apt-get install samba
Let it install and once it's finished type, to begin editing the config file for Samba:
Code:
sudo vim /etc/samba/smb.conf
Let's say that you have three users that needed to access their share with authentication then I would set up different mount points for each user. You could even give them their own separate partitions if you wanted. Anyway, lets say you have Chris, Tom, and Sue mounted at /media/chris, /media/tom, /media/sue and we want them to access only their share with their passwords.
So let's begin!
Code:
[NewShare]
comment= Chris's Share
path= /media/chris
browseable= yes
read only= no
guest ok= no
valid users= chris
(Hold Shift and press zz to save and exit vim)
Tom's and Sue's would look the same but the path would be different, but now we need to take care of some things. You need to change the security type in the smb.conf, and we need to add Chris, Tom, and Sue to the local server and add them using smbpasswd. You can add users without giving them a home directory, but you could also let them have their own home directory and change the mount points in the smb.conf from "path= /media/chris to path= /home/chris" after you have added the users.
Anyway, type:
Code:
sudo vim /etc/samba/smb.conf
Again to edit the config file, then under the Authentication heading remove the ";" in front of security= user and then save and exit vim once again.
To add them using smbpasswd so we can utilize the "valid user" option in our share, tyep:
Code:
smbpasswd -a chris
enter password
re-enter password
And you should be set! Now lets restart the Samba deamon services and see how it works.
Code:
sudo service smbd restart && sudo service nmbd restart
Hope all goes well,
Chris
Bookmarks