Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
logged in users screwup, can't delete a user....
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
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 180

PostPosted: Fri May 10, 2002 1:52 pm    Post subject: logged in users screwup, can't delete a user.... Reply with quote

If i try to delete a user (userdel user) i get the message that the user is logged in at the moment and cannot be deleted, but the user isn't actualy logged in.

If i do a 'who' i get a long list of users, not the ones that are logged in at the moment.
Where doest the 'who' command get it's info from ?

anyone got an idea ?

greets,
Nossie
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri May 10, 2002 2:18 pm    Post subject: Re: logged in users screwup, can't delete a user.... Reply with quote

Nossie wrote:
Where doest the 'who' command get it's info from ?


Code:
man who


To quote:

Quote:
If FILE is not specified, use /var/run/utmp.


Also, see the 'users' command. (and 'man users' or 'info users' for more information about that command)

man pages are your friend.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 180

PostPosted: Fri May 10, 2002 4:06 pm    Post subject: I did read the man pages Reply with quote

still, if i do a 'who' or 'users' i get a approx. 30 results, while only 1 user is logged in.

Code:
who /var/log/wtmp


gives the same result as

Code:
who /var/run/utmp


still puzzled....
Nossie
Back to top
View user's profile Send private message
arkane
l33t
l33t


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Fri May 10, 2002 4:07 pm    Post subject: Reply with quote

hell, it it's telling ya that, you can always do it manually...

remove the line in the /etc/passwd, any references in the /etc/group, and nix the home directory.
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