Tag Info

Hot answers tagged

2

Delete the lines in your passwd and shadow files in your /etc directory manually first. You can then rm -fR the home directory for that user account. (m in your example) Additional files will still have to be removed. For example: /var/spool/mail/m This is a very surgical approach to use when userdel refuses to work.


2

root:x:0:0:root:/root:/bin/bash m:x:0:100::/home/m:/bin/bash [...] # userdel: user m is currently used by process 1 # killall -KILL -u m Processes and files are actually owned by user ID numbers, not user names. m and root have the same UID, so everything owned by one is also owned by the other. Based on your description, it sounds like both userdel and ...


1

It will made you some problem, because some of problem, need of `root.rootfor running. I have a better suggestion: Import an account to /etc/suders as: youraccount ALL=(ALL) ALL Change root user as /bin/false as a non-login user.


1

Your command is pretty close. Try this: for %i in (*) do if exist "%~ni_001%~xi" echo del "%~ni_001%~xi" Check a few of the resulting del statements for testing to prove that the correct files are being deleted, then remove the 'echo' for the deletion to actually happen. Or, redirect the output to a file of del statements and check that. The %~ n and x ...


1

From: http://stackoverflow.com/questions/1420965/redirect-stdout-and-stderr-to-a-single-file You can redirect both the standard output (stdout) as well as the standard error (stderr) to the same log file. Such as dir > a.txt 2>&1


1

I faced the same problem with Folder Lock once. You have two options: If you uninstall your Folder Lock then you will be able to delete that file. Or alternatively you can download Unlocker. After you install Unlocker just right-click on that .flkb file and click on Unlocker and then from action select delete and you're done. Hope this helps.


1

I finally found the option in Mac OS X Mail to delete a message without moving it to the trash folder: You have to uncheck "Move deleted messages to Trash mailbox" under Preferences > Accounts > Mailbox Behaviors then the mails are directly deleted.



Only top voted, non community-wiki answers of a minimum length are eligible