Difference between revisions of "User homes admin access"
m (Tip on a possible work-around (read-only access) on the admin write issues as long as you do not read write access unfortunately.)
|Line 93:||Line 93:|
Latest revision as of 12:16, 11 May 2010
User Home folder access by Administrators
You need to give Administrators or Power Users read access to users home folders
The solution provided below should only be used for read access.
Create a new sharename by means of a custom template with modified users access rights, which allows specified users to have read access
If it does not already exist create the following folder
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf
Create a new template fragment
cd /etc/e-smith/templates-custom/etc/smb.conf pico -w 50userhomes-admin
Paste or type the following code into 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
Save & exit the file
Ctrl o Ctrl x
then expand the template
then restart the samba server so your template is active. Note that this will momentarily stop samba, so ensure that all users have disconnected from & stopped using all shares first
then restart smb
Now you should be able to browse in Windows Explorer (or similar) file sharing to
Alternatively you can download the fragment, copy it to
and edit it to suit your usernames, following the above instructions.
See these threads for other methods and suggested approaches
The Moodle contrib is a better all round way of dealing with this issue particularly in school environments