1
All the instructions are available here:
2
http://gentoo.ovibes.net/nautilus-share/
4
The following is a quick rip from the wiki.
6
===Source code (0.7.x only)===
7
* Version 0.7 require samba 3.0.23, you need to configure samba to work with "net usershare"
8
** [http://gentoo.ovibes.net/nautilus-share/nautilus-share-0.7.0.tar.gz nautilus-share-0.7.0.tar.gz].
10
* Here are the info from the samba's[http://samba.org/samba/docs/man/manpages-3/net.8.html net] command to setup '''usershare'''
14
Starting with version 3.0.23, a Samba server now supports the ability
15
for non-root users to add user define shares to be exported using the
16
"net usershare" commands.
18
To set this up, first set up your smb.conf by adding to the [global]
19
section : usershare path = /usr/local/samba/lib/usershares Next create
20
the directory /usr/local/samba/lib/usershares, change the owner to
21
root and set the group owner to the UNIX group who should have the
22
ability to create usershares, for example a group called "serverops".
23
Set the permissions on /usr/local/samba/lib/usershares to 01770.
24
(Owner and group all access, no access for others, plus the sticky
25
bit, which means that a file in that directory can be renamed or
26
deleted only by the owner of the file). Finally, tell smbd how
27
many usershares you will allow by adding to the [global] section
28
of smb.conf a line such as : usershare max shares = 100. To
29
allow 100 usershare definitions. Now, members of the UNIX group
30
"serverops" can create user defined shares on demand using the
33
The usershare commands are:
34
net usershare add sharename path [comment] [acl] [guest_ok=[y|n]] - to add or change a user defined share.
35
net usershare delete sharename - to delete a user defined share.
36
net usershare info [-l|--long] [wildcard sharename] - to print info about a user defined share.
37
net usershare list [-l|--long] [wildcard sharename] - to list user defined shares.
40
====Compilation from sources====
41
* You need the following dependencies:
42
** gnome nautilus 2.10
46
* The common procedure as root:
48
./configure --prefix=/usr
53
====Setup and configuration (apply to Ubuntu Feisty and Gutsy)====
54
* A quick and easy wait to have it running (must be done as root):
56
export USERSHARES_DIR="/var/lib/samba/usershare"
57
export USERSHARES_GROUP="samba"
59
mkdir -p ${USERSHARES_DIR}
60
groupadd ${USERSHARES_GROUP}
61
chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}
62
chmod 01770 ${USERSHARES_DIR}
65
* use the following '''/etc/samba/smb.conf''':
70
workgroup = WORKGROUP ; you can change to your own workgroup
73
usershare path = /var/lib/samba/usershare
74
usershare max shares = 100
75
usershare allow guests = yes
76
usershare owner only = yes
78
* Add the samba group to your user (replace your_username by your login):
80
usermod -a -G ${USERSHARES_GROUP} your_username