Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Default web user

 
Rob Hunter
Ranch Hand
Posts: 832
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 832
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic