|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mouss
netoyen.net)
Date: Mon Dec 29 2008 - 16:45:56 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Xn Nooby a écrit :
> Hi Sahil,
>
> I am looking in to how to create the duplicate passwd file entries, I
> am assuming I cannot just edit the file without corrupting it.
you forgot to tell us which OS you run. let's assume your "sudo ..." as
a hint ;-p
- save the following as doit.sh
#!/bin/sh
IFS=:
cat /etc/passwd | while read user _x uid gid gecos home shell; do
user=`echo $user | tr [A-Z] [a-z]`
grep -q "^${user}:" /etc/passwd
if [ $? -ne 0 ]; then
echo "adduser --disabled-password --uid $uid --gid $gid --gecos $gecos
--home $home --shell $shell $user";
fi
done
- run it: sh doit.sh > lowerpass.sh
- edit lowerpass.sh and remove all lines but the ones that create the
users you want to create.
> Below
> is my main.cf and aliases file. Also, should I post my replies to
> emails at the top or the bottom? (a few years ago some people got
> really mad at me, but now I can't remember which was correct)
>
put your replies at the bottom. if you don't know why, search for "top
posting".
> I noticed the main.cf referred to /etc/aliases while I had edited
> /etc/postfix/aliases, so I also put my JIM123 entry in to /etc/aliases
> and ran "sudo newaliases", but still isn't working.
what is not working? As you have already been told, postfix "local" will
lowercase the address, so alias_maps don't help.
> Should I be using
> /etc/aliases instead of /etc/postfix/aliases? A few hours ago I got
> "The Book of Postfix" from No Starch Press, and they said
> /etc/postfix/aliases (but I suspect that is wrong).
This is system dependent. for postfix, the only thing that really
matters is that the path be the one specified in alias_maps and
alias_database.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]