hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Setting default shell when creating users?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Setting default shell when creating users?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 11-02-2000, 08:00 PM
webfors webfors is offline
Web Hosting Master
 
Join Date: May 2000
Location: Montreal, Quebec, Canada
Posts: 917
How do I change the default shell for the adduser command. I want the default shell to be /dev/noshell and not /bin/bash when I add a new user.

Any ideas?

Oh yeah, RedHat 6.1

Reply With Quote


Sponsored Links
  #2  
Old 11-02-2000, 10:41 PM
cbaker17 cbaker17 is offline
Web Hosting Master
 
Join Date: Jun 2000
Location: Wichita, Ks, USA
Posts: 1,984
im not sure

Im not sure as im not a admin but i was thinking you could edit the passwd file and change the shell there.

__________________
affordablecolo.com carrier grade colocation at a affordable price!
Charles Baker - Company Operations
1-866-316-HOST

Reply With Quote
  #3  
Old 11-02-2000, 10:43 PM
Félix C.Courtemanche Félix C.Courtemanche is offline
Web Hosting Master
 
Join Date: May 2000
Posts: 587
use the command userdd to do that
userdd --help for some help, but what you want to do is:

useradd -g GROUP -d /home/dir -s /dev/noshell -p

then give the password, etc.


__________________
Félix C.Courtemanche · webmaster@can-host.com
Can-Host Networks · http://www.can-host.com
web«cp Control Panel · http://webcp.can-host.com

Reply With Quote
Sponsored Links
  #4  
Old 11-02-2000, 11:01 PM
webfors webfors is offline
Web Hosting Master
 
Join Date: May 2000
Location: Montreal, Quebec, Canada
Posts: 917
Yeah, I know about the editing the /etc/passwd file and how to use the useradd command. I was just wondering if there was a way to change the default shell that useradd defaults to.

Like when I type useradd username it automatically sets the users shell to bash. Is there a way to change it so the when I just type useradd username that the shell defaults to /dev/shell?

Thanks


[Edited by tabernack on 11-02-2000 at 10:06 PM]

Reply With Quote
  #5  
Old 11-02-2000, 11:26 PM
alchiba alchiba is offline
Web Hosting Master
 
Join Date: Aug 2000
Posts: 1,167
Edit the default settings file /etc/default/useradd.

Reply With Quote
  #6  
Old 11-02-2000, 11:26 PM
Travis Travis is offline
Web Hosting Guru
 
Join Date: Oct 2000
Posts: 337
useradd is probably a shell script - you ought to be able to take a peek and see where it's selecting bash as a default. (And then change it, of course.)

I'd give you specifics, but I don't work much with RedHat boxes.


Reply With Quote
  #7  
Old 11-03-2000, 12:49 AM
JTY JTY is offline
Community Guide
 
Join Date: Jun 2000
Location: Washington, USA
Posts: 5,976
Cool

alchiba is correct on editing /etc/default/useradd

__________________
John T. Yocum -- Fluid Hosting
Shared - VPS - Dedicated - Colocation

Reply With Quote
  #8  
Old 11-03-2000, 01:19 AM
webfors webfors is offline
Web Hosting Master
 
Join Date: May 2000
Location: Montreal, Quebec, Canada
Posts: 917
Great,

thanks Alchiba, that's exactly what I was looking for.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Mozilla Firefox 23 Will Block Mix SSL Content by Default Web Hosting News 2013-04-12 11:39:07
Mozilla Updates CA Certificate Policy for Software Products Web Hosting News 2013-02-19 12:32:22
cPanel Security Updates Address Perl Module Vulnerabilities Web Hosting News 2012-12-06 12:55:54
ZNet Launches WHMCSExtras Site for Web Hosting Billing Platform Addons Web Hosting News 2012-02-10 11:48:25
Email Provider Atmail Releases One-Click iOS Provisioning with Atmail 6.3 Web Hosting News 2011-11-28 20:34:19


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?