Quick question about setting then ssh shell

8 posts / 0 new
Last post
#1 Wed, 04/15/2009 - 06:58
maxp1

Quick question about setting then ssh shell

I can't find the place to set a user's shell. Did it before but have spent an hour looking around for it now.

I guess an associated question is how can I change the dropdown for new user so that there are more than two options, "mail only" and "mail and ftp". I've tried setting "custom shells" under "system customization" but the new options I set up don't appear when I create a new user.

Thanks in advance.

Wed, 04/15/2009 - 07:08
andreychek

Howdy,

You can mess with the available shells in System Customization -> Custom Shells. Just check the "Enabled" check box, and then choose which types of users a given shell should be available for.

Have a good one,
-Eric

Wed, 04/15/2009 - 07:19 (Reply to #2)
maxp1

Umm.. Yes, I did that. The options I set us don't appear when I create a new user, just the default ones.

Also, I remember setting this specifically per-user somewhere but I can't seem to find it now. Any clues?

Thanks for the speedy response.

Wed, 04/15/2009 - 07:21 (Reply to #3)
ronald
ronald's picture

you'll also have to switch the default from /bin/false to /bin/sh.
for existing users you can edit them under webmin-system-users and groups.

just click on the user and change the shell. remove them also from deniedssh group under groups if they are listed.

I agree it is hard to find and should actually be part of the account plans.
Virtualmin gives (gave) /bin/sh by default.

Wed, 04/15/2009 - 07:35 (Reply to #4)
maxp1

webmin-system-users and groups was where I saw it previously. Thanks a bunch.

Still unsure why what I set up in "custom shells" isn't available to me when I create a new user.

Wed, 04/15/2009 - 07:47 (Reply to #5)
ronald
ronald's picture

you can set that in the servers template under "Administration user" called Initial Unix shell

Wed, 04/15/2009 - 09:46 (Reply to #6)
Joe
Joe's picture

I've always felt like we went a bit too far on the shell customization possibilities. We had a <i>lot</i> of people demanding tons of flexibility and nothing short of complete customizability was acceptable, but now that we have it, it's pretty intimidating. ;-)

I don't know how to solve that. Luckily most folks never need to customize things, as the defaults are pretty sensible for many deployments.

--

Check out the forum guidelines!

Wed, 04/15/2009 - 10:09 (Reply to #7)
ronald
ronald's picture

you can't solve that.
flexibility is great as long as it doesn't break anything elsewhere in the system.
imo, having more options just means learning more.
The server templates and the account plans are the most important to know thoroughly once the features are set.

and in the end, there's always the command line..

Topic locked