Suexec solution


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Suexec solution
# 8  
Old 01-12-2005
Quote:
well its just that I'm a total noob in everything related to Unix.

Umm dont get me wrong buddy, but me being a newbie to all this just dont get the significance of that. ok if suexec is the problem mind telling me a diff scenario in which i cud change that 777 hole Smilie
# 9  
Old 01-13-2005
please guys Smilie
# 10  
Old 01-17-2005
guys i cud lose my job Smilie
# 11  
Old 01-17-2005
Quote:
Originally Posted by the_last_rites
guys i cud lose my job Smilie
Dear the_last_rites,

If you keep "bumping up your thread" you are also going to lose your posting rights. Please read the rules and follow them.

https://www.unix.com/unix-for-beginners-questions-and-answers/2971-simple-rules-unix-com-forums.html

Thanks,

Neo
# 12  
Old 01-18-2005
ok just a quick question Neo, Did i bump my thread on the same day multiple times?? or just a few hours apart? I dont think so. I checked and I saw that the threads above mine had been well attended to and thats why i decided to bump. Look i wudnt have done it if I was'nt desperate for help here. This being a Unix forum and all I thought would be the right place to get all the help. Neo no offence to you but if you had said that you didnt have an answer , I would have gladly stopped bumping. As it is I wont post in this thread again , so no worries about that, Thanx for ur time. When you say its a forum for all newbies, alteast be less harsh on them. They come in here looking for help and if cold silence warnings are all they receive then maybe this forum should be renamed without the newbie in it
# 13  
Old 01-18-2005
It doesn't matter when and how you bumped the post, you did bump all the same, which is against the rules of the forums. If you had read the rules before posting you would have realised that it is not accepted regardless of whether you're a newbie or a guru.

Also; it isn't "cold silence". What would be the point of people posting to say "I don't have a solution"? - We'd end up with long pointless threads with no answers in them. If people have a solution to your problem, then they will respond to your post. People did give you plenty of advice, assistance and links to resources containing information that might help.

As Neo indicates, please review the rules. The rules and guidelines are there to keep the standard of technical discussion high, rather than people just having conversations about how they can't help one another.

I'll leave the thread open for now, but I'm sure either Neo, myself or another mod will close it if a pointless argument ensues.

Thanks,
ZB
# 14  
Old 01-18-2005
Ok. let me first say that I really dont know much about suExec other than what I just read. However, the links that I posted provide ample information regarding compiling, testing, and using suExec. It would be much more helpful if you would post information back as you encounter issues with your installation. I think then you may get a better experience from this message board Smilie (by the way, it really is a great board with lots of talented individuals. Have some patience and follow a step wise approach to your problem and you will be able to overcome it) Based on that however, before anyone can really help you, you must first provide some more information. Such as:
1. What have you done so far other than write the Perl program you posted? What can you tell us about your Apache configuration?
2. Has suExec been compiled with the correct configuration options? If not, see the link that I posted above and it will provide information regarding how to configure suExec.
3. suExec works from user/group/virtual host directives that you define when you compile suExec. You must have compiled these options into your suExec binary.


Note about compiling
Quote:
Because most of suexec's control parameters are defined at compile-time, the only way to change them is to recompile it. And since the wrapper works very closely with the Apache Web server -- to the point of both applications having to share some compile-time definitions -- the way to recompile suexec is to recompile all of Apache. If you've never done this before, you can see a brief treatment of the process in the Building Apache At Lightspeed appendix of this article.
Testing your configuration
Quote:
The simplest way to verify that suexec is functioning properly is to install a script that will tell you the username under which it's being invoked.

# cd /usr/local/web/apache/cgi-bin/
# cat > showuser.cgi << EOS
#!/bin/sh
echo "Content-type: text/plain"
echo ""
echo "Username="\`whoami\`
EOS
# chmod 755 showuser.cgi
# chown user1.group1 . ./showuser.cgi
(By calling it "showuser.cgi" you can copy it directly into a user's directory without having to rename it. Filename extensions on scripts in ScriptAliased directories are ignored, so it does no harm to keep the .cgi extension.)

Note that the cgi-bin/ directory isn't under the DocumentRoot, which is why the --suexec-docroot value was bumped up one level -- that way it covers both the ServerRoot (including the cgi-bin/ directory) and the DocumentRoot.

Since there are two ways in which suexec can be invoked, you should test both of them: Server-wide suexecution & User directory suexecution

Last edited by google; 01-18-2005 at 08:22 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SUEXEC with passwordless option

Hi, I am using the below command in suexec -u webuser /local/Tomcat7//0/tc7u/tomcat7.sh status But it prompts for the password of executing user. Let me know if any options available for passwordless or supplying password in script. (0 Replies)
Discussion started by: pravinbtech
0 Replies

2. UNIX for Dummies Questions & Answers

How to use Suexec with Apache2 ?

Hello guys I'm trying to use Suexec in my computer. I've installed apache with default settings (so Suexec is installed with my emerge Apache , Gentoo) . My settings on /etc/conf.d/apache2 # SUEXEC Enables running CGI scripts (in USERDIR) through suexec. # USERDIR Enables /~username... (1 Reply)
Discussion started by: kernings
1 Replies

3. UNIX for Advanced & Expert Users

suexec problem

Hi all, I am trying to setup apache w/ suexec to avoid permission problems w/ apache user and website user and also to be able to run a second (test) domain on the same server. So far I got fcgi w/o suexec running perfectly (logs confirm that). But as soon as I enable the suexec statement in the... (0 Replies)
Discussion started by: harrstar
0 Replies

4. UNIX for Advanced & Expert Users

apache suexec

I compiled apache 1.3.33 with suexec support like ./configure \ "--with-layout=Apache" \ "--prefix=/usr/local/apache" \ "--enable-module=ssl" \ "--activate-module=src/modules/php4/libphp4.a" \ "--activate-module=src/modules/perl/libperl.a" \ "--enable-module=perl" \ "--enable-module=most"... (0 Replies)
Discussion started by: hassan1
0 Replies
Login or Register to Ask a Question