Changes

Jump to navigation Jump to search
865 bytes added ,  15:58, 7 March 2016
Created page with "=== Automatic creation of folders === A script posted in the forum by Cactus [http://forums.contribs.org/index.php/topic,38891.msg198432.html#msg198432] and sent to me by Amir..."
=== Automatic creation of folders ===
A script posted in the forum by Cactus [http://forums.contribs.org/index.php/topic,38891.msg198432.html#msg198432] and sent to me by Amir Inbar can be used to create all folders (in skel for futures users and in the existings users too :
# create skellaton for new users :

mkdir -p /etc/e-smith/skel/user/Maildir/{.LearnAsHam/{cur,new,tmp},.LearnAsSpam/{cur,new,tmp},.LearnInWL/{cur,new,tmp}}

# create folders for existing users :

pushd /home/e-smith/files/users/; \
for u in `ls | grep -v admin`; \
do \
mkdir -p $u/Maildir/.LearnAsHam/{cur,new,tmp}; \
chown -R $u:$u $u/Maildir/.LearnAsHam/; \
mkdir -p $u/Maildir/.LearnAsSpam/{cur,new,tmp}; \
chown -R $u:$u $u/Maildir/.LearnAsSpam/; \
mkdir -p $u/Maildir/.LearnInWL/{cur,new,tmp}; \
chown -R $u:$u $u/Maildir/.LearnInWL/; \
done; \
popd

Thanks to them.
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,252

edits

Navigation menu