LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2024, 02:34 AM   #16
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,512

Original Poster
Blog Entries: 43

Rep: Reputation: 38

One more bug to go, but I'll deal with that tommorrow.
 
Old 08-15-2024, 02:34 AM   #17
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,512

Original Poster
Blog Entries: 43

Rep: Reputation: 38
...
 
1 members found this post helpful.
Old 08-15-2024, 12:37 PM   #18
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,512

Original Poster
Blog Entries: 43

Rep: Reputation: 38
Bugs fixed, in case anybody wants to know. I think, when I can, I'm ready to try again with my office computer's setup.
 
1 members found this post helpful.
Old 08-16-2024, 12:07 AM   #19
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,915

Rep: Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236
Setting the default shell in Ubuntu/Mint

If you add new users with command useradd
then change /etc/default/useradd
You can also do it by running
Code:
useradd -D -s /bin/bash
See also
man useradd

If you add new users with command adduser
then change /etc/adduser.conf
See also
man adduser

Regarding your script adduser.sh, alternatively you can set the shell case-by-case, by means of
Code:
useradd -s /bin/bash -c $2 -U $1

Last edited by MadeInGermany; 08-16-2024 at 12:39 AM.
 
Old 08-18-2024, 06:19 PM   #20
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,512

Original Poster
Blog Entries: 43

Rep: Reputation: 38
Thanks, I knew about useradd, but I don't think I can mostly use it. That's because it runs interactively through a bunch of information. I want to be able to add users programmatically and without asking further information than what I provided in a file. The second, might work in some future versions. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Standard Scripts for Linux: Bash Script to List all Files Inside a Directory, Line by Line to Standard Output des_a Programming 13 01-12-2024 06:25 PM
LXer: New To Linux? Don’t Use Ubuntu, You’ll Probably Like Linux Mint Better LXer Syndicated Linux News 0 02-01-2015 09:30 AM
Printing of application out in standard and non standard paper size gkedar614 Linux - Newbie 2 08-23-2013 03:40 AM
can't use modem with 2.6.8 kernel - probably modules fault killer_bunny Linux - Newbie 2 01-17-2005 12:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration