# Re: Unprivileged User

5 messages from 2006-11-30 to 2006-12-01. Participants: Junio C Hamano, Jakub Narebski, Ed, Pazu.
Thread: https://gitlist.dev/t/43508

## Ed, 2006-11-30 05:54

Subject: Unprivileged User
Message-ID: <2b9545a0611292154r4334d1afn1f49bbd3be2c3374@mail.gmail.com>
URL: https://gitlist.dev/e/2b9545a0611292154r4334d1afn1f49bbd3be2c3374%40mail.gmail.com

```
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, 2006-11-30 09:07

Subject: Re: Unprivileged User
Message-ID: <ekm6si$psp$1@sea.gmane.org>
URL: https://gitlist.dev/e/ekm6si%24psp%241%40sea.gmane.org
In-Reply-To: <2b9545a0611292154r4334d1afn1f49bbd3be2c3374@mail.gmail.com>

```
Ed wrote:

> 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, 2006-11-30 09:39

Subject: Re: Unprivileged User
Message-ID: <7vwt5djmt5.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vwt5djmt5.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <ekm6si$psp$1@sea.gmane.org>

```
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...



```

## Pazu, 2006-11-30 10:50

Subject: Re: Unprivileged User
Message-ID: <loom.20061130T115021-789@post.gmane.org>
URL: https://gitlist.dev/e/loom.20061130T115021-789%40post.gmane.org
In-Reply-To: <ekm6si$psp$1@sea.gmane.org>

```
Jakub Narebski <jnareb <at> gmail.com> writes:

> Perhaps gitweb should use user.name from the repository instead...

That would make more sense to me.

-- Pazu

```

## Ed, 2006-12-01 06:08

Subject: Re: Unprivileged User
Message-ID: <2b9545a0611302208s43d7644do1ddd050d49c50014@mail.gmail.com>
URL: https://gitlist.dev/e/2b9545a0611302208s43d7644do1ddd050d49c50014%40mail.gmail.com
In-Reply-To: <7vwt5djmt5.fsf@assigned-by-dhcp.cox.net>

```
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:
> 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...
>
>
>

```
