unsafe map file (not file permissions ??)

When running 'sendmail -v -bi -d44.4' I am getting "...unsafe map 
file..." errors.  (See output below).

I have read all the archives I could find on the matter and they all 
suggest that the problem is related to file permissions.  I have checked, 
double checked, triple checked the permissions and ownership of all the 
directories and file in the path to /etc/mail/aliases and can find no 
problems.
I have also tried removing the old files, touch /etc/mail/aliases but get 
the same errors.

What else could be wrong that would cause 'newaliases' to generate these 
errors?

A great many thanks in advance for any insight or ideas in helping to 
resolve this problem.  I'm completely baffled and don't know what else to 
try.

--
Andy



[root@server1 mail]# stat / /etc /etc/mail /etc/mail/aliases 
/usr/sbin/sendmail
  File: "/"
  Size: 4096            Blocks: 8          IO Block: 4096   Directory
Device: 302h/770d       Inode: 2           Links: 19
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: Sat Jul 19 04:02:30 2003
Modify: Tue Jul  1 09:30:40 2003
Change: Tue Jul  1 09:30:40 2003

  File: "/etc"
  Size: 4096            Blocks: 8          IO Block: 4096   Directory
Device: 302h/770d       Inode: 229377      Links: 44
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: Sat Jul 19 04:02:31 2003
Modify: Sat Jul 19 18:08:53 2003
Change: Sat Jul 19 18:08:53 2003

  File: "/etc/mail"
  Size: 4096            Blocks: 8          IO Block: 4096   Directory
Device: 302h/770d       Inode: 689157      Links: 3
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: Sat Jul 19 20:44:05 2003
Modify: Sat Jul 19 20:01:02 2003
Change: Sat Jul 19 20:01:02 2003

  File: "/etc/mail/aliases"
  Size: 0               Blocks: 0          IO Block: 4096   Regular File
Device: 302h/770d       Inode: 688487      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: Sat Jul 19 21:30:13 2003
Modify: Sat Jul 19 19:40:05 2003
Change: Sat Jul 19 20:40:11 2003

  File: "/usr/sbin/sendmail"
  Size: 452132          Blocks: 896        IO Block: 4096   Regular File
Device: 302h/770d       Inode: 524422      Links: 1
Access: (4555/-r-sr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: Sat Jul 19 21:33:22 2003
Modify: Mon Feb 24 14:44:24 2003
Change: Thu Mar  6 08:34:41 2003

[root@server1 mail]# sendmail -v -bi -d44.4
safefile(/etc/sendmail.cf, uid=0, gid=0, flags=6000, mode=400):
safedirpath(/etc, uid=0, gid=0, flags=6000, level=0, offset=0):
        [dir /etc] OK
        [uid 0, nlink 1, stat 100644, mode 400]         OK
safefile(/etc/mail/local-host-names, uid=0, gid=0, flags=6580, mode=400):
safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 400]         OK
safefile(/etc/mail/relay-domains, uid=0, gid=0, flags=6580, mode=400):
safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 400]         OK
safefile(/etc/mail/trusted-users, uid=8, gid=12, flags=6580, mode=400):
safedirpath(/etc/mail, uid=8, gid=12, flags=6580, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 40]  OK
safefile(/etc/mail/service.switch, uid=8, gid=12, flags=6480, mode=400):
safedirpath(/etc/mail, uid=8, gid=12, flags=6580, level=0, offset=0):
        [dir /etc/mail] OK
        No such file or directory
safefile(/etc/mail/service.switch, uid=8, gid=12, flags=6480, mode=400):
safedirpath(/etc/mail, uid=8, gid=12, flags=6580, level=0, offset=0):
        [dir /etc/mail] OK
        No such file or directory
safedirpath(/var/spool/mqueue, uid=8, gid=12, flags=0, level=0, offset=
0):
        [dir /var/spool/mqueue] OK
safefile(/etc/mail/aliases.minorfish, uid=8, gid=12, flags=7c80, mode=
600):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 6]   EACCES
safefile(/etc/mail/aliases.minorfish, uid=8, gid=12, flags=7c80, mode=
400):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 4]   OK
warning: cannot lock /etc/mail/aliases.minorfish: Error 0
safefile(/etc/mail/aliases.minorfish.db, uid=8, gid=12, flags=3c6, mode=
200):
safedirpath(/etc/mail, uid=8, gid=12, flags=3c6, level=0, offset=0):
        [dir /etc/mail] OK
        No such file or directory
        [final dir /etc/mail uid 0 mode 40755] Permission denied
