GeeCON Prague 2014*
The moose likes Linux / UNIX and the fly likes Default web user Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Default web user" Watch "Default web user" New topic
Author

Default web user

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 819
In Windows, the default web user is IUSR_*****. If I'm setting up permissions for the internet user for a Linux machine what is the typical username in there that would correspond to that? Is there additional steps needed for Linux setups?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

I don't understand the question.

Linux/unix/bsd systems generally have users. And applications run as users, even when they are daemons. The details of which user is used for which daemon is distribution specific.

For example, on debian systems, apache typically runs as the 'user' www-data, so you want to make sure that this user can read files as needed.

But apache also has "basic authentication" which allows some access controls to web pages, which are controlled by a completely different system, managed typically by the 'htpasswd' program.
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 819
Hi Pat,
If I were to access a webpage on a Linux server what user will that be? Is there a standard user? On Windows the user is IUSR_<server name> and any permissions on files needed to be accessed by this user I set up accordingly. Is there a similar approach for websites running on Linux machines is what I'm looking for. Does that help any? I'm used to writing code for webpages but setting up permissions and so forth I am not. Any help is greatly appreciated. Thanks.

Rob
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

On most installations of Apache, which is the standard HTTP server daemon on most Linux installs, a person with a browser just access the page, and there is no "user" involved.

You just go to a URL that you like, such as
http://www.javaranch.com

you don't need anything to read the page

Many sites have users register and login, this is actually application logic that is run by an application executed by Apache, for example, on javaranch, they use an application called ultimatebb

I think you need to get some basics working. Get apache up and running, make sure you can see the usual "It works" page display. Then change it to be something you have edited, such as "it works the way I want"
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Default web user