User Home directories access by Administrator HOWTO for sme server
Revision Author: Ray Mitchell - mitchellcpa_AT_yahoo.com.au
Original Author: elSpike (Patrick Tehvand) <elSpike_AT_tehvand.com> (acknowledgements to rigger at contribs.org)
Release supported: sme 6.x
License: GPL
Release date: 4 March 2006
Version: 2.1
Problem:
You need to give Administrators or Power Users access to users home directories
Solution:
Follow this HowTo to create a new share name
Instructions:
If it does not already exist create the following directory
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
cd /etc/e-smith/templates-custom/etc/smb.conf
Create a new template fragment in /etc/e-smith/templates-custom/etc/smb.conf
eg 50userhomes-admin
pico 50userhomes-admin
Paste or type the following code to the template:
[userhomes]
comment = Users home directories
path = /home/e-smith/files/users/
valid users = admin root username1 username2
admin users = admin root username1 username2
write list = admin root username1 username2
browseable = yes
guest ok = no
public = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
Note: You can add as many usernames as required but they must be separated by a space
Save the file
Ctrl o
Exit
Ctrl x
then expand the template
/sbin/e-smith/expand-template /etc/smb.conf
then refresh the samba server so your template is active
/etc/init.d/smb reload
then restart smb
/etc/init.d/smb restart
Now you should be able to browse in Windows Explorer (or similar) file sharing to
or
\\servername\userhomes
Note: You can download a copy of the fragment from here, remember to edit it to suit your usernames:
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs//rmitchell/smeserver/contribs/userhomes-admin/