hash map "Alias2": unsafe map file /etc/mail/aliases.minorfish.db: 
Permission denied
WARNING: cannot open alias database /etc/mail/aliases.minorfish
Cannot create database for alias file /etc/mail/aliases.minorfish
safefile(/etc/mail/aliases, uid=8, gid=12, flags=7c80, mode=600):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 6]   EACCES
safefile(/etc/mail/aliases, uid=8, gid=12, flags=7c80, mode=400):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 4]   OK
warning: cannot lock /etc/mail/aliases: Error 0
safefile(/etc/mail/aliases.db, uid=8, gid=12, flags=3c6, mode=200):
safedirpath(/etc/mail, uid=8, gid=12, flags=3c6, level=0, offset=0):
        [dir /etc/mail] OK
        No such file or directory
        [final dir /etc/mail uid 0 mode 40755] Permission denied
hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission 
denied
WARNING: cannot open alias database /etc/mail/aliases
Cannot create database for alias file /etc/mail/aliases
safefile(/etc/mail/aliases.log, uid=8, gid=12, flags=7c80, mode=600):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 6]   EACCES
safefile(/etc/mail/aliases.log, uid=8, gid=12, flags=7c80, mode=400):
safedirpath(/etc/mail, uid=8, gid=12, flags=7d80, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 4]   OK
warning: cannot lock /etc/mail/aliases.log: Error 0
safefile(/etc/mail/aliases.log.db, uid=8, gid=12, flags=3c6, mode=200):
safedirpath(/etc/mail, uid=8, gid=12, flags=3c6, level=0, offset=0):
        [dir /etc/mail] OK
        [uid 0, nlink 1, stat 100644, mode 2]   EACCES
hash map "Alias1": unsafe map file /etc/mail/aliases.log.db: Permission 
denied
WARNING: cannot open alias database /etc/mail/aliases.log
Cannot create database for alias file /etc/mail/aliases.log


0
aloftus1 (1)
7/20/2003 2:34:49 AM
comp.mail.sendmail 13480 articles. 0 followers. jfretby (35) is leader. Post Follow

1 Replies
791 Views

Similar Articles

[PageSpeed] 1
andy  wrote:
> When running 'sendmail -v -bi -d44.4' I am getting "...unsafe map 

Which sendmail version is this?

> file..." errors.  (See output below).

> [root@server1 mail]# sendmail -v -bi -d44.4
> safefile(/etc/sendmail.cf, uid=0, gid=0, flags=6000, mode=400):

> safefile(/etc/mail/trusted-users, uid=8, gid=12, flags=6580, mode=400):

Do you use RunAsUser?

> safefile(/etc/mail/aliases.minorfish, uid=8, gid=12, flags=7c80, mode=
> 600):

> hash map "Alias2": unsafe map file /etc/mail/aliases.minorfish.db: 
> Permission denied

> hash map "Alias0": unsafe map file /etc/mail/aliases.db: Permission 
> denied
> WARNING: cannot open alias database /etc/mail/aliases

> warning: cannot lock /etc/mail/aliases.log: Error 0
> safefile(/etc/mail/aliases.log.db, uid=8, gid=12, flags=3c6, mode=200):

What are the permissions of those files?

ls -l /etc/mail/aliases*

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
7/29/2003 4:50:01 AM
Reply:
Similar Artilces:

how to pass a file descriptor in a swig module
My function func(File * des) is embedded in a module swig. I would to know how to call this function from python script and if it's necessay to declare a typemaps ? Thank you kj.kjn wrote: > My function func(File * des) is embedded in a module swig. > > I would to know how to call this function from python script and if it's > necessay > > to declare a typemaps ? Not sure if that helps here, but Python file objects have a function called fileno() to return the file number. -- Gerhard "kj.kjn" <kj.kjn@wanadoo.fr> writes: > My function...

IEEETran class file in draft mode : lines per page ?
Hello I need to submit a paper to IEEE using IEEEtran class file in latex. The paper formatting guidelines are 10 double-spaced pages 12-point font, approximately 26 lines per page with 6.5-inch line length. I am using the IEEEtran class file in the 12-point, draftclsnofoot mode, single column, twoside, letterpaper, journal mode. This gives me a paper which has 6-in line length and not 6.5-in as required. Apart from this, the number of lines per page turn out to be around 28 to 30 as against the required 26 lines per page. Please inform me the latex commands needed in order to g...

