Page 1 of 1

Removing "Storage" Share

Posted: 16 Nov 2010, 06:05
by jovisuk
How can I remove the share "Storage" - I only want the "home" share to be visible, how do I remove shares?

Re: Removing "Storage" Share

Posted: 16 Nov 2010, 07:04
by Ubi
edit /etc/samba/smb.conf and disable the storage section by placing a # in front of each line. make a backup of the file first. A nice trick for this is:

Code: Select all

a=/etc/samba/smb.conf; cp $a $a_$(date +%Y%m%0e_%k%M);unset a
you can easily make this into a backup script too, if you replace the 'a' variable with %1

Re: Removing "Storage" Share

Posted: 16 Nov 2010, 07:38
by jovisuk
Thanks Ubi,

What am I actually doing with that command? Copying the original smb.conf file and putting it where? Or am I renaming it with the current date/time?

Re: Removing "Storage" Share

Posted: 16 Nov 2010, 07:42
by Ubi
you are copying it to a file with the same name and the data attached to it. try it on a file in /tmp you made yourself