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

Custom user/path #3

Open
Bluscream opened this issue Nov 13, 2018 · 4 comments
Open

Custom user/path #3

Bluscream opened this issue Nov 13, 2018 · 4 comments

Comments

@Bluscream
Copy link

I would love to use my own user (teaspeak) and my own path (/home/teaspeak/)

@Najsr
Copy link
Owner

Najsr commented Nov 14, 2018

You can always execute it with su -c. Also is it inconvenient to have the script in a location where the server is located?

@Bluscream
Copy link
Author

You can always execute it with su -c. Also is it inconvenient to have the script in a location where the server is located?

So your recommended way is to go into the right folder and THEN wget the script?
Also when i add my own commands like su -c doesn't that mean i have to redo it everytime i update your script?

@Najsr
Copy link
Owner

Najsr commented Nov 14, 2018

Well there is already an argument which is either -p or --path Which you can specify where is the server located and for the user use
su - <username> -c "location/of/the/script" So the whole script executes as a desired user

@Bluscream
Copy link
Author

Bluscream commented Nov 14, 2018

Well there is already an argument which is either -p or --path Which you can specify where is the server located and for the user use
su - <username> -c "location/of/the/script" So the whole script executes as a desired user

What if that user has a password?

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

2 participants