Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
root pass changed, did i get hacked?
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
dknzubzero
n00b
n00b


Joined: 18 Sep 2004
Posts: 8

PostPosted: Thu Oct 21, 2004 8:35 pm    Post subject: root pass changed, did i get hacked? Reply with quote

hey.

about 20 min ago i emerged a couple of things using the root user, it worked perfecly.

now just a few mins ago i wanted to log in again (by ssh as i always do)

but my password was wrong, i checked speeling, caps etc etc. didn't help.

tryed locally on the server (its right next to me) and i couldn't log in there either...

ctrl+alt+f1 .. i had left a root consol open.. passwd and now the root user works again.. but..

as i thought a friend (who have my root pass since he's the one i turn too when having linux problems) was playing i joke on me i though that i would make a backup root (admin) so that i could use that for his next joke... i use "Kuse" to add it.. marks all the groups and hit the ok button... and then an error comes up

Code:

file /etc/gshadow does not exist

Can't create backup file for /etc/gshadow


Kuser have markings in all the groups i choosed yet it doesn't seem to work... the user is an copy of the root user (i added "games")

trying to do a passwd another user... an emerge cmd... or to play "ski"

passwd [user[ = you may not chance the pass of....

emerge= you need to be in portage group... you need root priv.

ski = cmd not found...

i should have access to all of them...

the server is open to the net, no firewall and the NAT doesn't touch it.. the router is so bad to port management that i just open up for the server to avoid any more problems...

did i get hacked or did someone just make a good joke in me?
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Thu Oct 21, 2004 9:02 pm    Post subject: Reply with quote

it is not enough to be in all groups. you have to be the one and only user called "root" for some things.

have a look at the filepermissions of /etc/gshadow - to talke your example. they are 400 root:root, so only the user root can modify this file.
same goes for emerge. actually it is just a sript - view it! it checks if the user root is running it.


Last edited by hds on Thu Oct 21, 2004 9:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
dknzubzero
n00b
n00b


Joined: 18 Sep 2004
Posts: 8

PostPosted: Thu Oct 21, 2004 9:05 pm    Post subject: Reply with quote

i'm logged in as root when using Kusers .. so i should have access to it... ?
Back to top
View user's profile Send private message
hds
Advocate
Advocate


Joined: 21 Aug 2004
Posts: 2629
Location: Sprockhoevel [GER]

PostPosted: Thu Oct 21, 2004 9:08 pm    Post subject: Reply with quote

dknzubzero wrote:
i'm logged in as root when using Kusers .. so i should have access to it... ?

ah, sorry! i understood you that you were working as the user "admin" - my fault then.
anyway, i dont know kuser - but fact remains that only the user root is able to run emerge and able to modify gshadow.
also i just realize your gshadow doesnt even exist! well, thats strange 8O
btw: you could run "grpconv", to create gshadow, but i would wonder why this file is missing in the 1st place 8O
Back to top
View user's profile Send private message
dknzubzero
n00b
n00b


Joined: 18 Sep 2004
Posts: 8

PostPosted: Fri Oct 22, 2004 10:49 am    Post subject: Reply with quote

thats why i was thinking hacker instead of joke... since my friends wouldn't destroy something in my system.. also they (the two who knows the password) where not even home last night..

I've used Kuser before.. (its the KDE user admin program)..

the system is stable and from what i've checked so far i've lost no data... so i'm just gonna find a new password and see whats happends... also i've scanned with a few rootkit-scanners. all came out cleane...

but thx for the help.. i learned something new :) (being in root-group doesn't make you all that cool ;) )
Back to top
View user's profile Send private message
Paulten
Apprentice
Apprentice


Joined: 28 Mar 2003
Posts: 257
Location: Sykkylven, Norway

PostPosted: Fri Oct 22, 2004 1:09 pm    Post subject: Reply with quote

why don't you just check the logs? ;)
"last" is usefull for this
_________________
Homepage : http://paul.kde.no Jabber ID : tenfjord@jabber.org
"Dei levde som dyr. Dei verken røykte eller drakk" -Ukjent
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