Author Topic: I need to create a resource of type Folder$  (Read 3967 times)

fgonz8

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
I need to create a resource of type Folder$
« on: December 15, 2011, 01:00:31 am »
To me it's necesary to access, and folder to type access: \\server\folder$

The web configuration interfaz, not permit this option. The $ caracter is prohibited

Is there any sugestion?

Thanks in advance.

innocenti_jr

  • Zen Monk
  • **
  • Posts: 98
  • Karma: +9/-0
    • View Profile
Re: I need to create a resource of type Folder$
« Reply #1 on: December 15, 2011, 07:59:55 am »
At the moment you have to use a hook or a custom template to have hidden shares.
Read about it here:
http://doc.zentyal.org/en/develop.html#advanced-service-customisation

However, I also think this should be implemented in Zentyal's web interface by either
* allowing the "$" char
* having a check box named "Hide share"
"The problem with quotes on the Internet is that it is hard to verify their authenticity." - Abraham Lincoln

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 153
  • Karma: +8/-0
    • View Profile
Re: I need to create a resource of type Folder$
« Reply #2 on: December 15, 2011, 09:48:49 am »

fgonz8

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: I need to create a resource of type Folder$
« Reply #3 on: December 19, 2011, 12:29:39 pm »
Hello.

Thanks for your ideas about the problem

I had defined the file /etc/zentyal/stubs/samba/smb.conf.mas as template

I obtain the \\server\Fuentes$ to assign:

path = /home/shares/samba/Fuentes

The problem is that i want to hide the resource.

Normally this is easy, with the parameter browseable=no, but in my case, this parameter is assigned in the /etc/stubs/zentyal/samba/smb.conf.mas as browseable=no, but in the file /etc/samba/smb.conf is browseable=yes.

I try to modify in smb.conf to broseable=no, but when i restart the service the parameter return to browseable=yes.

I think that the file /etc/samba/smb.conf is reconstructed when i restart the service, but I don't know who is the source to reconstructed it.

Thanks in advance.


fgonz8

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: I need to create a resource of type Folder$
« Reply #4 on: December 22, 2011, 10:44:55 am »
I finally can to hide the shared folder, creating two entries in the configuration file in /etc/zentyal/stubs/smb.conf.mas, with name Shared_Resource_Name y Shared_Resource_Name$