1836543 Members
3419 Online
110102 Solutions
New Discussion

Re: ownerhsip

 
Shaamil
Frequent Advisor

ownerhsip

Please help!!!!!!!!!!!!
Made a BiiiiiiiiiG booboo.....
used command
usermod -u 60001 nobody

This changed all my files & directories to the same userid & groupid from / right down.
PLEEEEAAAAAASSSSEEE help!!!!!!!!!!
HP is the greatest
6 REPLIES 6
Magdi KAMAL
Respected Contributor

Re: ownerhsip

Hi Shaamil,

usermod command is used to change your user ID ( in your command to 60001 ) so that all files and directories on the server issuing this command will be changed to the new value.
This is a normal behaviour.

If you want to come back to what did you have before, just type the same command with your old user ID ( I hope you remember it ).

If you do not remember your old user ID, restore it from any backup of the file /etc/passwd ( Check if you have Ignite Tape ).

Magdi
eran maor
Honored Contributor

Re: ownerhsip

Hi

this was to interesting to i deside to do it to my computer .

after changing with usermod and then changing it back dont solve the problem because all the file that was own with nobody got 60001 owner .

the uid of user nobody is -2 and it use for nfs .

hope that i will have the answer soon ( have too )
love computers
Ravi_8
Honored Contributor

Re: ownerhsip

Hi,
you can't revert back now...
big sory...
never give up
Ravi_8
Honored Contributor

Re: ownerhsip

Hi,
you can't revert back now...
big sory...
if you have the backup it will help u now.
never give up
eran maor
Honored Contributor

Re: ownerhsip

Hi Think that i got it .

try to use this command to switch again to the rigth owner of files .
usermod -u -2 nobody .

find . -user 60001 -exec chown root {} \;

love computers
eran maor
Honored Contributor

Re: ownerhsip

Hi

sorry , check it again .
the command usermod change not only the root owner but other owner of group .

restore it from ignite backup or do a cold install .
love computers