From: Jamie C. <jca...@we...> - 2005-02-17 02:08:24
|
On Thu, 2005-02-17 at 10:10, paddy wrote: > On Wed, Feb 16, 2005 at 09:01:46AM -0500, Vernon Webb wrote: > > I guess my point here is that I am using Webmin and VirtualMin exclusively on my > > system and I need to setup vacation messages for people. What is the best way to do this. > > > > > On Thu, Feb 17, 2005 at 09:33:36AM +1100, Jamie Cameron wrote: > > > > That description above is correct - if you want a user to be able to > > have programs in his .forward file (like the vacation program), he has > > to have a shell that is listed in the /etc/shells file. For Virtualmin > > users, this is typically /dev/null by default .. > > > > FWIW on the raq4 they did: > > # grep test-user /etc/mail/* > aliases:test-user: "|/usr/local/sbin/vacation.pl /var/vacation/test-user.msg tes...@ex...", \test-user > virtusertable:tes...@ex... test-user > > with > > # grep atest-user /etc/passwd > atest-user:x:335:100:test-user:/home/sites/site99/users/test-user:/bin/badsh > > and > > # cat /etc/shells > /bin/bash > /bin/sh > /bin/bash2 > /bin/tcsh > /bin/csh > /bin/badsh > > and > > # ls -l /bin/badsh > -rwxr-xr-x 1 root root 13217 Dec 5 2001 /bin/badsh > [root mail]# file /bin/badsh > /bin/badsh: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), not stripped > [root mail]# /bin/badsh > > ************************* Access Denied ************************* > * * > * Sorry, you do not have telnet/shell access to this Cobalt * > * server. * > * * > ***************************************************************** > > So the key difference is that /bin/badsh is in /etc/shells ? > Not sure if that's a good idea though ... It won't cause any problems ... Also, if the autoresponder is set up in /etc/aliases rather than .forward, the contents of /etc/shells doesn't matter. - Jamie |