ncdf + x-connection + many files = crazy.
Hey all, I've got a great riddle for you today. (Long story short, can you run the test code included below to completion on your machine?) I've already filed a bug report, but I want to see if other people can reproduce these errors. I'm experiencing machine/version-dependent, non-deterministic behavior that seems to present itself orthogonal to the triggering mechanism. In other words, I've got a crazy-making problem. I experienced this in working code, but through patient debugging, I've pared this down my until I've got a relatively small program tha...

Map of Berlin ?
Hello, Where on the Internet can I get a good map of Berlin 1945 ? www.rubble.com <g> "Gunny Bunny" <nowwhere@nowhere.com> wrote in message news:v_BUa.49123$Ii1.30115@news02.bloor.is.net.cable.rogers.com... > Hello, > > > > Where on the Internet can I get a good map of Berlin 1945 ? > > > In <vi5sgilch8eq0c@corp.supernews.com>, John Pancoast wrote: > www.rubble.com > <g> So mean. I like it. -- AK -- Fascism is always descending on the United States, but somehow it always ...

parsing file
Hi I am new here and so in python :-) I am trying to make a script for extracting (parsing?) some values from a file and write them into an output i thought to follow this example (cookbook): #!/usr/bin/env python import os, sys nargs = len(sys.argv) if not 3 <= nargs <= 5: print "usage: %s search_text replace_text [infile [outfile]]" % \ os.path.basename(sys.argv[0]) else: stext = sys.argv[1] rtext = sys.argv[2] input = sys.stdin output = sys.stdout if nargs > 3: input = open(sys.argv[3]) if nargs > 4: output = open...

error when 'generating simulation hdl files' in xilinx xps
hi, does anyone know how to solve this error when selecting 'generate simulation hdl files' in xps (xilinx edk 9.1): ------------------------------------------------------------------ .... Analyzing file /pl/hardware/user-platforms/MySystemV5/fs-boot/executable.elf... INFO:MDT - BRAM lmb_bram will be initialized with ELF of processor microblaze_0 Running Data2Mem with the following command: data2mem -bm system_sim.bmm -bd /pl/hardware/user-platforms/MySystemV5/fs-boot/executable.elf tag microblaze_0 -u -o u tmpucf.ucf ERROR:MDT - Ucf2Vhdl Conversion Generated Errors. ERROR:MDT -...

storing bmp file in loop
I want to store the bmp files such as . there s a mistake in code that i am not successful of storing the bmp files for every frame. I get only one bmp file. for i=1:10 h= imagesc(abc(i)); saveas(h,'num2str(i).bmp') end any help is appreciable asad Does abc(i) represent an image matrix (m x n x 3)? Anyway, on the assumption it does, try this: for i = 1:10 imwrite(abc(i), [num2str(i) '.bmp']); end - Nevine asad wrote: > > > I want to store the bmp files such as . there s a mistake in code > that i am not successful of storing the bmp files for e...

FTP copied files
Hello all, I'm using self made VIs based on internet toolkit (FTP) to copy files and folders from a RT PXI to a conventional PC. To check if the process is correct, after copying a file, I check the original file size (with "FTP get file info.vi") and the copied file size (with "File Info"). Can someone tell me why .ini files (original and copied) have exactly the same size, and .dat files are always a little bit bigger when copied to a WinPC ?? :S Is it because of a difference between RT OS and Windows ?? Thanks in advance for any info. hi there &nbsp; i'...

Global Rename Files
I have a very large number of files that contain the & sign in their names. I would like to change it from & to "And". Are there any programs out there that can do this? THanks. Bill A Free (Open Source) rename utility that will do what you asked may be found at: http://www.evan.org/Software/Rename.html There are several similar utilities out there, but this one is very simple to use and it has UNDO (which the others do not). Skip Knoble, Penn State Graduate Education and Services. On 12 Dec 2006 10:15:39 -0800, "Stout" <stout27@g...

