Re: aliasing to a command

2001-02-14 Thread Dave Sill

[EMAIL PROTECTED] wrote:

Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
/bin/sh:_/home/medi/l/foo:_Permission_denied/

What is the output of:

  ls -ld / /home /home/medi /home/medi/l /home/medi/l/foo

(ls really needs a "recursively upward" option.)

-Dave



Re: aliasing to a command

2001-02-14 Thread Medi Montaseri

Just in case others don't have the context of this posting, we are
troubleshooting
a Qmail (.qmail-test) alias containing a command (ie /home/medi/l/foo)

[medi@samba medi]$ ls -ld / /home /home/medi /home/medi/l /home/medi/l/foo
drwxr-xr-x   23 root root 4096 Dec 13 13:59 /
drwxr-xr-x   39 root root 4096 Feb  7 12:35 /home
drwx--   10 medi users4096 Feb 13 18:30 /home/medi
drwxr-xr-x2 medi users4096 Feb 13 18:50 /home/medi/l
-rwxr-xr-x1 medi users  94 Feb 13 18:40 /home/medi/l/foo
[medi@samba medi]$

Since medi's home dir is too strict, I moved foo(1) to /tmp/foo. I now get
the following

Feb 14 13:10:09 samba qmail: 982185009.542210 starting delivery 12197: msg
204880 to local "|/tmp/foo"@mail.sc.prepass.com
Feb 14 13:10:09 samba qmail: 982185009.542837 status: local 2/10 remote
0/20
Feb 14 13:10:09 samba qmail: 982185009.542963 delivery 12196: success:
did_0+1+0/qp_12418/
Feb 14 13:10:09 samba qmail: 982185009.543151 status: local 1/10 remote
0/20
Feb 14 13:10:09 samba qmail: 982185009.543297 end msg 204872
Feb 14 13:10:09 samba qmail: 982185009.549566 delivery 12197: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

So looks like qmail is not recognizing the command and thinking its a
user's name.
FYI I don't have any user called "test", such an alias
/var/qmail/alias/.qmail-test

Dave Sill wrote:

 [EMAIL PROTECTED] wrote:

 Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
 /bin/sh:_/home/medi/l/foo:_Permission_denied/

 What is the output of:

   ls -ld / /home /home/medi /home/medi/l /home/medi/l/foo

 (ls really needs a "recursively upward" option.)

 -Dave

--
===
Medi Montaseri, [EMAIL PROTECTED], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
===






Re: aliasing to a command

2001-02-14 Thread Tim Hunter

I am guessing the contents of .qmail-test are currently |/tmp/foo
the | causes it to be treated wrong.
just try /tmp/foo/ if you want it delivered into the /tmp/foo/ directory

- Original Message -
From: "Medi Montaseri" [EMAIL PROTECTED]
To: "Dave Sill" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 9:13 AM
Subject: Re: aliasing to a command


 Just in case others don't have the context of this posting, we are
 troubleshooting
 a Qmail (.qmail-test) alias containing a command (ie /home/medi/l/foo)

 [medi@samba medi]$ ls -ld / /home /home/medi /home/medi/l /home/medi/l/foo
 drwxr-xr-x   23 root root 4096 Dec 13 13:59 /
 drwxr-xr-x   39 root root 4096 Feb  7 12:35 /home
 drwx--   10 medi users4096 Feb 13 18:30 /home/medi
 drwxr-xr-x2 medi users4096 Feb 13 18:50 /home/medi/l
 -rwxr-xr-x1 medi users  94 Feb 13 18:40 /home/medi/l/foo
 [medi@samba medi]$

 Since medi's home dir is too strict, I moved foo(1) to /tmp/foo. I now get
 the following

 Feb 14 13:10:09 samba qmail: 982185009.542210 starting delivery 12197: msg
 204880 to local "|/tmp/foo"@mail.sc.prepass.com
 Feb 14 13:10:09 samba qmail: 982185009.542837 status: local 2/10 remote
 0/20
 Feb 14 13:10:09 samba qmail: 982185009.542963 delivery 12196: success:
 did_0+1+0/qp_12418/
 Feb 14 13:10:09 samba qmail: 982185009.543151 status: local 1/10 remote
 0/20
 Feb 14 13:10:09 samba qmail: 982185009.543297 end msg 204872
 Feb 14 13:10:09 samba qmail: 982185009.549566 delivery 12197: failure:
 Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

 So looks like qmail is not recognizing the command and thinking its a
 user's name.
 FYI I don't have any user called "test", such an alias
 /var/qmail/alias/.qmail-test

 Dave Sill wrote:

  [EMAIL PROTECTED] wrote:
 
  Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
  /bin/sh:_/home/medi/l/foo:_Permission_denied/
 
  What is the output of:
 
ls -ld / /home /home/medi /home/medi/l /home/medi/l/foo
 
  (ls really needs a "recursively upward" option.)
 
  -Dave

 --
 ===
 Medi Montaseri, [EMAIL PROTECTED], 408-450-7114
 Prepass Inc, IT/Operations, Software Eng.
 ===








Re: aliasing to a command

2001-02-13 Thread Greg White

On Tue, Feb 13, 2001 at 11:55:39AM -0800, Medi Montaseri wrote:
SNIP
 My simple test of
 
 $cat /var/qmail/alias/.qmail-test
 |/home/medi/ldap/foo
 
SNIP sample code
 Is failing with an error message in /var/log/maillog saying
 
 Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
 /bin/sh:_/home/medi/l/foo:_Permission_denied/
 
vi /var/qmail/alias/.qmail-test
:%s/l\/foo/ldap\/foo/

That will solve your problem if you actually posted the correct logs and
if /home/medi/ldap/foo is executable by user 'alias'.  

-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy



Re: aliasing to a command

2001-02-13 Thread Medi Montaseri

Sorry Greg, the paths are correct, I just reported them incorrectly and
the permission on /home/medi/l/foo is

[medi@samba l]$ ls -l /home/medi/l/foo
-rwxr-xr-x1 medi users  94 Feb 13 18:40 /home/medi/l/foo
[medi@samba l]$

and .qmail-test reads

[medi@samba l]$ cat /var/qmail/alias/.qmail-test
|/home/medi/l/foo
[medi@samba l]$


Greg White wrote:

 On Tue, Feb 13, 2001 at 11:55:39AM -0800, Medi Montaseri wrote:
 SNIP
  My simple test of
 
  $cat /var/qmail/alias/.qmail-test
  |/home/medi/ldap/foo
 
 SNIP sample code
  Is failing with an error message in /var/log/maillog saying
 
  Feb 13 18:54:21 samba qmail: 982119261.837833 delivery 11917: deferral:
  /bin/sh:_/home/medi/l/foo:_Permission_denied/
 
 vi /var/qmail/alias/.qmail-test
 :%s/l\/foo/ldap\/foo/

 That will solve your problem if you actually posted the correct logs and
 if /home/medi/ldap/foo is executable by user 'alias'.

 --
 Greg White
 Those who make peaceful revolution impossible will make violent
 revolution inevitable.
 -- John F. Kennedy

--
===
Medi Montaseri, [EMAIL PROTECTED], 408-450-7114
Prepass Inc, IT/Operations, Software Eng.
===