[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: author name vs. uid
From: |
Larry Jones |
Subject: |
Re: author name vs. uid |
Date: |
Mon, 25 Mar 2002 13:39:27 -0500 (EST) |
Leif Hanack writes:
>
> i have a linux server with cvs. the cvs users are only allowed to access the
> repositories remotely over ssh. i use a cvs-wrapper that chroot the user. in
> the chroot environment i noticed, that i do not need a <chroot>/etc/passwd
> and <chroot>/etc/group file. in the chroot i do not allow the user to have a
> shell etc. the only command the remote user can do is a cvs! so fare
> everthing works fine.
>
> my only problem is, that the userid gets no expanded to the username!
Then everything doesn't work fine, does it? It's the password file that
equates uids and usernames -- without a password file in the chroot
environment, CVS doesn't have any way to map the uid back to a username.
I'm not intimately familiar with Linux, so I don't know if /etc/passwd
is definitive or not -- many systems now store the definitive password
information somewhere else and just keep /etc/passwd around as a
generated file for apps that read it directly. The man page for
getpwuid(3) should give you some clues about what files you really need
to let it work.
-Larry Jones
I stand FIRM in my belief of what's right! I REFUSE to
compromise my principles! -- Calvin