Safely clean old root account?
Hal Burgiss
hal at burgiss.net
Sat Jul 16 12:54:09 UTC 2011
If it were me ...
sudo cp -a /root /tmp/root.save
sudo rm -fr /root/*
Could be all you need. You might also do a ...
cp -a /tmp/root.save/.bash* /tmp/root.save/.profile /root
to preserve shell setting stuff.
Just looking at my /root, all the other stuff in /root is generated by one
app or another and probably would get recreated automatically, (eg .gnome
stuff). If not, its nothing a root user *really* needs anyway.
On Fri, Jul 15, 2011 at 8:56 PM, NoOp <glgxg at sbcglobal.net> wrote:
> On one of my desktops I had a root account enabled for testing etc. I've
> since disabled access to the account, but the process has left a bunch
> of desktop 'user' type file in /root. Anyone know of a way to safely
> clean /root so it is back to a clean default?
>
> I know that I can renable the root account & log in to the account & do
> some deleting, but is suspect that in the process I may end up borking
> something.
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Hal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110716/7d28cfa2/attachment.html>
More information about the ubuntu-users
mailing list