While we are discussing samba today, here's a little tip for the newbies out 
there.  (well it is a newbie list) This is particularly useful if you have 
used SWAT to set up your samba.

if  once you have samba working you open KDE Control Center > Information 
> Samba status
you will (probably)  be able to see any active samba shares, but see no 
information in the log or statistics tabs, and at the bottom of the exports 
tab you see a message "Samba 2.2.1a Error: Unable to run showmount"

To fix it do this :-
In your users .bash_profile  change the line beginning "PATH" to 
PATH=$PATH:$HOME/bin:/usr/sbin

This will make the error message go away after you next log in, and any 
active NFS shares will appear in the 'Exports' tab as well as the samba ones.

If you have used SWAT to set up your Samba, then the default log file it 
creates will be /var/log/samba/log.username  and there will be a different 
log for each windows users samba activity.

To show  a combined log in KDE samba status then configure SWAT to use the 
Log file /var/log/samba/log.   and configure samba status to use the same 
file. 

By default  SWAT sets the log level to 0 which is no logging. You have to 
select 'Advanced Options' in SWAT to see the field to change it. Slelect log 
level 1 for info of who is mounting samba shares, and log level 2 for 
information on each file accessed. Level 3 is for the severely paranoid.

Once you have changed the log level, SWAT will then show that field in the 
'Basic' view.

You will now be able to view the log and statistics windows in KDE Samba 
status.

Hope that has helped someone 

Derek

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to