Re: flattening PUMS file #2
Here's a slightly different PROC TRANSPOSE solution: proc transpose data=pums(where=(relate=3)) out=kids ( drop = _: ) prefix = kidage; by serialno puma5 occcen5 indcen; var age ; run; data flattened; merge pums(where=(relate=1)) kids; by serialno puma5 occcen5 indcen; run; I leave the new variable names in the form KIDAGEn rather than KIDnAGE because that makes it much easier in subsequent processing. If you can hard code an upper limit on the number of kids: %let maxkids=3; then it can be done in one DATA step: data flattened; drop i three kida...

xaWdbu: A professional DBF file editor
Xailer team is proud to announce the availability of xaWdbu, a professional DBF editor completely written in Xailer. More information at: http://xailer.info/eng/?p=3D27 Best regards, Ignacio Ortiz de Z=FA=F1iga [Xailer team] ...

Credit card information unsafe with Mensys/Serenity
This is an alert to every person who has ever purchased anything through Serenity Systems or Mensys: Serenity owner, Bob St. John, has publicly revealed private information belonging to a Serenity/Mensys customer. Information that was provided under the provision of confidentiality and safekeeping. This means your credit card information, personal data, including residence and/or billing information, date of birth, private telephone numbers and all other confidential information you provided to either entity as a requirement of a purchase is unsafe and apt to be revealed. It is a criminal a...

reading data from a .txt file
I am using LabView to open a .txt file created by another program&nbsp; (fibox) every second and copy data out.&nbsp; Meanwhile, the fibox program writes data to the .txt file every second.&nbsp; The problem is that eventually the fibox program crashes (this only happens when I run it simultaneous with this particular LabView program).&nbsp; Is there some way to fix this by altering my LabView program (without messing with the fibox program)?&nbsp; Thanks!!! ...

WARNING! Virus or unsafe content was found in message from python-list@python.org
The message sent from <python-list@python.org> to the following recipient(s): andreas.brodowski@oscar-gmbh.com with subject line 'Status', contains a virus or similar harmful content, therefore it was NOT delivered. --- WORM_NETSKY.D in f-mp3music.pif WORM_NETSKY.D in f-yours.pif WORM_NETSKY.D in f-mp3music.pif WORM_NETSKY.D in f-document.pif WORM_NETSKY.D in f-message_part2.pif Eicar_test_file in f-eicar.com WORM_NETSKY.D in f-message_details.pif WORM_NETSKY.DAM in f-about_you.doc.pif WORM_NETSKY.DAM in f-message.scr WORM_Netsky.Dam in f-dinner.txt.scr WORM_NETSKY.DAM in f-d...

large file issue
I am removing several project directories and keep running into messages saying: sudo rm -rf * /path/to/dir/filename: Value too large for defined data type One workaround is to unlink the file in question but I have alot of these files and all in varying depths of directories. It would be painful to have to ls every directory to see which ones showed this error. Is there another, easier way to get rid of this stuff? Thanks. ~F At Fri, 25 Jun 2004 23:26:14 GMT, Faeandar <mr_castalot@yahoo.com> writes: > Is there another, easier way to get rid of this stuff? Sure. Download GNU...

writing a opened file
hi all... I want to patch some of sections(ELF format) of my program itself. but first problem is I can't open the program in O_RDWD... for example, this program is called TEST, I execute this program by ./ TEST TEST but the program return fail... #include <fcntl.h> #include <libelf.h> #include <stdio.h> #include <stdlib.h> #include <sysexits.h> #include <unistd.h> int main(int argc, char **argv) { int fd; if (elf_version(EV_CURRENT) == EV_NONE) (4) exit(-1); if ((fd = open(argv[1], O_RDWD, 0)) < 0) exit(-1); close(fd); } how could I overcome t...

Re: ERROR: Write to WORK.CURR_AGENTS.DATA failed. File is full an d ma y be damaged message ? How do I increase work space please
steve, Thanks for the help. I solved the problem by turning on the compress option compress=yes. Dave -----Original Message----- From: Steve Raimi [mailto:steven.raimi@GM.COM] Sent: Tuesday, September 21, 2004 5:57 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: ERROR: Write to WORK.CURR_AGENTS.DATA failed. File is full and ma y be damaged message ? How do I increase work space please I get this error, too. It's not just work space - this happens when the total available disk space is depleted. There may be efficiencies to implement in your work - can you subset the data you're using?...

