Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Removing "Storage" Share

Got problems with your B2 or B3? Share and get helped!
Post Reply
jovisuk
Posts: 65
Joined: 12 Sep 2010, 04:20

Removing "Storage" Share

Post by jovisuk »

How can I remove the share "Storage" - I only want the "home" share to be visible, how do I remove shares?
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Removing "Storage" Share

Post 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
jovisuk
Posts: 65
Joined: 12 Sep 2010, 04:20

Re: Removing "Storage" Share

Post 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?
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Removing "Storage" Share

Post 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
Post Reply