Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Run 4diac as super user(Trying to run 4diac with different port number with super user privileges)
Run 4diac as super user [message #1833329] Fri, 09 October 2020 10:26 Go to next message
Shobhit Mishra is currently offline Shobhit MishraFriend
Messages: 7
Registered: September 2020
Junior Member
Hi,

I am trying to modify a function block in forte by adding some real time library in the code. For proper execution I need to run forte with super user privileges.
I am aware how to default forte with super user privilege, but here I am running three different resources with different port numbers and i need to run each of them with SU privileges.

E.g:
su ./forte 61500
su ./forte 61501
su ./forte 61502
something like this, or is there a way to do the same from the IDE itself? I looked around and couldn't find anything like this hence the new post.

Thanks,
Shobhit
Re: Run 4diac as super user [message #1833339 is a reply to message #1833329] Fri, 09 October 2020 11:48 Go to previous messageGo to next message
Shobhit Mishra is currently offline Shobhit MishraFriend
Messages: 7
Registered: September 2020
Junior Member
Running IDE with SU works for this.
Re: Run 4diac as super user [message #1833423 is a reply to message #1833339] Mon, 12 October 2020 20:05 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1213
Registered: January 2014
Senior Member
Please please please do not run 4diac IDE as SU. This is not a good idea. Better to use a shell script for starting 4diac FORTE. 4diac IDE is completely fine if the 4diac FORTEs you are using are not started from 4diac IDE.
Re: Run 4diac as super user [message #1833517 is a reply to message #1833423] Thu, 15 October 2020 13:30 Go to previous messageGo to next message
Shobhit Mishra is currently offline Shobhit MishraFriend
Messages: 7
Registered: September 2020
Junior Member
Thanks, I will write a small script to open forte with SU.

[Updated on: Thu, 15 October 2020 14:27]

Report message to a moderator

Re: Run 4diac as super user [message #1833737 is a reply to message #1833517] Thu, 22 October 2020 19:43 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1213
Registered: January 2014
Senior Member
Just as a thought can you make real-time rights available for just a group. I'm always getting nervous when to much has to run as SU.
Re: Run 4diac as super user [message #1833989 is a reply to message #1833737] Thu, 29 October 2020 14:26 Go to previous messageGo to next message
Shobhit Mishra is currently offline Shobhit MishraFriend
Messages: 7
Registered: September 2020
Junior Member
I have never looked into it as such but maybe PAM rules for users can be an option?
Re: Run 4diac as super user [message #1834002 is a reply to message #1833989] Thu, 29 October 2020 20:23 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1213
Registered: January 2014
Senior Member
I must confess me neither. Just wanted to bring it up.
Previous Topic:Using GPIOs and serial communication port with Raspberry Pi
Next Topic:Open62541 server failed to start
Goto Forum:
  


Current Time: Mon May 17 01:45:59 GMT 2021

Powered by FUDForum. Page generated in 0.01514 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top