LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-21-2008, 03:46 AM   #1
Nickbrandson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Rep: Reputation: 0
Bash vs ksh


hi guru,
When I take a look in my userlist, found that some of the user granted "bash" where some is granted "ksh".

* Bash shell
netdump, pvm, cyrus, mysql,postgres, amanda, user, ftpuser

What are those accounts used for?

ksh is assigned to those users created by me.

any ideas?
Nick
 
Old 04-21-2008, 04:03 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
mysql is propably the user administring mysql. ftpuser is probably the default user when you connect to your server via ftp. postgres is probably administring postgreSQL. amada is probably doing backups. netdump is probably allowed to access low level network APIs. pvm probably has the right to administer pvm. Cyrus is probably running the IMAP server and user is probably the first user that was installed by the installer?
 
Old 04-21-2008, 04:07 AM   #3
Nickbrandson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for you info,
Just wondering why bash is given to those accounts where ksh is given to the user account created by myself.
Is it the linux default?

Quote:
Originally Posted by Agrouf View Post
mysql is propably the user administring mysql. ftpuser is probably the default user when you connect to your server via ftp. postgres is probably administring postgreSQL. amada is probably doing backups. netdump is probably allowed to access low level network APIs. pvm probably has the right to administer pvm. Cyrus is probably running the IMAP server and user is probably the first user that was installed by the installer?
 
Old 04-21-2008, 04:31 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Bash is the GNU shell. Most GNU systems use bash by default. Over 99.999% of linux systems are acually GNU systems.
Moreover, this is probably a personnal opinion, but I find bash vastly superior to ksh. May I ask you what you prefer in ksh? Is it to stay compatible with AIX or something?

EDIT: I re-read your question. I didn't get it at first. You mean 'linux' is choosing ksh for you? What is the distro and how do create the users? There must be a configuration somewhere to create the users. If you are using useradd, check /etc/default/useradd. ksh is not the GNU default. It's probably your distro which is weird or somebody did change the default configuration.

Last edited by Agrouf; 04-21-2008 at 05:08 AM.
 
Old 04-21-2008, 06:47 AM   #5
Nickbrandson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
This server has been set up by an ex-colleague, the default for /useradd is bash.
Don't know why my colleague is using ksh for some of the user accounts those have been used by users running a macro program to FTP Excel from local PC to Linux server for importing data.
Maybe compatible with Windows, right?

Quote:
Originally Posted by Agrouf View Post
Bash is the GNU shell. Most GNU systems use bash by default. Over 99.999% of linux systems are acually GNU systems.
Moreover, this is probably a personnal opinion, but I find bash vastly superior to ksh. May I ask you what you prefer in ksh? Is it to stay compatible with AIX or something?

EDIT: I re-read your question. I didn't get it at first. You mean 'linux' is choosing ksh for you? What is the distro and how do create the users? There must be a configuration somewhere to create the users. If you are using useradd, check /etc/default/useradd. ksh is not the GNU default. It's probably your distro which is weird or somebody did change the default configuration.
 
Old 04-23-2008, 03:08 AM   #6
Nickbrandson
LQ Newbie
 
Registered: Jan 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Is there any reason to use KSH over Bash? Security issue?
If we change the KSH back to Bash, is there any concern?
sorry i'm just a newbie for unix
thanks again
 
Old 04-23-2008, 03:32 AM   #7
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
The usage is somewhat different. Some users are more confortable with ksh, maybe because they've spent too much time on AIX or something. Personally, ksh gives me headaches. It has nothing to do with security. It's just about habits. bash is like a shortcut. Some people will insist on taking the long path because it's the path they know and they are afraid to be lost if they take another path. It's better you ask the users if they prefer to use ksh.
Anyway, it's not that important. It's just the default shells for the users. It's very easy for the user to use ksh or bash as they like despite their default shell. If they prefer bash, they just have to type 'bash' or put that in their .profile and that's all

Last edited by Agrouf; 04-23-2008 at 03:36 AM.
 
Old 04-23-2008, 07:40 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
ksh is very similar to bash (ie most cmds in a script will work unchanged if transferred). ksh tends to be the (modern) default on commercial Unices.
Then of course you've got csh (old) tsch (updated to csh) and zsh...
The main thing in production envs is to specify at the top of the script which shell it expects, just in case the default for that acct is not the same as the one it was written under.
 
  


Reply

Tags
shell


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
How to switch from BASH to KSH? tejpatil Linux - Software 13 06-14-2007 03:03 PM
Can I install KSH on Fedora 7 which already has bash on it tejpatil Linux - Software 4 06-14-2007 11:48 AM
bash or ksh noir911 *BSD 5 05-10-2007 12:08 PM
bash more bloated than ksh? noir911 Linux - General 4 10-10-2006 05:58 PM
ksh commands in bash nkelle Linux - General 2 11-13-2003 12:11 PM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration