newalias permissions problem

Matthew Saltzman mjs at ces.clemson.edu
Sat Jun 25 14:07:18 UTC 2005


On Sat, 25 Jun 2005, Alexander Dalloz wrote:

> Am Sa, den 25.06.2005 schrieb Richard E Miles um 1:57:
>
>> I noticed in my logwatch that newaliases could not create the /etc/aliases.db
>> because of permission problems. I tried newaliases at root and got this message:
>>
>> hash map "Alias0": unsafe map file /etc/aliases.db: Permission denied
>> WARNING: cannot open alias database /etc/aliases
>> Cannot create database for alias file /etc/aliases
>>
>> I checked the permissions on these files:
>> -rw-r--r--  1 root root 1526 Jun 15 16:40 /etc/aliases
>> -rw-r-----  1 smmsp smmsp 12288 Jun 19 10:43 /etc/aliases.db
>>
>> I see that the owner and group are smmsp on /etc/aliases/db. Is this right?
>> Why am i getting these messages?
>
>> Richard E Miles
>
> chown root:root /etc/aliases*
> chmod 640 /etc/aliases*

In my freshly installed FC4,

 	$ ls -l /etc/aliases*
 	-rw-r--r--  1 root root   1512 Apr 25 12:48 /etc/aliases
 	-rw-r-----  1 root smmsp 12288 Jun 24 20:27 /etc/aliases.db

so the fix for the original problem would just be

 	chown root /etc/aliases.db

The rest of the permissions were fine.

-- 
 		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs




More information about the fedora-list mailing list