Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [login]

the process of logging in: from the login prompt, through user authentication, to session startup

0
votes
2answers
226 views

Fedora 23 Freezes after login

Fedora is my first Linux-based OS I've ever installed and everything seemed to be going well until I tried to log in. I enter my credentials and the login disappears leaving only the background image ...
6
votes
4answers
24k views

Debian Log In Failure With Correct Password

So I have a Debian distro at home (considering getting ubuntu), and I can't login. When I use the correct password is does this thing where it makes it look like it's going to login, and then it ...
1
vote
3answers
3k views

What makes the files in my home directory appear, when I log in through SSH then run ecryptfs-mount-private?

I've recently installed Ubuntu 12.04 LTS (minimal virtual machine) on a VPS host. I've encrypted the virtual disk and encrypted the home directory of my main user account, that I'm using to access the ...
1
vote
2answers
397 views

Does utmp log contain 'logout' information?

I have a test yesterday. A question is Choose the one that is wrong about log files. utmp contains login and logout information of the users who are currently logged onto the system ...
1
vote
1answer
109 views

How can one verify the authenticity of `getty` running on linux?

The unix haters handbook says: /etc/getty, which asks for your username, and /bin/login, which asks for your pass- word, are no different from any other program. They are just programs. They happen ...
0
votes
1answer
141 views

How to automate a source command

I have to run a command every morning after I log on to the server to enable certain company specific functionalities. The command looks like this: source /data/dev/int/default/somethingsomething.env ...
1
vote
1answer
790 views

How to disable “Last failed login” message on Centos?

How can I disable the message below when a specific user logs into a Centos machine from console? Last failed login: Sun Jun 30 22:32:35 EST 2018 from 192.168.142.71 on ssh:notty There were 3 failed ...
0
votes
0answers
24 views

Lightdm: Starting the Desktop Environment Depending on Which User Logged In

I'd like to set up a user account (lets call it userA) that, on login, instead of starting the desktop environment (Budgie), it goes to a TTY. Having the inverse behavior (starting at the TTY first ...
1
vote
3answers
75 views

How to tell what method was used to log in (Password vs. Keyfile) from the bashrc

Is there a way how you can check what auth method the user which just logged in to an account were using? I like to print out a warning after login if someone is using a password instead of a keyfile....
1
vote
0answers
223 views

Why is root always logged in from ttyS0 (even after system reboot)? [closed]

I am continuously seeing root in the output of the w command on a virtual machine hosted on the cloud. I have restarted the machine several times and even tried sending CtrlAltDel from the OpenNebula ...
1
vote
0answers
111 views

Unable to login into Kupiki captive portal using the given username and password(Raspberry Pi 3 B+) [closed]

I tried to create a captive portal for my Raspberry Pi's Wifi hotspot using Kupiki-Hotspot-Script which is given in this link Kupiki-Hotspot-Script However I am unable to login using the given ...
1
vote
1answer
49 views

Is it possible to log into all 6 terminal sessions at once?

If I press Ctrl+Alt+F1 to switch to the 1st terminal session, I have to give my username and password to log in. If I press Ctrl+Alt+F2, I have to repeat this process. Same for F3, F4, F5, and F6. Is ...
15
votes
2answers
11k views

