install problem with check_perms
using mailman-1.0rc3, after a (./configure; make install) I run check_perms. But it gives me this error. I'm not able to figure out exactly what it means.
[root@csociety mailman]# bin/check_perms Traceback (innermost last): File "bin/check_perms", line 164, in ? checkadminpw() File "bin/check_perms", line 128, in checkadminpw mode = statmode(adminpw) File "bin/check_perms", line 39, in statmode return os.stat(path)[ST_MODE] os.error: (2, 'No such file or directory')
Please provide some help.
--andy.
Hi,
I've the same problem!
Besides that I got a lot of error messages during the 'make install'. Is there any relation between those two error messages?
Bob
make[1]: Entering directory `/home/bob/mailman-1.0rc3/templates'
for f in *.html *.txt;
do
mv -f /home/mailman/templates/$f /home/mailman/templates/$f.prev ||
/bin/true;
/usr/bin/install -c -m 644 $f /home/mailman/templates;
done
mv: /home/mailman/templates/archives.html: No such file or directory
mv: /home/mailman/templates/handle_opts.html: No such file or directory
mv: /home/mailman/templates/listinfo.html: No such file or directory
mv: /home/mailman/templates/options.html: No such file or directory
mv: /home/mailman/templates/roster.html: No such file or directory
mv: /home/mailman/templates/subscribe.html: No such file or directory
mv: /home/mailman/templates/adminsubscribeack.txt: No such file or
directory
mv: /home/mailman/templates/adminunsubscribeack.txt: No such file or
directory
mv: /home/mailman/templates/admlogin.txt: No such file or directory
mv: /home/mailman/templates/approve.txt: No such file or directory
mv: /home/mailman/templates/bounce.txt: No such file or directory
mv: /home/mailman/templates/checkdbs.txt: No such file or directory
mv: /home/mailman/templates/convert.txt: No such file or directory
mv: /home/mailman/templates/cronpass.txt: No such file or directory
mv: /home/mailman/templates/help.txt: No such file or directory
mv: /home/mailman/templates/masthead.txt: No such file or directory
mv: /home/mailman/templates/newlist.txt: No such file or directory
mv: /home/mailman/templates/nopass.txt: No such file or directory
mv: /home/mailman/templates/postack.txt: No such file or directory
mv: /home/mailman/templates/postauth.txt: No such file or directory
mv: /home/mailman/templates/postheld.txt: No such file or directory
mv: /home/mailman/templates/reenable.txt: No such file or directory
mv: /home/mailman/templates/refuse.txt: No such file or directory
mv: /home/mailman/templates/subauth.txt: No such file or directory
mv: /home/mailman/templates/subscribeack.txt: No such file or directory
mv: /home/mailman/templates/userpass.txt: No such file or directory
mv: /home/mailman/templates/verify.txt: No such file or directory
m
-- +---------------------------------------------------------------+ | Name :Bob Eskes Email:eskes@signaal.nl | | Org :Hollandse Signaalapparaten B.V. Phone:+31-74-2484341 | | Dept :ASR (ZA-J12) FAX :+31-74-2484018 | | Adres:P.O.box 42, 7550 GD Hengelo, The Netherlands | +----------------------------------------------[ Unclassified ]-+
Andrew Sydelko wrote:
using mailman-1.0rc3, after a (./configure; make install) I run check_perms. But it gives me this error. I'm not able to figure out exactly what it means.
[root@csociety mailman]# bin/check_perms Traceback (innermost last): File "bin/check_perms", line 164, in ? checkadminpw() File "bin/check_perms", line 128, in checkadminpw mode = statmode(adminpw) File "bin/check_perms", line 39, in statmode return os.stat(path)[ST_MODE] os.error: (2, 'No such file or directory')
Please provide some help.
--andy.
Mailman-Users maillist - Mailman-Users@python.org http://www.python.org/mailman/listinfo/mailman-users
On Tue, 13 Jul 1999, e.d.j.m. eskes wrote:
I've the same problem!
Besides that I got a lot of error messages during the 'make install'. Is there any relation between those two error messages? ... make[1]: Entering directory `/home/bob/mailman-1.0rc3/templates' for f in *.html *.txt;
do
mv -f /home/mailman/templates/$f /home/mailman/templates/$f.prev || /bin/true;
/usr/bin/install -c -m 644 $f /home/mailman/templates;
done mv: /home/mailman/templates/archives.html: No such file or directory .... etc.
[root@csociety mailman]# bin/check_perms Traceback (innermost last): File "bin/check_perms", line 164, in ? checkadminpw() File "bin/check_perms", line 128, in checkadminpw mode = statmode(adminpw) File "bin/check_perms", line 39, in statmode return os.stat(path)[ST_MODE] os.error: (2, 'No such file or directory')
Possibly. Maybe add the line print path to bin/check_perms just before it does the os.stat(path)[ST_MODE]. (Make sure that the "print path" line has the same indentation as the os.stat line. (It's probably best to use spaces and no tabs to ensure the correct indentation unless your editor has a good python mode.) The error looks like it's just saying that one of the paths it's checking doesn't exist. That would seem to indicate an error with your installation. Does the /home/mailman directory even have a templates subdirectory? Is there anything in it?
---Tom
"AS" == Andrew Sydelko <sydelko@csociety.purdue.edu> writes:
AS> using mailman-1.0rc3, after a (./configure; make install) I
AS> run check_perms. But it gives me this error. I'm not able to
AS> figure out exactly what it means.
Buglet in rc3. If you've never run mmsitepass, you won't have an adm.pw file! Here's the patch (which includes one for older Pythons too)...
-Barry
-------------------- snip snip -------------------- Index: check_perms
RCS file: /projects/cvsroot/mailman/bin/check_perms,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** check_perms 1999/07/09 23:36:38 1.4 --- check_perms 1999/07/12 20:34:25 1.5
*** 49,55 **** print 'checking gid and modes for', path try: mode, gid = statgidmode(path) ! except OSError, (code, msg): if code == errno.ENOENT: continue raise --- 49,55 ---- print 'checking gid and modes for', path try: mode, gid = statgidmode(path) ! except os.error, (code, msg): if code == errno.ENOENT: continue raise
*** 125,131 **** targetmode = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP if STATE.VERBOSE: print 'checking perms on', adminpw ! mode = statmode(adminpw) if mode <> targetmode: STATE.ERRORS = STATE.ERRORS + 1 print adminpw, 'permissions must be exactly 0640 (got %s)' % oct(mode) --- 125,137 ---- targetmode = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP if STATE.VERBOSE: print 'checking perms on', adminpw ! try: ! mode = statmode(adminpw) ! except os.error, (code, msg): ! # adm.pw may not exist ! if code == errno.ENOENT: ! return ! raise if mode <> targetmode: STATE.ERRORS = STATE.ERRORS + 1 print adminpw, 'permissions must be exactly 0640 (got %s)' % oct(mode)
participants (4)
-
Andrew Sydelko
-
Barry A. Warsaw
-
e.d.j.m. eskes
-
Tom Bryan