Where are the users/groups used to build smb.conf?

Hello,

On a MyCloud EX2 Ultra, firmware 2.31.204, the groups removed with the web GUI are still present in the smb.conf file. The users are also present several times in the invalid users list.

I’m struggling to find where the info used to build the smb.conf file are taken.

The UI seems to use 2 different methods to alter the configuration, depending on the section used (through “shares” or through “users”) - calling a CGI or calling the REST API.

On the PHP side, the info seems to be read from the smb.conf file itself (/etc/samba/smb.conf) - but even when manually (through SSH) editing the file to make it clean + editing /var/www/xml/smb.xml with the same info - the file is reverted to its bad content whenever i make an action on the GUI.

Does anyone have an idea of how exactly the smb config is generated ? Is there a DB somewhere on the filesystem ?

Thanks for any idea

Aleph/Ayin

Hi,

You could refer to the following link: Hacks to make Public share and USB shares private

Thanks a lot, I missed that one.