Hi,
I am trying to create a php file that adds a user and create public_html directory in linux using exec() function(php).
I can add following code to the php file
exec("useradd -d /home/username -m username"); exec("mkdir /home/username/public_html");
now..I have to add public_html to smb.conf to work public_html on windows.
is it possible to edit smb.conf on command line?
of course, I am going to use SSH as root to execute the php file.