threads / discuss / 43508

Re: Unprivileged User

Subject: Re: Unprivileged User

## tl;dr

5 messages between Nov 30, 2006 and Dec 1, 2006.

replies: 4people: 4as markdown or json

Ed· Nov 30, 2006, 05:54 UTC · lore

Unprivileged User

Hi, I'm new to git.  Just got everything setup and imported a new project.
From gitweb it says that my git project's owner is: Unprivileged User
Should I be worried about this when I begin using this git project with others?

How would I resolve this, to make the owner as the name I set in my ~/.gitconfig, or is there something I didn't read in the docs?

Thanks, beside this small glitch, git has been great.
Jakub Narebski· Nov 30, 2006, 09:07 UTC · re: Ed · lore
Ed wrote:
Show 10 quoted lines
> Hi, I'm new to git.  Just got everything setup and imported a new project.
> 
> From gitweb it says that my git project's owner is: Unprivileged User
> 
> Should I be worried about this when I begin using this git project with others?
> 
> How would I resolve this, to make the owner as the name I set in my
> ~/.gitconfig, or is there something I didn't read in the docs?
> 
> Thanks, beside this small glitch, git has been great.
Actually gitweb uses uid/user the repository (the $GIT_DIR), unless you
provide it with an index file. The simplest way is to click on "TXT" link
in projects list page, save it somewhere, edit it, and recompile gitweb
with this file as GITWEB_LIST (see README): 
   make ... GITWEB_LIST=<index> gitweb/gitweb.cgi
(or just edit gitweb.cgi or gitweb_conf.perl setting $projects_list
to this file).
Perhaps gitweb should use user.name from the repository instead...
P.S. Please reply also to git mailing list
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Junio C Hamano· Nov 30, 2006, 09:39 UTC · re: Jakub Narebski · lore
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> Ed wrote:
>
>> From gitweb it says that my git project's owner is: Unprivileged User
> ...
> Actually gitweb uses uid/user the repository (the $GIT_DIR), unless you
> provide it with an index file.

This is a shot in the dark, but by any chance is this repository owned by nobody, which is mapped to "Unprivileged User" by /etc/passwd? Googling for "Unprivileged User" and "getpwent" tells me that on OSX boxes nobody seems to map to that Gecos name.

To explicitly set the names of list of projects and their owners, set up $projects_list text file. A hint for its format is found around line 1111 in gitweb/gitweb.perl script.

Hopefully somebody has documentation for gitweb configuration so that people do not have to refer to the source to find things out, but I do not know of a URL offhand...

Ed· Dec 1, 2006, 06:08 UTC · re: Junio C Hamano · lore

Thanks, I looked at the perl script and did it explicitly and it works... I am on mac os x, but I do not know why that would affect the behaviour of getpwuid...

On 11/30/06, Junio C Hamano <junkio@cox.net> wrote:
Show 25 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
>
> > Ed wrote:
> >
> >> From gitweb it says that my git project's owner is: Unprivileged User
> > ...
> > Actually gitweb uses uid/user the repository (the $GIT_DIR), unless you
> > provide it with an index file.
>
> This is a shot in the dark, but by any chance is this repository
> owned by nobody, which is mapped to "Unprivileged User" by
> /etc/passwd?  Googling for "Unprivileged User" and "getpwent"
> tells me that on OSX boxes nobody seems to map to that Gecos
> name.
>
> To explicitly set the names of list of projects and their
> owners, set up $projects_list text file.  A hint for its format
> is found around line 1111 in gitweb/gitweb.perl script.
>
> Hopefully somebody has documentation for gitweb configuration
> so that people do not have to refer to the source to find things
> out, but I do not know of a URL offhand...
>
>
>

← back to recent threads