Great Circle Associates Majordomo-Users
(December 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: OA[m.home]/aliases: mmap fails
From: root <root @ technix . oeh . uni-linz . ac . at>
Date: Thu, 11 Dec 1997 02:07:49 +0100 (CET)
To: majordomo-users @ greatcircle . com


Hi,

this problem is remotely related to majordomo, but you might want to
add it to the FAQ (or not ...)

I put majordomo (1.94.4) in /home/mdom. There, I created a file "aliases".
newaliases now would now give me something like:
"Unsafe map file: Permission denied".

execve("/usr/bin/newaliases", ["newaliases"], [/* 31 vars */]) = 0
[...]
lstat("/home/mdom/aliases.db", 0xbfffe7c4) = -1 ENOENT (No such file or directory)

[ now , "lstat" returns -1, since this is a new aliases file ]
[ later it will: ]

stat("/home", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
stat("/home/mdom", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("/home/mdom", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fstat(1, {st_mode=S_IFREG|0644, st_size=29801, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400da000
                                                               ^^^^

[ try to mmap the non-existing file ! ]


write(1, "hash map \"Alias0\": unsafe map "..., 73hash map "Alias0": unsafe map file /home/mdom/aliases: Permission denied
) = 73


so, you have to "touch /home/modm/aliases.db" before running "newaliases".
Also, do not forget to have the right permissions (daemon ...).
I hope this helps someone ... :-)


Indexed By Date Previous: maillog message 'clone'
From: Paul Monaghan <paulm@ican.net>
Next: Re: OA[...]/aliases
From: root <root@technix.oeh.uni-linz.ac.at>
Indexed By Thread Previous: maillog message 'clone'
From: Paul Monaghan <paulm@ican.net>
Next: Re: OA[...]/aliases
From: root <root@technix.oeh.uni-linz.ac.at>

Google
 
Search Internet Search www.greatcircle.com