I am trying to create a directory on /etc/samba/ but I have the error:PermissionError: [Errno 13] Permission denied: '/etc/samba/credentials'
My function is this:
samba_credentials_path = "/etc/samba/credentials"# Funcion para crear el archivo de credencialesdef create_credentials_file(user, password, domain): try: os.makedirs(samba_credentials_path, 0o700, exist_ok=True) except FileExistsError: print("El directorio ya existe :D")