Results 1 to 6 of 6

Thread: nano stuck in never-never land

  1. #1
    Join Date
    Mar 2007
    Beans
    5

    nano stuck in never-never land

    I was editing smb.conf via PUTTY when I lost power on the machine I was using PUTTY on. Now when I try to get back into the file it tells me it is currently open by root. I've tried restarting the server, but no luck. 16.04 Server 32bit.

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: nano stuck in never-never land

    Are you working from a Linux machine?

    If so, could you post the exact results of attempting to open the file with nano from the command line?

    Thanks.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: nano stuck in never-never land

    Try:

    Code:
    ps ax | grep nano
    The result should look something like this:

    Code:
    ps ax | grep nano
    14427 pts/1    S+     0:00 nano blame.txt
    14457 pts/2    S+     0:00 grep --color=auto nano
    as you can see the in the first instance I have a file called blame.txt open, and the PID is 14427. If nano is unresponsive kill it using:

    Code:
    sudo kill 14427
    the PID on your system will be different, but the principle is the same.

  4. #4
    Join Date
    Mar 2007
    Beans
    5

    Re: nano stuck in never-never land

    I just tried the method described by cariboo with no success
    here is the message I get when trying to open smb.conf with nano from the main terminal
    "file smb.conf is being edited (by root with nano 2.5.3 PID 2169)

  5. #5
    Join Date
    Mar 2007
    Beans
    5

    Re: nano stuck in never-never land

    I don't have any data on this install, so I'll just reinstall.

  6. #6
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,617
    Distro
    Ubuntu

    Re: nano stuck in never-never land

    Did you try
    Code:
     sudo kill 2169

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •