Re: passwd & permissions

2005-03-24 Thread Peter Pentchev
On Wed, Mar 23, 2005 at 11:41:13AM -0600, H. S. wrote: [snip] > Since pw is not setuid, if it can't read any of the passwd files, it will > not print the full userlist. I have very customized (and tested, over the > years) permissions on the whole filesystem. That is why I wanted to find > out why

Re: passwd & permissions

2005-03-23 Thread H. S.
> On Sun, Mar 20, 2005 at 01:26:57PM -0600, H. S. typed: >> Hey, >> >> I'm using FreeBSD on various servers for many time now, and there is >> something that always bothered me. It is related to /etc/passwd and >> /etc/pwd.db permissions. >> >> I have custom (0640) permissions on these files. Howev

Re: passwd & permissions

2005-03-21 Thread David Malone
On Mon, Mar 21, 2005 at 07:33:25AM -0500, c0ldbyte wrote: > About the easiest way to go about it would be to set the umask for passwd > command well in operation. Unfortunately, I don't think this will work because pwd_mkdb explicitly sets the permissions on the files in question. David.

Re: passwd & permissions

2005-03-21 Thread c0ldbyte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, 20 Mar 2005, H. S. wrote: Hey, I'm using FreeBSD on various servers for many time now, and there is something that always bothered me. It is related to /etc/passwd and /etc/pwd.db permissions. I have custom (0640) permissions on these files. How

Re: passwd & permissions

2005-03-20 Thread ray
This may be partially related to the fact that I believe the system generates those files automatically from /etc/master.passwd. So if you change the perms on /etc/passwd, then when the system comes along and regenerates the files from /etc/master.passwd, it would change the permissions during tha

Re: passwd & permissions

2005-03-20 Thread H. S.
Hey, #define PERM_INSECURE (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH) #define PERM_SECURE (S_IRUSR|S_IWUSR) Thanks, removing S_IROTH worked :-) While we're at it, what is the cause for the system changing permissions when I install a port ? (ie /usr/local/sbin and /usr/local/www) As I've said in my

Re: passwd & permissions

2005-03-20 Thread David Malone
On Sun, Mar 20, 2005 at 01:26:57PM -0600, H. S. wrote: > I'm using FreeBSD on various servers for many time now, and there is > something that always bothered me. It is related to /etc/passwd and > /etc/pwd.db permissions. > > I have custom (0640) permissions on these files. However, each time a u

passwd & permissions

2005-03-20 Thread H. S.
Hey, I'm using FreeBSD on various servers for many time now, and there is something that always bothered me. It is related to /etc/passwd and /etc/pwd.db permissions. I have custom (0640) permissions on these files. However, each time a user changes his/her password, the system will reset the pas