Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I was trying to modify my hosts file and lost my connection. Since regaining my connection I am getting an edit: error: the file is already locked by another user//hosts root /dev/ttyp51
I've never encountered this before and wanted to know what command would clear this..
If you lost your connection, I think the machine still "thinks" you are still logged in.
Maybe there is a timeout or something when it understands you aren't logged in anymore.
alrighty.. Apparently that did not work.. I am still unable to unlock this file and edit it. I can view it but it is read only, which does me absolutely no good..
#vi hosts
New file: hosts
edit: error: the file is already locked by another user
//hosts root /dev/ttyp51 04/24/06,09:24:34
ps -aux root shows no VI process running
there is vhand however and it has an unassigned ttyp
Would it be safe to assume if the connection is lost and the ttyp is cleared that this pid I am searching for will most likely not have an associated ttyp number?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.