Printing pb because of amsn-tcltk-0.95-ver3.dsl


Forum: Net
Topic: Printing pb because of amsn-tcltk-0.95-ver3.dsl
started by: Selim

Posted by Selim on Nov. 10 2006,18:47
When i install amsn-tcltk-0.95-ver3.dsl, write access for Other is disabled on /ramdisk/tmp Because of this i can't print then.

Any ideas why? workarounds?

Posted by mikshaw on Nov. 13 2006,14:27
It could easily have been broken by an incorrectly built myDSL extension.

sudo chmod 777 /ramdisk/tmp

Posted by Selim on Nov. 13 2006,18:31
Thanks mikshaw for your answer.

What I'd like to know is:
- Is it possible to fix this extension and how?
- Why write access for Other on /ramdisk/tmp is needed for printing?

Btw, if clivesay read this topic, the printerhowto.pdf should be updated: it isn't necessary to modify filetool.lst for those using the backup/restore feature. When one use the Printer Setup of the control panel and then reboot  a pop-up asks you if you want to save the printer settings.

Posted by mikshaw on Nov. 13 2006,21:09
It's possible to fix, but first you need to know which extension is causing the trouble.  If an extension includes the /tmp directory (it shouldn't), and that directory is mode 755 or 775 (typical directory permissions), the directory will overwrite the system /tmp directory and break permissions. System temp directories should be 777 so any user can write to it.

If your extension is *.dsl or *.tar.gz you can see what files are in it by using the command "tar -tzf filename".
It may have "tmp/mydsl.menu/something", but it should NOT have just "tmp".

I don't know for sure why printing needs a temp file, but it might be creating a postscript file from the source file before printing. In any case, your tmp directory needs fixing if any user has trouble writing to it.

Posted by Selim on Nov. 16 2006,23:10
OK, i fixed it:

- First, i grabbed last version of amsn-tcltk-0.95 (amsn-tcltk-0.95-ver4.dsl) there:
< http://xoomer.alice.it/jls/ >

- Then, i extracted the files from it:
tar -zxvf amsn-tcltk-0.95-ver4.dsl

- Write access for Other on /tmp was set

- Finally, i compressed the files:
tar -czvf amsn-tcltk-0.95-ver4-fixed.dsl --numeric-owner *

Posted by jls legalize on Dec. 09 2006,18:40
I've followed your way of decompressing chmod and recompressing, but when I decompress again the amsn.dsl I still see no write access to others on tmp directory.

legalize cannabis, etc.

Posted by Selim on Dec. 09 2006,22:14
I think it's because you use tar and not busybox tar (as it is done in mydsl-install) to extract. The first one doesn't preserve permissions by default, the second does.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.