Removed .lock files in /etc, now user folders missing
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Removed .lock files in /etc, now user folders missing
Hi,
I was having trouble adding users on my Fedora Server because I kept getting the message "cannot change password lock file" or "cannot change shadow lock file".
I removed password.lock and shadow.lock and I was still unable to add a user.
Then i did rm *.locks.
Now all of my user folders are gone. The disk space on the drive is still being used but the actual folder is nowhere to be found.
your user folders? you mean the contents of /home? there isno way at all that deleting a lock file can do that... what does "ls -l /home" show? what else were you doing at the time?
The way the server is set up, all the home folders are located at /home/personal/username.
When I do a ls -la in /home, the entire /home/personal folder is gone, thus bringing with it all of the individual user folders.
Now, the weird part is that the disk space is still being used. I did a df -h right before everything disappeared and then right after. It was exactly the same.
These folders are also Samba shares that Windows/Mac/Linux users can access. Maybe that has something to do with it?
I was thoroughly caught off guard when this happened because obviously this behaviour should not happen when deleting .lock files.
The only other thing I was doing at the time was untarring an archive file. This was going into /home/personal/user/archivefile. I don't see how that would make a difference either, but you never know.
Sounds like the kind of situation in which the mount point /home/personal exists, but the partition isn't mounted. ls /home/personal would show nothing. Mount the partition, eh voila, it's all there.
So, is /home/personal on a seperate partition, and is the partition mounted? Look in /etc/mtab for a quick check on the mount status.
Last edited by bigrigdriver; 08-17-2007 at 12:41 PM.
I found my mysteriously disappearing home folders. For some unknown reason, when I removed the lock files the home folders were moved into the home folder of the new user I was trying to create. I just moved them back to their proper spot and voila, everything was as it should have been.
It was very strange, but thank you all for the very quick responses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.