Bugtraq mailing list archives
Re: SunOS 5.5 mailtool - stupid .forward symlink tricks
From: martinh () mailhost emap co uk (martinh () mailhost emap co uk)
Date: Tue, 25 Jun 1996 08:34:03 +0000
On Mon, 24 Jun 1996, Casper Dik wrote:
On Thu, 30 May 1996, Neil Readwin wrote:The SunOS 5.5 mailtool seems to follow symlinks when enabling the vacation feature, so if you ln -s /var/mail/luser ~/.forward and then enable vacation it copies /var/mail/luser to ~/.forward and appends "|/usr/bin/vacation me" to it (and moves the symlink to ~/.forward..BACKUP - I'm not sure if you can do any damage using that and I no longer have a 5.5 machine handy to check it). Neil.When I did this 5.5 mailtool just died with a segv leaving .forward and .forward..BACKUP there as symlinks. Sometimes .forward is there but is a zero length file. Race condition? This is on a newly installed Ultra 1 140 running 5.5. Did I miss something?Yeah, you should make you rmailbox mode 660, group mail, for this trick to work.
Downer. Tried it with that mode and mailtool still core dumped. -------------------- % whoami martinh % ls -l /var/mail total 48 drwxrwxr-x 2 root mail 512 Jun 3 10:22 :saved -rw-rw---- 1 dsc mail 329 Jun 17 09:20 dsc -rw-rw---- 1 martinh mail 0 Jun 3 12:50 martinh -rw-rw---- 1 root mail 22234 Jun 24 13:55 root % ls -l .for* lrwxrwxrwx 1 martinh sysadmin 13 Jun 25 08:53 .forward -> /var/mail/dsc % /usr/openwin/bin/mailtool & [enable vacation] % [1] + Segmentation fault /usr/openwin/bin/mailtool % --------------------- This is 5.5 Hardware 1/96 Server edition if that helps (fixed maybe). Also if you accidentally start dtmail instead of mailtool :-), and do the same thing it hangs. This is probably the wrong thing to do... M. ################################################################## # Martin Hargreaves (martin () datamodl demon co uk) Computational # # Director, Datamodel Ltd Chemist # # Contract Unix system admin/Unix security Sysadmin # ##################################################################
Current thread:
- SunOS 5.5 mailtool - stupid .forward symlink tricks Neil Readwin (May 30)
- Re: SunOS 5.5 mailtool - stupid .forward symlink tricks martinh () mailhost emap co uk (Jun 17)
- Re: SunOS 5.5 mailtool - stupid .forward symlink tricks Casper Dik (Jun 24)
- Re: SunOS 5.5 mailtool - stupid .forward symlink tricks martinh () mailhost emap co uk (Jun 25)
- What happened to the syslog bug ? Gadaix Emmanuel NTC/Bangkok (Jun 25)
- Re: What happened to the syslog bug ? Gunnar Ingvi Thorisson (Jun 25)
- Re: What happened to the syslog bug ? Joe Rhett (Jun 25)
- Re: What happened to the syslog bug ? Mike Kienenberger (Jun 25)
- Re: What happened to the syslog bug ? martinh () mailhost emap co uk (Jun 26)
- Re: What happened to the syslog bug ? Alan Brown (Jun 26)
- Re: SunOS 5.5 mailtool - stupid .forward symlink tricks Casper Dik (Jun 24)
- Re: SunOS 5.5 mailtool - stupid .forward symlink tricks martinh () mailhost emap co uk (Jun 17)