Loading ...
Sorry, an error occurred while loading the content.

Re: problem with root

Expand Messages
  • jamy1975
    I am happy to report that getting rid of the ^M at the end of each line solved the problem. Thanks everyone for your help. Jamy ... fire up
    Message 1 of 16 , Oct 26, 2004
    • 0 Attachment
      I am happy to report that getting rid of the ^M at the end of each
      line solved the problem.

      Thanks everyone for your help.

      Jamy

      --- In LinkStation_General@yahoogroups.com, "Roy M. Silvernail"
      <roy@r...> wrote:
      > jamy1975 wrote:
      >
      > >I have been using Vi on my redhat box to edit the file. I then copy
      > >the file over to the sahre on the linkstation and then runa script
      > >from cgi-bin3 to copy the file to /etc. The one thing I noitced that
      > >is kind of odd is that at the end of the lines in the file there is
      > >a ^M at the end of every line, but the user I added. The ^M doesn't
      > >exist in the /etc/passwd file on my redaht box, so this may be the
      > >problem, I'm just sure.
      > >
      > >
      > Yep, that's it. When you try to SSH in as root, the LS tries to
      fire up
      > a shell named "/bin/bash^M".
      >
      > In vi, the cure is:
      >
      > vi -b passwd
      > :1,$ s/^V^M$//
      >
      > --
      > Roy M. Silvernail is roy@r..., and you're not
      > "It's just this little chromium switch, here." - TFS
      > SpamAssassin->procmail->/dev/null->bliss
      > http://www.rant-central.com
    Your message has been successfully submitted and would be delivered to recipients shortly.