Difference between revisions of "Removing the info share"
(→With a perl script) |
(→With a perl script) |
||
Line 35: | Line 35: | ||
cd /tmp | cd /tmp | ||
+ | |||
wget http://downloads.linkstationwiki.net/Users/kaiten/removeinfoshare.tar.gz | wget http://downloads.linkstationwiki.net/Users/kaiten/removeinfoshare.tar.gz | ||
+ | |||
tar -C / -xzvf removeinfoshare.tar.gz | tar -C / -xzvf removeinfoshare.tar.gz | ||
Revision as of 21:16, 23 July 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
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
cp -a /etc/samba/smb.conf /etc/samba/smb.orig sed '/^\[info\]/,/guest ok = yes/d ; /^###info###/d' /etc/samba/smb.orig > /etc/samba/smb.conf
Paste that after line 20 in the /etc/init.d/smb.sh - info share is removed on restart, and every restart thereafter.
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 /
cd /tmp
wget http://downloads.linkstationwiki.net/Users/kaiten/removeinfoshare.tar.gz
tar -C / -xzvf removeinfoshare.tar.gz
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