Slackware :: Difference Between Login And Interactive Shells
Apr 22, 2010
I am having trouble distinguishing between login and interactive shells as they relate to terminals. I understand that a login shell is what is started when you login, and an interactive shell is used by scripts and such. I also get that terminals will use an interactive shell by default. What I don't understand is why interactive shells have no prompt by default. Is their a way to get an interactive shell to inherit the normal PS1 prompt? Is it considered bad to do this? Would it be better to have terminals start login shells, and if so why or why not?
View 7 Replies
ADVERTISEMENT
May 5, 2010
I am trying to figure out where variables are set for interactive shells? In particular, I am trying to have LS_OPTIONS inherited by interactive shells as it is by login shells. I understand LS_OPTIONS is set in /etc/profile, and this may not be processed by interactive shells but by login shells. However, I also note other variables such as PATH and INPUTRC are set correctly in interactive shells, and these are also set in /etc/profile from what I understand. So how is it determined which variables are inherited by all shells, and which are just for login shells?
View 16 Replies
View Related
Jun 6, 2010
Let's say that I have a customized Bash prompt stored as a PS1 variable. My variable gets read every time I invoke a login shell, i.e., when logging in in one of the standard virtual terminal or by invoking xterm with the -ls parameter.
However, when I just invoke the terminal without specifying that it is a login shell, I just get something like: bash-XXX$ as a prompt.
where should I place my PS1 variable so that it could get read even on non-login shells?
View 7 Replies
View Related
Jan 16, 2010
Is there a difference between the shells such as sh, csh, ksh and bash if so what is it or is it simply a matter of preference?
View 2 Replies
View Related
Mar 22, 2010
I want to have an ls' output colorization in gnu screen. Colorization in my system (Slackware 13) is realized by aliasing of ls in /etc/profile.d/coreutils-dircolors.sh:
Code:
$ alias ls
alias ls='/bin/ls $LS_OPTIONS'
where $LS_OPTIONS is
Code:
$ echo $LS_OPTIONS
-F -T 0 --color=auto
But in screen this alias isn't defined. It seems like /etc/profile script isn't executed at shell starting in screen. I think it happens because screen starts a shell not as a login shell. I tried to correct it by adding to ~/.screenrc or to /etc/screenrc. The problem is the same. By the way when I start screen as a root I haven't this problem. What's wrong?
View 3 Replies
View Related
Jan 26, 2011
I need to run a script that prompts the user for some input and takes action based on that input. It must run at the end of the login process, after the desktop is displayed.I tried putting it in ~/.bash_login, but it didn't run. Do I need to tell /etc/profile to run ~/.bash_login? I thought it looked for it & ran it if it was found.
A related question would be - Can I make it so the terminal session that is running the script be the only thing that the user can do? In other words, they can't click on anything on the desktop or in the panels and have it run until after they respond to the input request.
View 1 Replies
View Related
Apr 16, 2010
I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command: useradd useraccount -s /sbin/nologinAfter I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct?
View 2 Replies
View Related
Jun 2, 2010
Before you say you shouldn't do that bla bla bla. I know why i shouldn't.
However i have a problem with running sudo commands from a non interactive command line script run using plink.
The automated script needs to use chown and give the current user ownership of some files and folders created by another user.
I can't use things like sudo -s etc as it requires that i enter a password.
I have setup public key authorization in order to login. Do i have to give the root user a password and log in as that. I would prefer not doing this but if that is the only solution i guess i'll have too.
View 4 Replies
View Related
Mar 16, 2010
I just build a couple production SLES 11 machines and I'm using an ssh client to connect. However the ssh client forces me to use keyboard interactive login. How can I turn this off so I can use the normal username / password?
View 1 Replies
View Related
May 24, 2010
My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh
View 1 Replies
View Related
Feb 18, 2011
Intuitively I think that the Login Shell and the Interactive Shell are the same applications but have access to different environmental variables.It this true? Why is there more than one type of shell anyways? You can change users with the interactive shell, why not log on with it to?
View 10 Replies
View Related
Apr 22, 2011
I would like to run an interactive python script in tty1 on startup. This script requires user input outputs relevant data.I also need this script to be run as root as it accesses USB devices (and has to detach kernel drivers).It is an infinite-loop script, so I also want to be able to ctrl+alt+F to tty2 to actually login if needed
View 1 Replies
View Related
Feb 4, 2011
I have a situation where I am in a non-interactive shell. I have tried from within my non-interative shell to spawn an interactive shell but my output still does not goto me. Isn't there a way I can somehow go into /proc or somwhere and make the output my /dev/tty1? Or some way else to remedy this?The situation arises because I drop from my restricted shell environment (a sort of CLI interface), into the actual Linux shell. I cannot change the code of the CLI environment I am just faced with being in the linux shell environment and its non-interactive. Its very annoying to have to put > /dev/tty1 after every command I type.
Not to mention it seems damn near impossible to get pagers like more and less to work properly when your in a non-interactive shell.
View 2 Replies
View Related
Feb 16, 2010
I've noticed in different config files (inet1.conf, for example) that some lines are commented out with '#' and others are commented out with '##'
Is there any reason for this?
View 2 Replies
View Related
Jan 18, 2011
Does the rc.firewall script just use iptables or is that something completely different?
View 3 Replies
View Related
Jan 17, 2011
difference b/w a login shell and a non-login shell ?
I know that when we use su - <username> we are getting a login shell & when we use su <user-name> we are getting a non-login shell.
Do we get any additional privileges when we have a login shell compared to a non-login shell ?
View 6 Replies
View Related
May 26, 2011
I'm trying to decide which kernel to install in my Slackware 13.37 installation. What is the difference between huge.s and the hugemps.s kernels ? Does one do something the other does not ? I'm installing Slackware because I've read it has no Pulsemedia baked into it. I hope neither kernel has any of that stuff.
View 2 Replies
View Related
Jun 14, 2011
Although I use Slackware for many years I never understood something. During the creation of partitions, using cfdisk, there are 2 choices. "Beginning" and "End". What's the difference between these two choices? Does this have to do with older Lilo versions?
View 5 Replies
View Related
Oct 14, 2010
I want to know what are the difference between redhat, slackware, ubuntu and others distributions.
View 1 Replies
View Related
Mar 24, 2011
Firefox's Brazilian Portuguese Language Pack has not yet been ported to Firefox 4 so I got Mozilla's Firefox binary in my language, used Pat's Slackbuild for 13.1 and replaced Slack's Firefox with it. I tried compiling it localized from source using the Slackbuild in /source, but all I found to add to the configure options was a "--with-l10n-base=directory" option, which I made point to the pt-BR locale I'd downloaded from Mozilla, but it still compiled in en-US.
My question is: am I missing out on something like the cairo-tee option? If I am, has anyone had success in building a localized version of Firefox around here? How?
View 4 Replies
View Related
May 20, 2011
The Slackbook reads:
Quote: The precompiled Slackware kernels are available in the /kernels directory on the Slackware CD-ROM or on the FTP site in the main Slackware directory. I am unable to reach it, what's the proper login?
[Code]....
View 3 Replies
View Related
Jun 27, 2010
what is the /bin/ksh shells
View 1 Replies
View Related
Mar 24, 2011
Does anyone know of any free services offering debian or ubuntu shells? I want to run IRC remotely with screen, but free services only seem to offer unix shells. I'm not really bothered by that but I feel more comfortable on ubuntu.
View 2 Replies
View Related
Jun 13, 2011
I have to call URL from shell script. E.g.: www.google.com. How can I call URL from the shell script.
View 6 Replies
View Related
Nov 16, 2010
What are the differences between the shells in Linux (eg. bash,bourne,korn,C etc) and which one is it better to run scripts under?
View 4 Replies
View Related
Aug 15, 2010
While I was installing some packages, the power in my street went out (uncleanly killing my system) ... unfortunately Kpackage was open at the time of the power outage. Now when I try to use KPackage, I get "Login Problem, Please Login Manually" ... which does not allow me to login using either the root or user's password. I have rebooted my computer many times and have even run a 'reiserfsck /dev/*** --fix-fixable' on my system, which did not repair the problem.
I have researched this error, but have only found responses that people suggest changing the KPackage behaviour from 'su' to 'sudo' ... ; while this does work, it feels like a 'putting-a-band-aid-over-a-warning-light-so-I-can't-see-the-warning-light-anymore' kind of 'fix?' which isn't good as it would enable anyone using the system to add or remove packages without thought or consequence. What I would prefer to do is actually fix the problem so that proper root password entering is again required to add or remove packages, so my question is:
1. Does anyone know if KPackage 'locks' out a file(s) on the system which may be preventing me from logging into the program correctly, and if so what and where the file(s) may be?
2. Can I delete any kpackage (profile?) file to gain normal login behaviour again?
3. Is this a permissions error?, has something in users/groups? been broken that I can look into?
4. how I may be able to properly repair this KPackage login problem on my system?
View 6 Replies
View Related
Feb 15, 2010
How can I know how many shells my system support (Is there any specific command)?
View 9 Replies
View Related
Feb 24, 2010
I am college student and for this semester. I am planning to do a project in Linux. Also I have a plan 2 create a new shell in linux.
View 4 Replies
View Related
Jun 21, 2011
I was able to set up SSH and log into my linux machine and I want to interact with shells already running on the desktop. I can locate and view the processes but I'm wondering if its possible to "get into" the program I already have running via SSH and enter commands.
View 4 Replies
View Related
May 24, 2010
Is there any way to have x server on multiple shells at a time?(eg. Sally is logged in on shell 6 with her own desktop cube while Rob is logged in on shell 7 with his own desktop cube, etc)
View 2 Replies
View Related