1 |
On Monday 17 September 2007, Albert Hopkins wrote: |
2 |
> I've been having this problem on one of my machines for a while. |
3 |
> As a user or as root I cannot run chage: |
4 |
> |
5 |
> $ chage -l marduk |
6 |
> chage: can't open password file |
7 |
> |
8 |
> I've looked at /etc/passwd*, /etc/shadow* /etc/group* and |
9 |
> /etc/gshadow* and all the permissions look fine. It works on |
10 |
> other machines. I even tried re-emerging the shadow package, but |
11 |
> still get the same error. |
12 |
|
13 |
Check your perms for gshadow: |
14 |
|
15 |
$ /bin/ls -l /etc/passwd* /etc/shadow* /etc/group* /etc/gshadow* /usr/bin/chage |
16 |
-rw-r--r-- 1 root root 1646 2007-04-14 00:45 /etc/group |
17 |
-rw------- 1 root root 1630 2007-04-01 11:04 /etc/group- |
18 |
-rw------- 1 root root 1561 2007-01-21 00:52 /etc/group.bak |
19 |
-rw-r--r-- 1 root root 1503 2007-04-12 01:31 /etc/gshadow |
20 |
-rw------- 1 root root 1491 2007-04-01 11:04 /etc/gshadow- |
21 |
-rw------- 1 root root 1422 2007-01-21 00:52 /etc/gshadow.bak |
22 |
-rw-r--r-- 1 root root 2290 2007-04-14 00:45 /etc/passwd |
23 |
-rw------- 1 root root 2220 2007-02-14 01:24 /etc/passwd- |
24 |
-rw------- 1 root root 2131 2006-12-12 18:40 /etc/passwd.bak |
25 |
-rw------- 1 root root 1174 2007-04-14 00:45 /etc/shadow |
26 |
-rw------- 1 root root 1143 2007-02-14 01:24 /etc/shadow- |
27 |
-rw------- 1 root root 1111 2006-12-12 18:40 /etc/shadow.bak |
28 |
-rws--x--x 1 root root 47937 2007-07-03 00:11 /usr/bin/chage |
29 |
|
30 |
-- |
31 |
Peter |
32 |
======================================================================== |
33 |
Gentoo Linux: Portage 2.1.3.9 kernel-2.6.22-gentoo-r1 |
34 |
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc(GCC): 4.1.2 |
35 |
KDE: 3.5.7 Qt: 3.3.8 |
36 |
======================================================================== |
37 |
-- |
38 |
gentoo-user@g.o mailing list |