Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am connecting to the Novell Netware (OES) server via ssh. It shows me default novell console. I want it to start bash automatically when I connect. How can I do this?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Unlike SSH for Linux, SSH for NetWare doesn't come with the kind of /etc/passwd or PAM-Ldap hooks needed to specify a default shell. It also doesn't assume it's running a shell or running login scripts, which makes it further unlike Linux-SSH. It is assumed that when you SSH into a NetWare server you're an admin looking to do remote administration, and therefore you need Console. It is meant as a kind of rconsole replacement.

Because of this, you have to explicitly enter bash when you SSH into a NetWare server, it won't do it for you.

share|improve this answer
    
This is the correct answer. Note that dmityugov's reference is to the Unix profile, which is only active when a user logs into an actual Unix-like OS such as Linux or Solaris and has no effect in Netware. –  Johnnie Odom Oct 20 '10 at 15:02
    
Ok. Thanks! I understood. This is very strange console. It's only rewriting the same window every time with esc-sequences. So, it's seems hard to automate this process. I mean connect to the server, execute some commands, and then analyze the output. Maybe there is another way to make such automatic checks, more efficient than common ssh connection? –  alex Oct 21 '10 at 13:52
    
Now that I think about it, you could specify that bash start at server boot (by putting "bash" into the autoexec.ncf file) and that would leave it there for you whenever you remoted in. –  Johnnie Odom Jun 15 '11 at 13:12

The user you're connecting as either has the console set as their shell (chsh), or has the console set to run in their shell startup scripts.

share|improve this answer
    
chsh is not working in Novell bash. Where shell startup scripts in Netware could be? I can't find out how to change user's default shell in Netware like I did it other unix (in /etc/passwd) –  alex Oct 20 '10 at 11:17
    
Weird. Then the startup scripts should be hidden in the user's home directory. –  Ignacio Vazquez-Abrams Oct 20 '10 at 11:20

Not sure if this helps, but in ConsoleOne, in UNIX Profile tab for a user, you can specify the shell. In particular, you can set it to Bash. It seems it also possible to do this via iManager

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.