Hi to everyone,
I use in my project a function that passed a DPE string checks if it exists, otherwise it add in a certaint dpt.
Unfortunately, creating variables requires a specific permission, which via UI I can provide by trivially logging in. Unfortunately I am unable to automate this when starting a Script as I have only been able to handle the Login framework from UI.
Is there a topic or manual on how I can implement a login from Script as well?
Thanks
Andrea
logins/root permissions within scripts.
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
logins/root permissions within scripts.
- dbindernagel
- Posts:161
- Joined: Mon Feb 23, 2015 1:34 pm
Re: logins/root permissions within scripts.
Not sure I understand the problem correctly.
A control manager starts as user "root" by default. Therefore your script should already have all permissions.
You can use the option "-user <username[:password]> (in the console/progs file) to specifiy a different user but this would require that you enter the password which I would not recommend for security reasons.
https://www.winccoa.com/documentation/W ... en-20.html
If you are using SSA for Managers you can create a certificate for your script and username. This would allow you to not enter the password if you really need a different user than root.
https://www.winccoa.com/documentation/W ... ation.html
A control manager starts as user "root" by default. Therefore your script should already have all permissions.
You can use the option "-user <username[:password]> (in the console/progs file) to specifiy a different user but this would require that you enter the password which I would not recommend for security reasons.
https://www.winccoa.com/documentation/W ... en-20.html
If you are using SSA for Managers you can create a certificate for your script and username. This would allow you to not enter the password if you really need a different user than root.
https://www.winccoa.com/documentation/W ... ation.html
- andrea.bertorelli
- Posts:33
- Joined: Wed May 31, 2017 3:58 pm
Re: logins/root permissions within scripts.
Good morning,
Thank you for your response. I actually didn't know they start with root privileges, this should make my work easier. Unfortunately, I already had codes that provided the login by default, and I didn't try to inhibit that part to see if they still worked.
I will try, in the meantime thank you very much, also for the second tip!
Thank you for your response. I actually didn't know they start with root privileges, this should make my work easier. Unfortunately, I already had codes that provided the login by default, and I didn't try to inhibit that part to see if they still worked.
I will try, in the meantime thank you very much, also for the second tip!