Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running linux mint and I would like to switch to root, shred my main user account/home folder and then create a new account... is this possible? or do I need to do a full reinstall? if it is possible if someone could provide the steps that'd be great
You would want to do just as mjmwired suggested. Use the admin tools to create a new user. Pay attention to the group membership of the first user, which is the administrator allowed to use "sudo" and the administrator tools. Test the new user's capabilities before deleting the first user.
If it is only the username you want to change, you can edit /etc/passwd and rename the home directory and save yourself a lot of work.
I was looking to do a secure delete of all files under that account,
Create the new account, delete the old account, delete the old /home/user directory.
If you really have things to hide, reinstall, and reformat the partition.
There is a secure delete package with a tool called SRM (secure remove) (link). There has been debate over time regarding its effectiveness and whether or not there is a need for this level of "shredding" with current file systems. I personally use it when I want to take extra caution to get rid of something. It works by over-writing the sectors with random and specially patterned garbage to make recovery extra difficult.
SRM is probably easiest (especially if it handles recursion for you). Other options include some carefully crafted find(1) + shred(1) or dd(1) commands, e.g.:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.