Help: How to ID a user by user number after userid has been deleted

Help: How to ID a user by user number after userid has been deleted

Post by David Rei » Tue, 23 Mar 1999 04:00:00



Hi,

Can anyone tell me if there is a way to identify or track down the user
name for an old userid number.  I have deleted some users from the
system and removed their home directories but they had other files
located on other file systems that I wasn't aware of.  Now, all I have
is their userid number as the owner of the files.  I don't want to
delete these files until I know who owned them and whether anyone else
in the company may still require access to them.

Any help would be greatly appreciated.

Thanks,

David Reid

 
 
 

Help: How to ID a user by user number after userid has been deleted

Post by Edmond van A » Tue, 23 Mar 1999 04:00:00



> Hi,

> Can anyone tell me if there is a way to identify or track down the user
> name for an old userid number.  I have deleted some users from the
> system and removed their home directories but they had other files
> located on other file systems that I wasn't aware of.  Now, all I have
> is their userid number as the owner of the files.  I don't want to
> delete these files until I know who owned them and whether anyone else
> in the company may still require access to them.

> Any help would be greatly appreciated.

> Thanks,

> David Reid


Hi,

Why not restore an old /etc/passwd ??

Regards,

Edmond van As

 
 
 

Help: How to ID a user by user number after userid has been deleted

Post by Thomas H Jones I » Tue, 23 Mar 1999 04:00:00


You could always do a find against that/those userid(s). And, if youre
worried that those files are still used, just check whether they have an
atime less than their exit date.

any way, if it isnt apparent, im saying `man find`

-tom



>Hi,

>Can anyone tell me if there is a way to identify or track down the user
>name for an old userid number.  I have deleted some users from the
>system and removed their home directories but they had other files
>located on other file systems that I wasn't aware of.  Now, all I have
>is their userid number as the owner of the files.  I don't want to
>delete these files until I know who owned them and whether anyone else
>in the company may still require access to them.

>Any help would be greatly appreciated.

>Thanks,

>David Reid


--

"You can only be -so- accurate with a claw-hammer."  --me

 
 
 

Help: How to ID a user by user number after userid has been deleted

Post by Brad Lan » Tue, 23 Mar 1999 04:00:00


    find . -user <userid> -print


>Can anyone tell me if there is a way to identify or track down the user
>name for an old userid number.  I have deleted some users from the
>system and removed their home directories but they had other files
>located on other file systems that I wasn't aware of.  Now, all I have
>is their userid number as the owner of the files.  I don't want to
>delete these files until I know who owned them and whether anyone else
>in the company may still require access to them.

--

 
 
 

Help: How to ID a user by user number after userid has been deleted

Post by Paul Carve » Thu, 25 Mar 1999 04:00:00


I would go along with the other suggestions on this thread (utilizing find
on the uid). A suggestion, for future endeavors though, would be to always,
always, ALWAYS copy your /etc/passwd file (or any other such volatile file
for all that matter) before making modifications. It doesn't take up a
great amount of space, and could save your life in situations such as
these.

PC


> Hi,

> Can anyone tell me if there is a way to identify or track down the user
> name for an old userid number.  I have deleted some users from the
> system and removed their home directories but they had other files
> located on other file systems that I wasn't aware of.  Now, all I have
> is their userid number as the owner of the files.  I don't want to
> delete these files until I know who owned them and whether anyone else
> in the company may still require access to them.

> Any help would be greatly appreciated.

> Thanks,

> David Reid


 
 
 

1. user id vs effective user id

When you su, you set your uid and gid to the new user, therefore you set
your euid and egid as well.

A very simple example of a program which has a different uid and euid when you
run it is... passwd:

fg!rtfm /proc/712 $ cat status
Name:   passwd
State:  S (sleeping)
Pid:    712
PPid:   670
Uid:    500     0       0       0
[...]
[that's Linux 2.2.13]

This is because it has the setuid bit set and is owned by root. The process
has been launched by me (fg), but it executes with the rights of root.

--
fg

# rm *;o
o: command not found

2. sun workshop

3. please help..is it possible.....

4. how to user C language to convert a known user id to a user name

5. Which Sun Server to use as a web server?

6. Apache: Having "/home/user/ do the same as ~user

7. XFree86 Version 3.1.1 & ALG 2301 HELP

8. How to prevent two concurrent users with the same user ID/Password

9. deleting an user with ID>65543

10. Numeric User IDs-User Authenication

11. User id aliases for email - should users roll their own?

12. How to find the users whose user-ids are greater than 99?