Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make a command work on user account?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Tue Sep 25, 2012 7:20 am    Post subject: How to make a command work on user account? Reply with quote

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
View user's profile Send private message
Leo Laursen
n00b
n00b


Joined: 29 Mar 2012
Posts: 38

PostPosted: Tue Sep 25, 2012 8:00 am    Post subject: Reply with quote

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:
Code:
sudo ts3server
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3920
Location: Hamburg

PostPosted: Tue Sep 25, 2012 8:24 am    Post subject: Reply with quote

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
View user's profile Send private message
rabcor
Apprentice
Apprentice


Joined: 05 Apr 2012
Posts: 200

PostPosted: Tue Sep 25, 2012 8:43 am    Post subject: Reply with quote

Ah, thanks ^^
_________________
This picture was my biggest reason for ever trying Gentoo <3
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Sep 25, 2012 8:45 am    Post subject: Reply with quote

/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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum