View previous topic :: View next topic |
Author |
Message |
rabcor Apprentice
Joined: 05 Apr 2012 Posts: 200
|
Posted: Tue Sep 25, 2012 7:20 am Post subject: How to make a command work on user account? |
|
|
Sorry for the noob question...
I am trying to host a teamspeak 3 server
as root, i can run the command "ts3server" which will start the server up.
as a user i get command not found.
normally on other distrosi ]d have just run ts3server_minimal_script (or something like that) but that one gives me a "binary file not found" so... i figured just to use the method i already found to work. _________________ This picture was my biggest reason for ever trying Gentoo <3 |
|
Back to top |
|
|
Leo Laursen n00b
Joined: 29 Mar 2012 Posts: 38
|
Posted: Tue Sep 25, 2012 8:00 am Post subject: |
|
|
I don't know if ts3server needs to run as root, but you could try with full path, e.g.
Code: | /usr/sbin/ts3server |
If you have sudo, try: |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Tue Sep 25, 2012 8:24 am Post subject: |
|
|
Try first with full path and without sudo - usually a common user just hasn't /sbin and /usr/sbin/ in its PATH - you can set it in your .bashrc. |
|
Back to top |
|
|
rabcor Apprentice
Joined: 05 Apr 2012 Posts: 200
|
Posted: Tue Sep 25, 2012 8:43 am Post subject: |
|
|
Ah, thanks ^^ _________________ This picture was my biggest reason for ever trying Gentoo <3 |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Tue Sep 25, 2012 8:45 am Post subject: |
|
|
/usr/sbin and /usr/local/sbin are never on user PATH. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
|