~ubuntu-branches/ubuntu/lucid/nautilus-share/lucid

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-03-21 20:11:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090321201102-25223q0d2znoighn
Tags: 0.7.2-4
* debian/patches/06_fix-validation.patch:
  + Fix issue where field validation errors aren't cleared after being
    corrected
* debian/patches/02_install_missing_samba.patch:
  + Ask to retry if installation failed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
All the instructions are available here:
 
2
http://gentoo.ovibes.net/nautilus-share/
 
3
 
 
4
The following is a quick rip from the wiki.
 
5
 
 
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].
 
9
 
 
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'''
 
11
<pre>
 
12
USERSHARE
 
13
 
 
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.
 
17
 
 
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
 
31
 commands below.
 
32
 
 
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.
 
38
</pre>
 
39
 
 
40
====Compilation from sources====
 
41
* You need the following dependencies:
 
42
** gnome nautilus 2.10
 
43
** libglade
 
44
** gtk+
 
45
 
 
46
* The common procedure as root:
 
47
<pre>
 
48
./configure --prefix=/usr
 
49
make
 
50
make install
 
51
</pre>
 
52
 
 
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):
 
55
<pre>
 
56
export USERSHARES_DIR="/var/lib/samba/usershare"
 
57
export USERSHARES_GROUP="samba"
 
58
 
 
59
mkdir -p ${USERSHARES_DIR}
 
60
groupadd ${USERSHARES_GROUP}
 
61
chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}
 
62
chmod 01770 ${USERSHARES_DIR}
 
63
</pre>
 
64
 
 
65
* use the following '''/etc/samba/smb.conf''':
 
66
<pre>
 
67
;/etc/samba/smb.conf
 
68
 
 
69
[global]
 
70
workgroup =  WORKGROUP ; you can change to your own workgroup
 
71
security = share
 
72
 
 
73
usershare path = /var/lib/samba/usershare
 
74
usershare max shares = 100
 
75
usershare allow guests = yes
 
76
usershare owner only = yes
 
77
</pre>
 
78
* Add the samba group to your user (replace your_username by your login):
 
79
<pre>
 
80
usermod -a -G ${USERSHARES_GROUP} your_username
 
81
</pre>
 
82
* Logout and login