Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Open /usr/lib/mail/aliases: World Writeable File

Status
Not open for further replies.

smmad86

MIS
Apr 3, 2003
5
US
I'm trying to issue the newaliases command to apply my changes from the aliases file and I'm getting the following cannot open error.


# l
total 44
-rwxrwxrwx 1 root sys 498 Jul 11 13:58 aliases
-rwxrwxrwx 1 root bin 498 Apr 7 09:33 aliases-@
-rwxrwxrwx 1 root bin 4096 Nov 16 1999 aliases.db@
-rwxrwxrwx 1 root bin 4096 Nov 16 1999 aliases.db-@
-rwxrwxrwx 1 root sys 498 Apr 8 08:52 aliases.new
-rwxrwxrwx 1 root sys 498 Apr 8 09:03 aliases@
-rwxrwxrwx 1 root sys 385 Nov 3 1999 aliasses.bak
drwxrwxrwx 2 root bin 512 Aug 29 1999 antispam@
-rwxrwxrwx 1 root bin 3308 Aug 29 1999 execmail@
-rwxrwxrwx 1 bin bin 943 Aug 29 1999 mail.help@
-rwxrwxrwx 1 bin bin 1114 Aug 29 1999 mail.thelp@
-rwxrwxrwx 1 bin bin 564 Aug 29 1999 mailrc@
# newaliases
WARNING: writable directory /usr
WARNING: writable directory /usr/spool
WARNING: writable directory /usr/spool/mqueue
WARNING: writable directory /usr
WARNING: writable directory /usr
WARNING: writable directory /usr
newaliases: cannot open /usr/lib/mail/aliases: World writable file


Issuing the "/usr/lib/sendmail -bi" command returns the same results. I'm I missing something simple?

Michael Davis
 
yes.....permissions are wrong

chmod a-w aliases

also remove the write permissions on the directories it listed

 
I cleared up a bunch of file permissions, but I don't understand why I'm getting the following errors. Any is appreciated!

Mike


# cd /usr/lib/mail

# newaliases
hash map "Alias0": unsafe map file /usr/lib/mail/aliases: Symbolic links not all
owed
dbm map "Alias0": unsafe map file /usr/lib/mail/aliases: Permission denied
WARNING: cannot open alias database /usr/lib/mail/aliases
Cannot create database for alias file /usr/lib/mail/aliases: No such device

# ls -la
total 14
drwxr-xr-x 2 bin bin 512 Jul 18 09:32 .
drwxr-xr-x 53 bin bin 4608 Jul 24 2000 ..
-rw-rw-r-- 1 root sys 497 Jul 18 09:42 aliases
lrwxrwxrwx 1 root sys 45 Nov 30 1999 aliases.db -> /var/opt/K/S
CO/SendMail/8.8.8b/lib/aliases.db
lrwxrwxrwx 1 root root 45 Aug 29 1999 aliases.db- -> /var/opt/K/
SCO/SendMail/8.8.8b/lib/aliases.db
lrwxrwxrwx 1 root root 48 Aug 29 1999 antispam -> /var/opt/K/SCO
/SendMail/8.8.8b/lib/mail/antispam
lrwxrwxrwx 1 root root 39 Aug 29 1999 execmail -> /opt/K/SCO/Sen
dMail/8.8.8b/lib/execmail
lrwxrwxrwx 1 root root 47 Aug 29 1999 mail.help -> /opt/K/SCO/Ma
ilUA/1.0.4a/usr/lib/mail/mail.help
lrwxrwxrwx 1 root root 48 Aug 29 1999 mail.thelp -> /opt/K/SCO/M
ailUA/1.0.4a/usr/lib/mail/mail.thelp
lrwxrwxrwx 1 root root 48 Aug 29 1999 mailrc -> /var/opt/K/SCO/M
ailUA/1.0.4a/usr/lib/mail/mailrc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top