Ubuntu :: What Is 'login Shell'?
Jul 27, 2010what is "login shell" and what is the difference between "login shell" and just "shell"?
View 2 Replieswhat is "login shell" and what is the difference between "login shell" and just "shell"?
View 2 Repliesyesterday I updated my fedora 13 to fedora 14 (on laptop) and today i cannot log in on user. It just go blank for a sec and is back to login.
At text console (alt+ctr+f2/f3) i enter my username and pass it give this for a sec and resets (clean) console
username: Name
password:
last used: [date]
login: no shell permission denied
i used unetbootin (fedora 14 netinstall to update) and later i updated 1,5G before reboot (did update that fix, forgot its name tho :s)
I would most likely reinstall everything, but i have some work at laptop and as death-line is near, i would prefer to fix it if possible.
edited:
i have installed F13 on unused space, is there a way for me to access and fix it? or at least get some files from there?
diffrence between login and non login shell. What does it mean by user enviorment.
View 3 Replies View RelatedI just installed GS following the instructions here:[URL]... and the classic way of getting GS to start at login (adding gnome-shell --replace in start up applications) doesnt work.
To start GS now we have to use the command "~/gnome-shell/source/gnome-shell/src/gnome-shell --replace" via the terminal adding that to start up doesnt work either, does anyone know how to get GS to start at login?
I've seen lots of posts all over the Internet that advise users to check the "Run command as a login shell" checkbox in GNOME Terminal under Edit->Profile Preferences->Title and Command.
This makes gnome-terminal run bash/csh/tcsh/ksh as a login shell, which it does not do by default. In turn, running gnome-terminal as a login shell sources the system and user login scripts. This sets up things like colored ls etc.
It seems like gnome-terminal should be a login shell by default. Why isn't it? I've never seen a good explanation of why gnome-terminal isn't a login shell. The "Run command as a login shell" checkbox must be unchecked by default for some good reason, right?
Hello.I am using Opensuse 11.1 (just installed),gnome-based .My problem is,I can only login as root,cos the tty's attached to my normal user(non-privileged)keep crashing(I checked this with last).Is there any way I can fix this?I reinstalled several times,nothing to do.
View 9 Replies View RelatedHow to login as root in linux shell?
View 3 Replies View RelatedI work with a text mode debian6.0 and when I was testing some commands, I changed default shell to ash. System replied that it has not ash shell.so I thought the shell did not change. But when I start the system again and enter root password, I see a message like "can not execute ash. No such file or directory" and then system return to login page again. Root is the only user on that system.
View 11 Replies View RelatedWe have a centos machine which serves as a web server. We also have a mysql server running on it. Currently we log-in via a gui prompt into a gui session. We are looking at changing this aspect; we want to login via the shell instead of gui. We'd need to keep all the current services on that machine running however. What should we do?Even once this is done I'd need to know how to start a gui session from the shell itself.
View 8 Replies View RelatedI inadvertently typed the wrong path when changing my user login shell and now every time I log in I get a message stating that it can't find the shell and boots me off the system. It will then redisplay the login prompt. I'm running Ubuntu Server x64 in VMware Workstation.
View 1 Replies View Related"When first starting, the shell inspects argument 0, and if it begins with a dash '-', the shell is also considered a login shell" - from the dash man page. Could someone please explain this to me in a way that I actually understand?
View 1 Replies View RelatedI've been having some problems and was trying to diagnose them. My graphics were going wonky at the BIOS stage (spots, letters changing colour, and even the very first screen of nVidia details swapping "version" for "versikn") so I went to try a new graphics card. Not long before I got my new graphics card, Gnome 3 really started playing up and did the "oops, a problem occurred" at every login. I created a new account and got the same behaviour. I swapped my GeForce 7950 out for a GeForce 7300 that I scrounged up. The spots and changing letters disappeared, so I knew that at least part of the issue was the graphics and not something else (e.g. motherboard or memory). I still got the "Ooops" screen, so I knew that wasn't caused by a bad response from the graphics card or anything.
I've since nuked the install (which started out as 11.4 RC1 with GNOME3:STABLE) and re-installed from a new download of the 11.4 DVD plus GNOME3:STABLE (in accordance with these instructions) with all of the updates. I can now log in without the "Ooops", but if I am using the proprietary nVidia drivers then the display won't repaint after a few seconds (long enough for Gnome Do to appear, but not long long enough for me to do anything else) - clicking on Activities or on the menu in the top-right doesn't seem to do anything. If I Ctrl+Alt+F1 then Ctrl+Alt+F7 to skip to a terminal and back then the cursor is still there, but the screen is blank.
If I swap to the Nouveau drivers then I can log in to Gnome Shell and it continues to render, but even simple things like dialogs folding down from the top of their parent window can grind along and take a few seconds to finish painting. That is on the 7300 rather than the 7950, but I haven't swapped the cards back as I'm still suspicious of how healthy the 7950 is. I've not seen anything that appears relevant in the XOrg log, but given that X will reboot and isn't completely hung then it could be a repaint bug more than an error. I've tried all of this with clean accounts with the same results, so it wouldn't seem to be any of the standard .gconf/.dconf etc folders.
When we are asked for password while booting Linux, is that the login shell ? If yes, we can't seem to be able to do anything in that shell besides typing the password. (Is it in this that the contents of /home/.profile file gets executed ? in a sigle PC)
When we click on the terminal icon for the first time, are we opening a subshell of something or a new shell altogether? If on repeatedly clicking on the terminal icon, new shells are being launched, not sub-shells, then why does export seem to work with the new shells, though its supposed to work for subshells ?
what are the two ways you can identify the PID nimber of your login shell
View 14 Replies View RelatedI installed 11.3 last week and eventually got nvidia drivers working. I was quite happy how most things were progressing, then the temptation to upgrade to 11.4 got too much I upgraded today (online, not dvd) and everything went well. On rebooting the desktop came up as normal and all was good. I installed nvidia and got that working ok. I then installed Gnome-Shell and couldn't figure out how to get it working. I've been using Fedora recently and the Gnome-Shell option is available at Login. I then discovered the gnome-shell --replace terminal command and I tried it. It seemed to load ok, but as I had used the terminal, when I closed the terminal it seems like compiz crashed. I lost all windows borders and nothing was usable. I REISUB'd and started again. On reboot I got a CLI login prompt. After logging in I tried startx, to no avail. I then tried gdm start and got to the desktop again (not gnome-shell). I Alt+F2'd and ran gnome-shell --replace again and all was good - except no network I rebooted again, and got the CLI again. Went through it all again and tried to configure network (wireless) no good. I then connected an ethernet cable and tried again. That worked, but I'm not sure why - I didn't think anything was downloaded. Anyway wireless now works ok - even on reboot. However I'm still getting dumped to the CLI login on restarts.
View 9 Replies View RelatedI upgraded from fedora 6 to fc10 using a net-inst iso. Everything went great however when I rebooted gnome wouldn't start up and there were other error messages, however thats not my current question. I figured id login as root, I put my pw in and the screen briefly flashes and then back to login prompt. The flash is a message saying something about no shell. Same occurs when trying to logon to my main user account. I can boot to single user and see that all my partitions are there and the data is there. My password file has the shell at the end of the entries.
View 1 Replies View RelatedI want to create a script to delete user if he has no login shell.
View 4 Replies View RelatedAny one tell me online bash login using putty [ssh port] for practicing a linux.
View 6 Replies View RelatedI have disabled root login in my remote shell and I have a pretty strong password. I am not happy though. I want to increase security. I've been thinking about installing some basic tripwire rig, like say, send myself an email every time I (or anyone) log in. My questions:
- What kind of data would be useful to be sent in that email? Anything else besides "user so-and-so logged in at {date and time}"?
- How would I achieve that? Is it enough to include it in .tcshrc (because my shell is tcsh)? Should I add it to other shells as well (.bashrc, .csh etc.) even though nobody uses the other shells? Is it better placed in some other file, like .login? What is the optimal place?
- Would that be enough? Can I make that whole idea more secure in any way?
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 RelatedI was trying to create a shell script which will automatically login to the server 192.168.1.7 and checks if a user exists there or not, if it doesn't exist then it should create the user.I have very little idea about shell scriptThis is what I tried:Quote:
#!/bin/bash
pass="sacharje"
ssh 192.168.1.7
Now, how to pass that password automatically to the ssh when it asks for the password? (I can't use public key authentication here)
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?
I use tcl-expect script to ssh to the server. How can I eliminate the first 2 lines if using system(./script.sh) to execute it, as the default output will be shown on shell and the first 2 lines are included.
Essentially I just want to have the "ps" result, not the login process. code...
I'm using VSFTPD on my office LAN for one simple task: to receive-and send - installation images created with Ghost4Linux. Until recently, my main LAN server ran on CentOS, but I decided to migrate it to Slackware (nicer release policy ).
What I usually do is create an 'install' user who can login to FTP, but not on the system. Here's an example of what I used to do on my CentOS setup:
Code:
# mkdir -p -m 0700 /home/ftp/install
# groupadd install
# useradd -d /home/ftp/install -g install -s /sbin/nologin install
# chown -R install:install /home/ftp/install
# passwd install
The relevant bits in vsftpd.conf looked like this on the CentOS server:
Code:
...
anonymous_enable=NO
...
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
...
Then I only had to create the /etc/vsftpd/user_list file and put a single line in it to allow the newly created user:
Code:
install Now I've tried to get the same behaviour on Slackware, and I succeeded more or less, except for one thing. There's no way my 'install' user can login to FTP when his default shell is set to '/sbin/nologin' (or '/bin/false'). Only when I change the 'install' users' default shell to a "real" shell like '/bin/bash', he's able to login.
Here's a little practical demonstration of what's happening:
Code:
$ lftp localhost
lftp localhost:~> user install
Mot de passe :
[code]...
I've seen a lot of posts related to problems with GNOME 3 shell and nvidia drivers but I have yet to find anything that seems to fix my problem. At this point, the laptop, a Dell D850, boots just fine all the way to the gdm login screen. When I log in, the background and menus initialize and the mouse can be moved around, but nothing works---I can't click on anything, Alt-F1 does nothing, and I have to switch to a VT and shut-down X. I've uninstalled all things nvidia and now I have a working laptop, so long as I use Classic with Compiz.
I upgraded two other hosts, but both had ATI graphics cards; they worked without a hitch. I'm regretting having decided to upgrade this laptop
I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?
View 7 Replies View Relatedfinally i found the script for telnet automated login session...<<Mod edit: questionable link removed>>
View 4 Replies View RelatedI am using the sudo command to log on locally as another user by the following command:
sudo -u theotheruser -s
or
sudo -u theotheruser sh
As I see it, this initiates a new shell with the mentioned other user.However, this doesn't load that users profile from his home directory.Is there a way to automatically read the users profile when login in with selected command? I am mostely interested in getting a working prompt when logged in.
I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?
View 1 Replies View RelatedIs there any way I can switch my desktop shell from unity to, say, gnome-shell? I can switch using other console shell I like (bash, csh, fish, etc.). Assume that there is a stable alternative desktop shell, I should be able to choose, too.
(For console shell, we goes to /etc/passwd. But for desktop, I can't find the way to config.)