Escape hash mark (#) in /etc/environment

I am adding an env variable to /etc/environment but because the variable value contains # sign, string is striped. MYSQL_PWD="something#no" Now if I do env above code yields MYSQL_PWD=something. How ...
6
votes
1answer
1k views

Confused between “echo command | ssh server” and “ssh server command”

During the course of my learning about the non-interactive login shell, I have come across 2 ways to remotely execute the commands via SSH. For me, they both look to be the same. But unfortunately, ...
2
votes
1answer
166 views

sudo and su commands do not work, after executing sudo chsh -s /bin/zsh

So, I've been trying to install zsh. It didn't work properly, after terminal restart, so I decided to change the shell again by typing chsh -s /bin/zsh, once again, but accidentally preceded that with ...
0
votes
2answers
460 views

cannot login system but kept showing “ out of memory killed process”

I edited root ~/.bashrc today, and suddenly the system became lagged so I tried to reboot it. and the screen showed that I cannot login in at all. the system version is redhat 6.5 and there is a ...
0
votes
1answer
22 views

which software runs the login widget under Xfce4

I'm running Debian Buster with Xfce4 on two different systems, each with a long history going back 3 or 5 Debian releases. After booting into Linux, they show completely different screens with ...
2
votes
1answer
113 views

Last (failed) logins - or - why elevated permissions for btmp

Why do I need to have elevated permissions to access the last failed logins (/var/log/btmp) but not for the last successfull logins (/var/log/wtmp). (At least per default on debian/ubuntu linux - my ...
8
votes
2answers
11k views

How can I disable the user list login screen in Gnome 3 on Fedora 16 or 17?

Our login screen requirements include a warning / disclaimer and a basic login, showing just a username and password field. Sadly, Gnome 3 seems to be ignoring the org.gnome.login-screen.disable-user-...
0
votes
0answers
29 views

Can't login into Fedora 11?

I am using Fedora 11 with VMware Workstation for Unix. I was performing grep command but as it doesn't display highlighted output so i found some commands and tried running them. Code is as below. ...
8
votes
2answers
11k views

Lenovo T440s Fingerprint reader in Fedora 20

I just got my new Lenovo T440s and installed Fedora 20 with Gnome 3 on it. Everything runs smoothly, except for the fingerprint reader. Its got a Validity VFS5011 (138a:0017) device which is not yet ...
0
votes
1answer
568 views

How to create a single Authentication point with multiple LDAP servers?

I'm currently into a process of creating a central service system from where users can connect to VMs. My goal with this is to have a single point of authentication for all possible users. The issue ...
0
votes
0answers
281 views

Run script on non-interactive SSH session (SFTP)?

I have a Linux development server in Digital Ocean based on Ubuntu Xenial 16.04. I use this mostly for development. I created a script on /etc/profile.d/ to trigger an SMS message (based on Node.js ...
1
vote
2answers
195 views

Check whether root-access is allowed without ssh-key

I want to check via BASH if root access on a certain server is possible without a ssh-key. So the script should check if you have access without SSH key or not. Here is my attempt: (pseudocode) /usr/...
-1
votes
1answer
124 views

How can I display a message from ~/.profile?

I want to display a warning message when a test in my ~/.profile (actually, in another file that I source in ~/.profile) fails, e.g.: if [ -f /usr/bin/vim ]; then ...
0
votes
2answers
298 views

w command doesn't show all pseudo-terminal sessions

If I open terminal and execute w command then it will show: user tty7 :0 12:04 39:56 36.87s 0.06s /sbin/upstart - Now if open terminator or xterm and execute w command then ...
0
votes
1answer
663 views

Cannot login to Linux with AD account and /bin/bash

I have configured everything necessary to log in with an AD account into Linux (Kerberos v5, SSSD, Samba and NTP), but when I connect with Putty to the server, the default shell that starts is /bin/sh....
1
vote
0answers
307 views

ubuntu 18.04 - too long to show login

it takes on average 2 minutes showing the splash screen before the login widget is made visible. blame did not show anything suspicious (this is after removing splash and quiet optiona off in grub): ...
0
votes
2answers
244 views

Automatically logged in user runs broken script at login, advice on how to regain access to pc?

The automatically logged in user is the guest-session and the login script is run through /etc/guest-session/auto.sh. It produces no error message, just stalls on a black screen. It is Linux Mint ...
0
votes
2answers
219 views

Replace login shell with program (mini-jail)

is there a better way, preferably without an extra software-stack, to lock specific ssh users into a program without access to a working shell? Imagine a cli program which should be the only interface ...
0
votes
1answer
2k views

Set environment variable for all login scenarios

I'm using Microsoft's dotnet in linux (ubuntu), and it has dial-home telemetry. I want to disable it, and the instructions say: The .NET Core tools collect usage data in order to help us improve ...
3
votes
2answers
309 views

How to shut down Fedora without logging in

I have Fedora 27, and when I go away, the login screen is shown. Then I return to shut down the PC, but is not allowed to shutdown the PC from the login screen. I need to log in and then shut down. ...
-1
votes
1answer
186 views

Cannot log in because of corrupted .bash_profile [duplicate]

I have created a new user account. I can't access it because of a .bash_profile error. How can I repair this type of error?
18
votes
5answers
141k views

How to display welcome message in unix? [duplicate]

How can I display the welcome message "welcome panni" every time I log into unix?
15
votes
7answers
5k views

Is it bad practice to set root's shell to something other than the default?

Once a friend of mine (who is an experienced Unix/Linux user) told me that setting root's shell to something other than sh (i.e bash or zsh) might create problems, because some script might assume ...
17
votes
5answers
15k views

Is the username in Unix case sensitive?

Is ssh abc@servername different from ssh Abc@servername? Does the case of the username matter in Unix? My user authenticates via LDAP.
0
votes
0answers
102 views

How to configure which characters are allowed in CentOS usernames

In systems such as Debian, there is a file /etc/adduser.conf which includes directive NAME_REGEX that can be used to define which characters are allowed in a username. Is there a way to do this in ...
1
vote
1answer
122 views

Is it possible to configure one-time ssh or console login passwords using only packages from the official Arch Linux repositories?

I want to set up one-time passwords for both remote access via ssh and for local console login access to an Arch Linux server (no GUI anything). The server runs in a small business environment and ...
0
votes
1answer
299 views

Ubuntu won't login after disk migration

I have a weird problem here. I migrated my GF's drive from HDD to SSD. I had to shrink Windows partition and move partitions around to fit 750GB HDD to 512GB SSD. I think I did everything fine. ...
1
vote
1answer
773 views

How does ssh or any other service work without pam?

I do not understand how ssh or any other service can work without pam. pam defines all the rules, if I understand correctly, calls other modules to set resources or restrictions etc. Can someone ...
2
votes
1answer
338 views

How to prevent root login from GNOME 3 login screen (Arch Linux)?

I am running an up-to-date installation of Arch Linux and GNOME 3.28. For security reasons I don't allow root login in the consoles. I have done this by configuring /etc/securetty. However, it ...
6
votes
2answers
7k views

Linux Mint 18.3 Cinnamon cannot start a session

As of today, I cannot login into my account. I start the computer, get to the login screen, login and then this following error appears: Your session only lasted less than 10 seconds, if you... And ...
0
votes
2answers
365 views

Cannot log in if shell is set to /usr/bin/bash

So I just ran into an interesting issue. On Arch Linux, if I create a user that uses a shell from /usr/bin they cannot log in. I create the user with: useradd -m -G wheel -s /usr/bin/bash username ...
1
vote
0answers
158 views

Where does a bash process get its default signal handlers/traps?

From https://stackoverflow.com/questions/50606753/do-getrlimit-and-setrlimit-work-by-reading-from-and-writing-to-etc-sec#comment88227414_50607042 Bash doesn't have a special handler for SIGQUIT ...
0
votes
0answers
1k views

Ubuntu 16.04 LTS mouse/keyboard doesn't work at login screen and then freeze

There are many questions like this one, but mine seems to be unique. I have a HiDPI display on a System76 laptop, and running uname -a gives Linux Ulfhednar 4.13.0-43-generic #48~16.04.1-Ubuntu SMP ...
18
votes
4answers
4k views

Why is root in wheel and operator? Can root being in a group ever make a difference?

I just noticed on my FreeBSD machine that root is in wheel and operator. I'm trying to think of a situation where UID 0 being in a group would have any effect on... well... anything, and I'm coming up ...
1
vote
2answers
463 views

How to disable virtual keyboard on GDM screen

After an update to F28, every time I reboot my machine, the GDM screen is showing an ugly, unnecessary, and useless virtual keyboard instead of the login screen. How do I disable that? My login ...
0
votes
1answer
152 views

Is there a way to disable only root login via serial console on RHEL6?

I'm trying to disable root login via the serial console in RHEL 6. Based on this link from redhat (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s2-...
4
votes
0answers
1k views

Gain root access without using root's login shell

I bricked the login of my root user by removing zsh while it was still the default shell. Now as a result will login in fail, since on login will it try to use /bin/zsh(1), which is missing. Only one ...
0
votes
0answers
175 views

sudo start login shell (-i) and stay at current working directory

When I login to root via sudo -i sudo changes the working directory of new shell to root's home directory. I can use following commands to keep working directory of parent shell: sudo -s sudo su ......