Simple Samba Share with no Active Directory

NethServer Version: 8
Module: Samba

Is it possible to install Samba on a NethServer node without installing AD support? I’m building a server that will be primarily used as a web server and email server. I use a simple samba share on my old server to publish changes to the web server. I don’t have a need for AD support on this server at all.
Will installing Samba from the Rocky Linux 9 repository cause any problems?

No, I don’t think so but it won’t be included in the NethServer 8 backup and it’s cleaner to not touch the OS.

Does the webserver pull the changes from the samba share or how does it work?

1 Like

The solution you adopted on the old server does not fit NS8 architecture. Mixing containerized services with host services is discouraged. From official docs:

Install NS8 on a clean Linux server distribution, avoiding installation on desktop systems or servers already running other services.
https://docs.nethserver.org/projects/ns8/en/latest/system_requirements.html#linux-distribution

SELinux will prevent the smb service from accessing data labeled container_t by the WebServer app. Even without SELinux, matching ownership and permissions with the WebServer uid/gid namespace will be problematic.

As an alternative to SMB, consider that WebServer provides an SFTP server to upload web resources:
https://docs.nethserver.org/projects/ns8/en/latest/webserver.html#virtual-hosts

1 Like

It’s a way longer version than “NS8 do not support this solution”. Like “application hosting platform” is a longer way to say OS.

I second that 24/7 and twice on sundays.

1 Like

Primarily, the folder /var/www/html is shared to a specific Samba group, and the members of that group can write changes to the folder.