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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-21-2008, 02:46 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2008
Posts: 6
Rep:
|
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
|
|
|
|
04-21-2008, 03:03 AM
|
#2
|
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591
Rep:
|
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?
|
|
|
|
04-21-2008, 03:07 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2008
Posts: 6
Original Poster
Rep:
|
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
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?
|
|
|
|
|
04-21-2008, 03:31 AM
|
#4
|
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591
Rep:
|
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 04:08 AM.
|
|
|
|
04-21-2008, 05:47 AM
|
#5
|
|
LQ Newbie
Registered: Jan 2008
Posts: 6
Original Poster
Rep:
|
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
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.
|
|
|
|
|
04-23-2008, 02:08 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2008
Posts: 6
Original Poster
Rep:
|
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
|
|
|
|
04-23-2008, 02:32 AM
|
#7
|
|
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591
Rep:
|
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 02:36 AM.
|
|
|
|
04-23-2008, 06:40 PM
|
#8
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,261
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:00 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|