Difference between revisions of "Removing the info share"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
 
(With a perl script)
Line 17: Line 17:
 
  sed '/^\[info\]/,+6 d'  
 
  sed '/^\[info\]/,+6 d'  
 
===With a perl script===
 
===With a perl script===
http://search.cpan.org/~sscotto/File-Samba-0.03/lib/File/Samba.pm
+
'''Sources:'''
 +
 
 +
http://search.cpan.org/~sscotto/File-Samba-0.03/lib/File/Samba.pm
 +
 
 +
http://search.cpan.org/~gaas/Data-Dump-1.08/lib/Data/Dump.pm
 +
 
 +
 
 +
'''Install:'''
 +
 
 +
Extract tarball ([http://downloads.linkstationwiki.net/Users/kaiten/removeinfoshare.tar.gz]) to /
 +
 
 +
Add the following line to "/etc/init.d/smb.sh" after "/usr/local/sbin/nas_configgen -c samba":
 +
 
 +
/usr/local/bin/removeinfoshare.pl
 +
 
 +
Configure SMB through the WebUI as normal.
 +
 
 +
 
 +
'''Tarball Contents:'''
 +
 
 +
/usr/local/lib/perl5/5.8.8/Data/Dump.pm
 +
 
 +
/usr/local/lib/perl5/5.8.8/File/Samba.pm
 +
 
 +
/usr/local/bin/removeinfoshare.pl
 +
 
 +
removeinfoshare_readme

Revision as of 09:35, 11 April 2007

Contents

Why this article?

On the original and modified stockfirmwares we always have a some default shares. The normal "share" is not the problem, but "info" is as you cannot get rid of it. This article describes how to deal with that problem.

LS1/LS2/HG/HS with Openlink

Description of the mechanism

mkcode!!

Solutions

Automatic removal of the info share

Disabling updating of smb.conf

there already is another article about this!

LSPro/LSLive with stock or modified stock firmware

Description of the mechanism

nas_configgen!!

Solutions

getting access with acp_commander!!

With sed

sed '/^\[info\]/,+6 d' 

With a perl script

Sources:

http://search.cpan.org/~sscotto/File-Samba-0.03/lib/File/Samba.pm

http://search.cpan.org/~gaas/Data-Dump-1.08/lib/Data/Dump.pm


Install:

Extract tarball ([1]) to /

Add the following line to "/etc/init.d/smb.sh" after "/usr/local/sbin/nas_configgen -c samba":

/usr/local/bin/removeinfoshare.pl

Configure SMB through the WebUI as normal.


Tarball Contents:

/usr/local/lib/perl5/5.8.8/Data/Dump.pm

/usr/local/lib/perl5/5.8.8/File/Samba.pm

/usr/local/bin/removeinfoshare.pl

removeinfoshare_readme