1 saves your day if you get unexplainable errors from rpm install because /vservers/test has bad permissions:
3 # la -d /vservers/test/
4 drwx------ 23 root root 4096 Jun 16 02:01 /vservers/test/
6 # vrpm test -- -Uhv masqmail-0.2.20-5.amd64.rpm
7 Preparing... ########################################### [100%]
8 rpm-fake-resolver: getpwnam(): Invalid argument
9 1:masqmail ########################################### [100%]
10 warning: user mail does not exist - using root
11 warning: user mail does not exist - using root
12 warning: user mail does not exist - using root
13 warning: user mail does not exist - using root
16 real fix would be 'chmod 755 /vservers/test' if you just knew that is the problem!
18 --- util-vserver-0.30.210/src/rpm-fake-resolver.c~ 2006-06-16 03:22:36.000000000 +0300
19 +++ util-vserver-0.30.210/src/rpm-fake-resolver.c 2006-06-16 03:22:40.000000000 +0300
21 if (args.chroot) Echroot(args.chroot);
24 + if (access("/", X_OK) == -1) {
25 + WRITE_MSG(2, "*** root directory is not accessible for specified uid. rpm-fake-resolver will most likely fail.\n");
28 activateContext(args.ctx, args.in_ctx, args.caps, args.flags);
29 Esetgroups(0, &args.gid);