AVIATIONTOOLBOX: how I convert sectional maps to map chunks
For the past few weeks, I've been obsessed with manipulating the newly- available (from the FAA) raster sectional images. This is all new to me so I've just been banging out code trying to get something reasonable. The code is *horrible* and I don't recommend it as anything beyond an example of something CS graduates should know better than to generate. However, I've been asked for details about it, so here goes... I subscribed to the Sectional Raster Aeronautical Chart Eastern Set (SRACE) and Western Set (SRACW) from the FAA. http://www.naco.faa.gov/index.asp?x...

generating IGES files
I�m working is a small company on the south-west S�o Paulo, Brazil. I�m designing Fresnel Lenses with MatLab. In order to produce plastic lenses, one needs to generate a metal mould. Once the calculations of the lens is done, I have to export the resulting matrix (wich represents the phase relief of the lens) in a format suitable to be operated by a CNC machines for example, to generate such a metal mould. IGES is a well-known file format. Could you give me some help on how to generate a IGES file from the Matlab ? Thanks so much, Giuseppe Cirino ...

Google Maps Doesn't Like Konqueror
http://maps.google.com/ "Your browser is not officially supported by Google Maps. We currently support the following browsers: IE 5.5+ (Windows) Firefox 0.8+ (Windows, Mac, Linux) Safari 1.2.4+ (Mac) Netscape 7.1+ (Windows, Mac, Linux) Mozilla 1.4+ (Windows, Mac, Linux) Opera 7.5+ (Windows, Mac, Linux) We recommend you download one of the browsers above, or you can try to load Google Maps in your current browser." -- Texeme Textcasting Technology http://www.texeme.com <posted & mailed> jabailo@texeme.com wrote: > > > http://maps.google.com/ > >...

iBook turns off Windows File Sharing
Greetings, I am running an iBook Dual USB G3 900 running 10.2.8. I find that my iBook will turn off windows file sharing without my knowledge. I'll turn it back on and then a day later it'll be off again. I don't reboot all that often so it can't be that. Is there a way to have my iBook turn on windows file sharing at log-on and leave it on? Thanks jack I'm not sure if this is your issue or not, but I had a similar problem. I had several mac workstations that were randomly dropping their connections to a windows files server for no apparent reason. In my case, the ...

Source external file for procmail vars?
I would very much like to put my $HOME/.procmailrc environmental vars in a seperate file. The ones at the top of $HOME/.procmailrc. Doing so, and putting: source /path/to/file at the top of my $HOME/.procmailrc did not work. Is this possible, and if so, how should it be done? Thanks, Alan C Alan Connor wrote: > I would very much like to put my $HOME/.procmailrc environmental vars > in a seperate file. The ones at the top of $HOME/.procmailrc. man procmailrc: INCLUDERC Names an rcfile (relative to the current directory) which will be included...

From Word to comma-delimited files
I have no longer practiced with LISP for a year, but now I think I need it and it seems that I have forgotten even the few things I learned. I want to bild comma-delimited files starting from a bunch of Word's documents, then I want to import all data in a MySQL database. The documents contains the inventory off all the books of a library. They are thousands of books. I don't earn money for this job, After saving the file(s) in text format, each entry appears separated from the other by a blank line and is organized in the following way, line by line: 1) Classification (always presen...

GeoConvert v2.0 and g98 files.
Does anyone have a copy of this program "GeoConvert v2.0" ? I have a copy of the Megapatch3 for GEOS but it has the g98 file extention and can't be open or ran. Any help would be great. TIA P.S: If you want a copy of the Megapatch 128 file go here : http://www.n2dvm.com/files/128mp3de.g98 On 04/28/2011 07:49 AM, DMackey wrote: > Does anyone have a copy of this program "GeoConvert v2.0" ? Do you mean this one? > 0 rem * creates geos program convert v.25 * > 2 dr=8:fi$="convert":ty$=chr$(6):goto18 > 4 hi=int(a/256):print#15,"m...

how to install mozilla .exe file #2
The current OS/2 warpzilla or mozilla are packaged as .exe. How can I install these? Double clicking on them only brings up the properties page. Thanks, Sandy On Thu, 30 Sep 2004 01:06:19 UTC in comp.os.os2.setup.misc, Sandy Mustard <smustard@cinci.rr.com> wrote: > > The current OS/2 warpzilla or mozilla are packaged as .exe. How can I > install these? Double clicking on them only brings up the properties > page. Open a command prompt, got o the directory where they reside and invoke them there. I suspect you'll get an error message that'...