All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
SSH Setup
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
SSH Setup - Apr. 5, '06, 4:32:17 PM
|
|
|
easterly
Posts: 3
Joined: Apr. 3, '06,
Status: offline
|
I have a Windows 2003 SP1 Domain Controller. I need to provide SSH access to this DC to automate some file transfers from a mainframe. I have installed SFU 3.5 and have successfully updated the installation with other packages that were available through this site. (Thanks btw)
When I log in via SSH, the home directory that I specified in Active Directory Users & Computers (ADU&C) is good. However I have to also configure the default shell to tcsh for the account that the mainframe is going to use; and when I login, I would like to bash to be my default shell. I cannot figure this out.
First the account that needs to login with tcsh as the default shell-
For UNIX Attributes I have set the following in ADU&C:
Login Shell: /bin/tcsh
Home Directory: /net/sv210129/users$/GE1045
For Profile I have set the following in ADU&C:
Home Folder: Connect: H: \\sv210129\users$\GE1045
If I finger the account:
Login: GE1045 Name: GE1045
Directory: /net/sv210129/Users$/GE1045 Shell: /bin/sh
Login from the BASH Shell pwd: /dev/fs/H
Login from putty pwd: /net/sv210129/users$/GE1045
I can also cd $HOME and all is well with that too.
Everything is running on this single DC.
Any suggestions?
|
|
|
RE: SSH Setup - Apr. 5, '06, 4:52:53 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
The login shell for Interix doesn't have any relationship to the Unix Attributes.
Apples and oranges.
You use the chsh command at a shell prompt as that user.
|
|
|
RE: SSH Setup - Apr. 6, '06, 11:22:27 AM
|
|
|
easterly
Posts: 3
Joined: Apr. 3, '06,
Status: offline
|
So would it be possible to add a .profile to the user home directory and have the command to load the desired shell in it?
|
|
|
RE: SSH Setup - Apr. 6, '06, 1:31:35 PM
|
|
|
easterly
Posts: 3
Joined: Apr. 3, '06,
Status: offline
|
I'm going to answer my own question. I created a file called ".profile" in the $HOME directory. Added tcsh to the file and the shell comes up.
Thanks.
|
|
|
RE: SSH Setup - Apr. 6, '06, 3:09:09 PM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Remember to have the "-l" (dash small-ell) to make it a login shell.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|