I have been looking at /etc/profile. bash.bashrc to see how they are run, and notice that some are executed by non-login shells, some work with interactive shells etc.
What are the differences in this type of shells, ie interactive & non-interactive, login & non-login etc?
The question may be pretty basic,but it seems I need to ask what a shell is, first and foremost.
Login and non-login shell defined as:
su - $USER # will give you a login shell
bash # will give you a non-login shell
/etc/profile is not invoked for non-login shells, such as when you start konsole (kde). /etc/profile is only invoked for login shells.
Why is that? Please explain, because I like to understand the rationale of this.
Hi
What is the command to run additional available shells on top of default shell. I am using bash
also how can i tell that the additional shells are actually running?
Also what is the advantage of running additional shells on top of your default login shell of bash?
Lastly How can I terminate the shells I opened What would happens if i accidentally closed the default login shell?
login encounters pam_shells in its authentication stack which means that /etc/shells defines valid login shells for users. /bin/bash is listed in /etc/shells, not /usr/bin/bash.
falconindy
https://bbs.archlinux.org/profile.php?id=30251
2013-05-18T00:51:55Z
I understand the basic difference between an interactive shell and a non-interactive shell. But what exactly differentiates a login shell from a non-login shell?
Can you give examples for uses of a non-login interactive shell?
Hi ,
I am trying to create a limited ftp user for a company on Solaris 10 .
(uname : 5.10 i386)
I use /bin/true shell for the user ((and use ftpconfig -d and adding user in ftpaccess guestuser))
but the problem is that when I try to log in by FTP it cannot login.
when I change the shell to bash it works
I tried to check the /etc/shells but there is no /etc/shells available
another quest
I have just started learning the fundamentals of Unix and wondering why there are so many shells in a unix like system .
Hi everyone,
well I am using Linux some years, but since I built a LFS, I feel noobish again. Now with the help of BLFS I am setting up my environment and somewhere I incidentally read, that not every variable is inherited by a child Bash shell.
Hi guys,
I've create 3 shells concerning my work, which named as 1.sh, 2.sh and 3.sh.
However, how can I make an interactive query for these shells just like the old (fdisk) in windows9x. I want to make an interface tells the user just like this:
Code:
Press 1 to execute "1.sh"
Press 2 to execute 2.sh.