[Novalug] Recover a dummy user?

Beartooth karhunhammas at Lserv.com
Sun Jul 20 16:10:39 EDT 2008


On Sun, 20 Jul 2008, Mackenzie Morgan wrote:
 	[...]
>> On Sun, 20 Jul 2008, Kevin Cole wrote:
 	[....]
>>> In a nutshell, using perl because I'm not sure exactly how to
>>> do it in sed...
>>>
>>> perl -p -i -e "s|user|btth|g;" /etc/passwd
>>> perl -p -i -e "s|user|btth|g;" /etc/shadow
>>> perl -p -i -e "s|user|btth|g;" /etc/group
>>> mv /home/user /home/btth
>>> passwd btth
 	[...]
> The sed way is to get rid of the -p, get rid of the semi-colons, and
> change the | inside the "" to /

 	Well, I do have sed installed on the F7 machine, 
according to rpm -q; so is that preferable?

-- 
Beartooth Implacable, Neo-Redneck Linux Enthusiast
Freedom is my issue : I'm pro-choice, pro-right-to-die,
pro-gun, and pro-term-limits. Without defiance, no liberty.



More information about the Novalug mailing list