Please check the status of this specification in Launchpad before editing it. If it is Approved, contact the Assignee or another knowledgeable person before making changes.

Summary

Make file sharing between ubuntu boxes in a lan/wlan easy.

Release Note

(release quirks) on upgrade: need to log in as a user to get samba password working. If you upgrade and then never log in with a user you won't be able to share with that user.

Rationale

To share a directory in ubuntu it is currently required to install either nfs or samba (neither is available in the default install) and to have super user rights.

Use Cases

Design

Ideally we want something that is installed by default, does not open a port, non admins can add/remove/edit shares, straightforward, shows up in network shares for Windows and MacOSX. Currently there is no tool that offers all of this, but we try to come as close as possible.

It is important to us that the file sharing solution works with both windows and mac machines out of the box. This means that the other two operating system should see the linux file server in their network browser. This rules out gnome-user-share that provides a WebDAV share and does not require special privileges to setup and leaves pretty much only a samba based solution.

The current solution requires admin privileges to install the initial samba server and to edit shares. It does also ask if samba and/or NFS should be installed.

The next samba upload will support "net usershare" shares, this means that its no longer require to have superuser rights to edit the setup.

If samba is not installed we ask for installing it (but we do not offer NFS anymore). It would be good if we had a samba that is installed by default but does not have a open port unless there is a actual directory to share. This maybe too much magic to hack into samba.

We use "nautilus-share" as the sharing GUI and ensure that it gives a proper message if the user is not able to share because he is not in the sambashare group.

We want to use enable samba password sync out of the box to support that the user can log into his/her homedir with his regular ubuntu username/password (the alternative would be to send cleartext passwords over the network which is no longer supported with XP and vista out of the box). This requires some PAM magic and the installation of the libpam-smbpass package by default (even when samba is not installed yet). All admin users should automatically become part of the sambashare group.

Data Migration/Upgrades

On system upgrades we need to do some magic to generate/update the smb.passwd file. Steve Langasek knows how to do that and offered to help (the only problem with the upgrade solution is that it will only work after the user loged into the account for the first time)

We also need to enable netusershare on upgrades. The samba package should be modified so that it automatically enables it by editing the smb.conf file in the postinst script. The alternative is to just enable netusershare in the samba binary by default.

People in the admin group should be automatically added to the sambashare group as well (add a debconf note).

Test/Demo Plan

TBD

Outstanding issues

Future

BoF agenda and discussion

We dicussed the various options:

The problem with any any custom-sharing system (like giver) we have needs to be on the other user's computer somehow and we can't expect this.

We will remove the "Install NFS" option, because:


CategorySpec

===comments=== seems a bit silly to drop nfs. samba is good, but choice is better. avahi / some zeroconf would really be neat.

EasyFileSharing (last edited 2008-10-06 17:29:44 by 124-168-166-138)