1826347 Members
4172 Online
109692 Solutions
New Discussion

Shells in SAM

 
Laszlo Csizmadia
Frequent Advisor

Shells in SAM

Could anybody tell me where does the list of available shell come from in SAM? I mean:
If a new user is added you can choose a shell from a list in SAM. But this list has nothig to do with e.g /etc/shells. Where does the list come from than? I just want to add few others to able to set in SAM.
Thanks in advance.
3 REPLIES 3
S.K. Chan
Honored Contributor

Re: Shells in SAM

I believe it's from the file /usr/sam/lib/C/ug.ut.ui and if you take a look closely at that file you would see a list of shells that appears in SAM useradd pull down menu ..
....
choices {
label "Start-Up Program Choices"
help "UGUTtd.CreatNonTrstUsrTmplt.sdl:Choices+StartProgList"
...
data "/usr/bin/sh"
"/usr/bin/csh"
"/usr/bin/ksh"
"/usr/bin/rsh"
"/usr/bin/rksh"
"/usr/bin/keysh"
..........
Laszlo Csizmadia
Frequent Advisor

Re: Shells in SAM

Although I more than sure that's the config file to modify it still not works. BTW in /usr/sam/lib/C/ug.ut.ui there are four section around shells:
ug_ut_def_sup (3 similar section, around lines 258, 1748, 2793) and ug_ut_mod_sup.
I have added to all four section the "/usr/local/bin/bash" but still doesn't show up in SAM.
Sholud be something initialized or a daemon restarted? How? Which?

Any help will be appreciated.
Steve Steel
Honored Contributor

Re: Shells in SAM

Hi

I do not think it will work lilke that anyway.

I did a couple of tests and

1).You can type the required shell in SAM's "add user" screen,

or

2)You could create a users template with the shell:

Like this

SAM
user area, use
Action/User Templates/Create to create the template.In it you can define your desired shell and when you want todo a user create using that shell/template,
SAM
user area, use Action/User Templates/Select to select template you want.

Then use Action/Add to add a user using that template.

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)