User Tools

Site Tools


internet:mail:smeserver_perms

This is an old revision of the document!


SME Server - File and Folder Permissions

Script to reset user files permissions (home directories, mail, profiles):

#!/usr/bin/perl -w
use strict;
my @users = `ls -1 /home/e-smith/files/users`;
foreach (@users) {
chomp ($_);
print "Changing $_\n";
`chmod -R 700 /home/e-smith/files/users/$_`;
`chown -R $_.$_ /home/e-smith/files/users/$_`;
`chmod -R 700 /home/e-smith/files/samba/profiles/$_`;
`chown -R $_.$_ /home/e-smith/files/samba/profiles/$_`;
`chmod -R 700 /home/e-smith/files/samba/profiles/$_.V2`;
`chown -R $_.$_ /home/e-smith/files/samba/profiles/$_.V2`;
}

Reset permissions on all files in an I-Bay:

signal-event ibay-modify-files <i-bay name>

:!: You can also use the Server Manager. 'Modify' the I-Bay, then just click 'Save'.

internet/mail/smeserver_perms.1695754372.txt.gz · Last modified: 2023/09/26 12:52 by gcooper