Opened 13 years ago
Closed 10 years ago
#246 closed setup (wontfix)
permission denied
Reported by: | anonymous | Owned by: | bas |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | email2trac | Version: | 2.1.0 |
Keywords: | Cc: |
Description (last modified by bas)
[root@leblanc1 email2trac-2.1.0]# ./configure --prefix=/usr/local --exec_prefix=$prefix/bin --sysconfdir=$prefix/etc --with-mta_user=nobody
--with-trac_user=www-data checking for a Python interpreter with version >= 2.4... python checking for python... /usr/bin/python checking for python version... 2.6 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.6/site-packages checking for python extension module directory... ${exec_prefix}/lib64/python2.6/site-packages checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking whether gcc needs -traditional... no configure: creating ./config.status config.status: creating Makefile config.status: creating email2trac.py config.status: creating delete_spam.py [root@leblanc1 email2trac-2.1.0]# make gcc -DMTA_USER=\"nobody\" -DTRAC_USER=\"www-data\" -DTRAC_SCRIPT_NAME=\"email2trac\" -DTRAC_SCRIPT_PATH=\"/bin/bin\" -DDEBUG=0 -o run_email2trac
run_email2trac.c [root@leblanc1 email2trac-2.1.0]# make install if [ ! -f etc/email2trac.conf ] ; \
then \
./install-sh -c -m 644 -o root email2trac.conf etc/email2trac.conf ;\
fi
./install-sh -d /bin/bin for script in delete_spam.py email2trac.py ; \
do \
name=basename $script '.py' ;\ ./install-sh -m 755 -o root $script /bin/bin/$name ;\
done
./install-sh -m 4111 -o root run_email2trac /bin/bin
but when trying to send mail , i am getting permission denied error in maillog as Jun 12 23:43:25 leblanc1 local[13255]: fatal: execvp /usr/local/bin/run_email2trac: Permission denied Jun 12 23:43:25 leblanc1 postfix/local[13248]: 33C7D2423C7: to=<leblanc-prototype@…>, relay=local, delay=0.01, delays=0/0/0/0, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /usr/local/bin/run_email2trac: Permission denied )
Attachments (0)
Change History (13)
comment:1 follow-up: ↓ 3 Changed 13 years ago by bas
- Milestone New email2trac release 2.X.X deleted
- Priority changed from major to trivial
- Status changed from new to assigned
- Type changed from defect to setup
comment:2 Changed 13 years ago by bas
- Version changed from 2.0.2 to 2.1.0
comment:3 in reply to: ↑ 1 Changed 13 years ago by anonymous
Replying to bas:
The default installation is already: /usr/local
So there is no need to specify this on the command line. The utilities/binaries are now installed in the wrong location. See output: /bin/bin/run_email2trac instead of /usr/local/bin/run_email2trac
Note: The sysconfdir needs a full path. The same is true for exec_prefix.
I executed as ./configure --sysconfdir=/usr/local/etc --with-mta_user=nobody --with-trac_user=www-data, and also tried with ./configure --sysconfdir=/usr/local/etc --with-mta_user=root --with-trac_user=george, but both cases when mail is send to a leblanc-prototype@… in postfix (leblanc-prototype: "|/usr/local/bin/run_email2trac --project=/usr/trac/leblanc --ticket_prefix=test), I am getting permission denied error. ) , I am getting same error. The trac is running on tomcat and users are configured using .htpasswd
comment:4 Changed 13 years ago by anonymous
- Priority changed from trivial to critical
comment:5 Changed 12 years ago by anonymous
- Priority changed from critical to trivial
comment:6 follow-up: ↓ 7 Changed 12 years ago by bas
There are 2 ways to setup email2trac for postfix:
Maybe your postfix installation does not allow execution for binaries in /usr/local/bin. And what are the permissions for run_email2trac:
- ls -l /usr/local/bin/run_email2trac
Did you run it with a test email:
If this works then is definitely a postfix setup problem
comment:7 in reply to: ↑ 6 Changed 12 years ago by anonymous
Replying to bas:
There are 2 ways to setup email2trac for postfix:
Maybe your postfix installation does not allow execution for binaries in /usr/local/bin. And what are the permissions for run_email2trac:
- ls -l /usr/local/bin/run_email2trac
Did you run it with a test email:
If this works then is definitely a postfix setup problem
Permissions are below ---s--x--x. 1 root root 8607 Jun 13 19:27 run_email2trac I changed to chmod 777,but still same permission problem, I tried email2trac --project=tracproj < msg.txt, I got a ticket created in trac,but when mail sent, permission problem comes up
comment:8 follow-up: ↓ 9 Changed 12 years ago by bas
Ok it is a postfix setup problem. Did you tried the second method without using run_email2trax? Or installing run_email2trac in /usr/bin. As said maybe postfix does not allow execution of binaries from /usr/local/bin
comment:9 in reply to: ↑ 8 Changed 12 years ago by anonymous
Replying to bas:
Ok it is a postfix setup problem. Did you tried the second method without using run_email2trax? Or installing run_email2trac in /usr/bin. As said maybe postfix does not allow execution of binaries from /usr/local/bin
Tried from usr/bin, but still same error - Jun 15 02:39:57 leblanc1 local[32231]: fatal: execvp /usr/bin/run_email2trac: Permission denied Jun 15 02:39:57 leblanc1 postfix/local[32051]: 490B42427D9: to=<leblanc-prototype@…>, relay=local, delay=0, delays=0/0/0/0, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /usr/bin/run_email2trac: Permission denied ) Can you tell how to try second method without using run_email2trac,I didn't understood that.
comment:10 follow-up: ↓ 11 Changed 12 years ago by bas
Just to make sure. What kind of OS are you running and which release? I another thing is are the path to /usr/bin or /usr/local/bin readable by everybody 755: I mean every directory!
comment:11 in reply to: ↑ 10 Changed 12 years ago by anonymous
Replying to bas:
Just to make sure. What kind of OS are you running and which release? I another thing is are the path to /usr/bin or /usr/local/bin readable by everybody 755: I mean every directory!
OS is RHEL 6 and the dir is readable.
comment:12 Changed 12 years ago by bas
Did you succeed in finding s solution?
comment:13 Changed 10 years ago by bas
- Description modified (diff)
- Resolution set to wontfix
- Status changed from assigned to closed
close it no feed back
The default installation is already: /usr/local
So there is no need to specify this on the command line. The utilities/binaries are now installed in the wrong location. See output: /bin/bin/run_email2trac instead of /usr/local/bin/run_email2trac
Note: The sysconfdir needs a full path. The same is true for exec_prefix.