installation problem

Asked by phoenix

I tried to install smb2www [samba server related stuff]. it was taking too long and i closed the terminal. after tat when i try to open synaptic packet manager it tells an error

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.

i tried to run the command
dpkg --configure -a
 in terminal. But i get a blue screen in terminal

Package configuration

 ┌──────────────────────────┤ Configuring smb2www ├──────────────────────────┐
 │ │
 │ smb2www is DISABLED by default │
 │ │
 │ If enabled, by default smb2www will allow anyone to browse your network. │
 │ │
 │ Probably this is not what you want to happen. Please modify your web │
 │ server configuration to suit. Please read │
 │ /usr/share/doc/smb2www/index.html for more information (Especially FAQ │
 │ 4) on how to do this for Apache. │
 │ │
 │ <Ok> │
 │ │
 └───────────────────────────────────────────────────────────────────────────

i have apache installed . i also installed samba server manually. Plz some one help me..

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

Have you taken a look at the documentation it mentions?

/usr/share/doc/smb2www/index.html

Revision history for this message
phoenix (dinesh12b) said :
#2

i don understand wat it is..
The contents of the file are

SMB2WWW, the gateway to Windows networking
SMB2WWW is a Windows Network client that is accessible through a web browser. It is based on the samba package.
The Current version is 980804
I hope all the obvious bugs are gone now. If not, let's hear it ! Oh, and if you've successfully deployed SMB2WWW on your network, I'd like to know as well. Always nice to hear success stories, and it gives me an idea of the installed base. (for no other purpose than my vanity, of course :-)
Revision History

    * 980427 First public release
    * 980727 Second release; lots of new functionality and fixed bugs
          o Lots of fixed bugs
          o Support for multiple languages (English, Finnish and Dutch, so far)
          o Message/popup support
          o Basic printer support (the printers are shown, no printing yet.)
    * 980802 Bugfix for 980727
          o minor oops in the install script of version 980727; add icon_message = message.gif to your smb2www.conf.
    * 980804 Bugfix Release
          o Bug in MIME-type handling fixed
          o Added feature in the share overview; you can now type in a sharename for those pesky hidden shares

Demo site
Follow this link for a demonstration of SMB2WWW.
Goodies to come in later versions !

    * File uploading
    * Erasing files
    * Frames ? Java ? Skins ?
    * Separate module for perl-smbclient interaction

FAQ
1
. How does it work ?

SMB2WWW consists of a few perl-scripts that interact with smbclient. It tries to imitate the client side of a Network Neighbourhood.

2. Why do I get all this trailing garbage at the end of a file ?

SMB2WWW isn't capable of overriding the settings in smb.conf. Comment out the 'debug level =' line. This has been fixed in samba 1.9.18p4.

3. Why doesn't SMB2WWW work with hostnames that contain a . ?

Because samba uses . as a separation between a hostname and a network name. This is not yet fixed in samba as of version 1.9.18p4.

4. What about security ?

SMB2WWW does next to nothing about security. In my opinion, having security at all for CGI is not a job of the CGI itself, but for the web server. So, if you're using apache, put something like the following in your access.conf:

<Location /cgi-bin/samba/>
<Limit GET POST>
order allow,deny
allow from 127.0.0.1
AuthName smb2www
AuthType basic
AuthUserFile /etc/smb2www/smb2www-users
AuthGroupFile /dev/null
require valid-user
Satisfy Any
</Limit>
</Location>

See the FAQ of your web server for more information. To prevent snooping, start thinking about web servers that support SSL.

5. What do I need to run SMB2WWW ?

Nothing! Debian does all the installation for you. You may want to modify some of the web server configurations to suit yourself.

6. What's this auth=FretyBNFyGDx12 gobbledegook ?

In order not to entirely give away your username/passowrd in the URL, SMB2WWW XORs the username/password pair you entered with the key you give in smb2www.conf. It puts a Base64 encoding on top of that. So what you see is essentially a Base64-encoded, XOR'd user/pass string. Of course, it's far away from being bombproof, and easily reverse-engineered. But SMB2WWW wasn't made for security, that's the thing _you_ have to do. The first person to post on bugtraq about this is going to get his ass kicked by me. In person. If you have a better idea about encryption, use the source. It's your network, not mine.

7. Hey ! It doesn't work with a ; in the [insert thingy here] !

That's right. Until I think of a better way to ensure that nobody abuses SMB2WWW to gain unauthorized access to your server, all queries are chopped at the first occurance of a ;.

8. I'd like to build a perl-script that interacts with smbclient.

For now, you can use the smb2www module for that. Take a look at the GetSMB* routines for more information. I'll build a separate library in Copious Spare Time.

9. How fast is it ?

Fast enough. :-) On a 10 mbit network, I managed to get 500K/sec from SMB2WWW, which is pretty fast considering the webserver is getting the information at the same speed it is giving it to you.

10. That's nice. I installed it, now where can I find it ?

If you used the Debian default settings, and have changed your webserver config accordingly, SMB2WWW can be found here. You might want to bookmark it.

11. I don't have a webserver.

Too bad. CGI doesn't work without one.The solution is so obvious that I won't mention it here.

12. I've got this really weird Network Neigbourhood, and SMB2WWW doesn't seem to work.

So far, I've had a few reports about really odd network neighbourhoods. SMB2WWW is capable of handling nearly any crappy Network Neighbourhood it finds (it was developed on a 1400+ hosts Network Neighbourhood), but if it's really _really_ broken, it won't know how to handle it. If you have such a network, and Windows still has ways to figure it out, please report it to me.

13. I don't like the colours/background/icons/...

Change them ! Just put your new images in the images directory, and change your smb2www.conf accordingly. You can change the text colors there, too. If you've got a new look for SMB2WWW that you really like, mail it to me !

14. SMB2WWW doesn't speak Klingon. I want Klingon.

If you want support for a language that SMB2WWW doesn't know yet, go ahead and write it ! You can use english.lang and english_help.lang as an example. Again, if you've got support for a language that is not in SMB2WWW yet, mail it to me !

15. So, I can send popups with SMB2WWW. Now how do I receive these messages with Samba ?

For now, you can add the following to your smb.conf:

message command = sh -c 'echo -e "---\nDate: %T\nFrom: %f@%m\nTo: %t\n" >> /var/log/sambamsg; cat %s >> /var/log/sambamsg; echo >> /var/log/sambamsg; rm %s' &

Now, all messages you receive will wind up in the file /var/log/sambamsg. At the moment, SMB2WWW doesn't do anything with this file yet, as I'm still thinking of a way to put it into the package in a nice way. Should you have a great idea on how to do this, please tell me.

16. Is this only for Linux ?

No ! If you've got Samba, Perl and a webserver, you can probably run SMB2WWW. It's been built and tested using Solaris and Linux.

SMB2WWW is © Remco van Mook 1997, 1998. You can contact the author at this address.
This page modified by Craig Small <email address hidden> for the Debian project.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#3

Looks like there is some config in /etc/smb2www that needs a tweak and maybe in /etc/apache*/

Sorry, I'm not familiar with the specifics of configuring smb2www, but I'd start with the config file(s) in /etc/smb2www

Can you help with this problem?

Provide an answer of your own, or ask phoenix for more information if necessary.

To post a message you must log in.