Results 1 to 3 of 3
I've got a Linux mail server running with about 100 users. I'm adding some Anti-Spam software and I want to have it put the spam into a subfolder of the ...
- 01-14-2004 #1Just Joined!
- Join Date
- Jan 2004
- Posts
- 13
How do I create a directory in every home dir?
I've got a Linux mail server running with about 100 users. I'm adding some Anti-Spam software and I want to have it put the spam into a subfolder of the Maildir folder in each user's home directory. Now I've implemented this in my own account and it works fine. My questions now is how can I add this Spam folder to every existing user's homedir with correct ownership and write permissions? I've already added it to the /etc/skel folder but that won't help my existing users.
- 01-14-2004 #2
Try something like this:
I use something similar to convert a bunch of .wav files in an arbitrary directory to .flac.Code:#!/bin/bash for home in `awk -F: '{print $6}' /etc/passwd` do [ -d "$home" ] || continue [ -r "$home" ] || continue (cd $home; tar xvf archive_to_deploy_to_users.tar) done exit 0
Adam Daughterson
- 01-15-2004 #3Just Joined!
- Join Date
- Jan 2004
- Posts
- 13
Thanx. That worked.


Reply With Quote
