Hello,
Upon trying to run the newaliases command in the Configuration
Information page, I'll get the following error:
newaliases: cannot open /etc/mail/aliases: Group writable file
For context, these are the commands that I ran (similar to the book):
renodr [ /sources ]$ su
Password:
root [ /sources ]# echo $(hostname) > /etc/mail/local-host-names
root [ /sources ]# cat > /etc/mail/aliases << "EOF"
> postmaster: root
> MAILER-DAEMON: root
>
> EOF
root [ /sources ]# newaliases
newaliases: cannot open /etc/mail/aliases: Group writable file
root [ /sources ]#
In order to fix this, I had to run something similar to:
root [ /sources ]# chmod -v 644 /etc/mail/aliases
mode of '/etc/mail/aliases' changed from 0664 (rw-rw-r--) to 0644
(rw-r--r--)
root [ /sources ]# newaliases
/etc/mail/aliases: 2 aliases, longest 4 bytes, 31 bytes total
I propose adding the "chmod -v 644 /etc/mail/aliases" command to the book.
I'd like to ask for comments / suggestions before I put it in there myself.
--
Douglas R. Reno
--LFS/BLFS systemd maintainer
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page