Re: problem with root
- 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.
--- In LinkStation_General@yahoogroups.com, "Roy M. Silvernail"
> jamy1975 wrote:fire up
> >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
> 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