my big bad "#%&"!

Discuss Applications

my big bad "#%&"!

Postby Basher52 » Fri Jan 09, 2004 5:22 am

i forgot the password to the account that i use for the TeamSpeak server.
How can i get that one back?

do i have to delete the account and add it again?

B52

UPDATE: i just got it...i had to misspelled it a lot of times, cuz now when i tried it again...it worked :)
but...its nice to figure out how to do this anyway, since im gonna forget some account password sometime...lol

and..since i use 'su' to change the account that starts the teamspeak server, in the /etc/rc.d/rc.local, how do a pass along the password for that account? it wont start the teamspeak since its asking the password for that account...
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Fri Jan 09, 2004 8:44 am

Arrrr????
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Membrax » Fri Jan 09, 2004 10:19 am

I guess that your password is ********* isn't it ?

:lol:

Humor is good for the spirit.
Membrax
scripter
scripter
 
Posts: 99
Joined: Tue Oct 21, 2003 2:04 pm
Location: 50'48''N - 4'21''E

Postby Void Main » Fri Jan 09, 2004 10:21 am

No, I just have no idea what your message was about. What's a Teamspeak?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Mon Jan 12, 2004 3:24 am

TeamSpeak is for us gamers that lets you talk to eachother during gameplay :) kinda cool
but the most important question is about how i can... if i can, use the su
command to start this, or other daemons with another account that need a password ?
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Mon Jan 12, 2004 11:32 am

I don't know enough about the daemon but if your original question was about a normal user Linux account that you forgot the password on then you can just reset that password as root with the passwd command:

# passwd username

Give me an example of the command that you use to start this thing, and under what user. I would have to know more about the daemon before I could comment any further. Do you have a link?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Tue Jan 13, 2004 9:53 am

all data can be DLd from teamspeak.org, and the account im trying to use is just an account i made...: tss

the start of the daemon is no problem if i do that manally, but when trying
do to this in /etc/rc.d/rc.local i have to use the su command to be able to change the account from root, as i dont want the daemon to run under that.

Ive looked around and it seems that the su command cant handle the "pipe" so i wonder if its possible to use the su command and the daemon or any daemon or a normal application that i want to run under a different account than root

hope this clears it for you :)
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Tue Jan 13, 2004 11:58 am

You can certainly start any command line program as any user from a startup script using the su command:

su - user -c "put your command here | including something piped from the previous command"
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Wed Jan 14, 2004 5:10 am

Ive tried this, but since the other account needs a password...
how to I pass that along? ... to 'su' I mean

B52
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Wed Jan 14, 2004 11:09 am

So it's no the UNIX user's password you need, it's the teamspeak process itself that requires the password. In that case it's not an "su" issue it's a teamspeak issue. You need to figure out how to start teamspeak without a password or how to pass one one (usually you can't pipe in passwords). I don't have experience with teamspeak so you will have to do some google searching or read the howtos from where it came.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Wed Jan 14, 2004 2:17 pm

hmm...how do i let u know what i mean...lol

ive created an account in linux and its under this account i want the daemon(teamspeak) to run, if i dont do this, the /etc/rc.d/rc.local will start the daemon as root, and its this i want to change, due to...if there is a flaw in teamspeak i dont want some ppl to get in as root.

so my question is, how do i pass a password for 'su' so that teamspeak, or any other program i wish to start from /etc/rc.d/rc.local, run under that account

B52
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Tux » Wed Jan 14, 2004 3:33 pm

Lets go boolean.

Is it su you want to pass a password to or not?
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Void Main » Wed Jan 14, 2004 6:18 pm

You don't have to pass a password when you su to a normal user from root, unless it is the process that you are starting that requires the password is what I am tryin to say, which I assume is the case with you.

Let's break this down. How *exactly* do you start this process under the normal user account? e.g.

1) login to Linux as a normal user with normal username and password (say username is "void")
2) $ /somepath/teamspeak -somparam

If step #2 doesn't ask for a password then you don't need to pass a password to the su command. The command you would use in your rc.local would look like so:

su - void -c "/somepath/teamspeak -someparam"

root is all powerful and doesn't require the password of a normal user to become that user with the "su" command. If Step #2 requires a password because it is actually the "teamspeak" process that is password protected by some teamspeak proprietary method then I go back to suggesting my previous advice which is ask the teamspeak poeple how to start the process without requiring a password.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Basher52 » Thu Jan 15, 2004 1:31 am

k...i got it...finally :)

i wanted the password for 'su'...yes, but as Void just told me, i dont need to set a password since root can logon as any account without a password, and this i didnt know...but i sure do know :) and I'll never forget it...lol
u learn new stuff everyday...but in this case, every other day...lol

thnx Void...ur da man :D

thnx...gotta try this.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Postby Void Main » Thu Jan 15, 2004 8:58 am

And you might want to have any output redirected to a log file and you'll want to background the process if it doesn't daemonize itself (otherwise the rc.local script will hang):

Code: Select all
su - void -c "/somepath/teamspeak -someparam > /somepath/teamspeak.log 2>&1 &"
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Next

Return to Applications

Who is online

Users browsing this forum: No registered users and 0 guests

cron