This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:mail:smeserver_perms [2014/05/27 12:57] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SME Server - File and Folder Permissions ====== | ||
- | Script to reset user files permissions (home directories, | ||
- | |||
- | < | ||
- | # | ||
- | use strict; | ||
- | my @users = `ls -1 / | ||
- | foreach (@users) { | ||
- | chomp ($_); | ||
- | print " | ||
- | `chmod -R 700 / | ||
- | `chown -R $_.$_ / | ||
- | `chmod -R 700 / | ||
- | `chown -R $_.$_ / | ||
- | `chmod -R 700 / | ||
- | `chown -R $_.$_ / | ||
- | } | ||
- | </ | ||
- | |||
- | Reset permissions on all files in an I-Bay: | ||
- | |||
- | < | ||
- | signal-event ibay-modify-files <i-bay name> | ||
- | </ | ||
- | |||
- | :!: You can also use the Server Manager. |