Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run a specific script as sudo ? #38

Open
shrinidhi111 opened this issue Mar 6, 2022 · 0 comments
Open

How do I run a specific script as sudo ? #38

shrinidhi111 opened this issue Mar 6, 2022 · 0 comments

Comments

@shrinidhi111
Copy link

I loaded 3 scripts and embedded them using go-bindata.

In that 2 scripts needs to be run with admin privileges and 1 script should be run as user.

How can I run a specific script as sudo?

In the example code there is only a concept of calling bash functions in go and other way round.

	bash.Source("main.bash", Asset)
	status, err := bash.Run("main", os.Args[1:])
	

What about launching the whole script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant