Questions tagged [login]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
328 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
219 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
143k 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 ...
18
votes
5answers
16k 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
106 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
123 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
306 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
840 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
357 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
390 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
166 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
496 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
171 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
187 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 ......
0
votes
1answer
85 views

Bash prompt changes for different users

With our latest hardware/OS refresh, we implemented FQDN throughout our domain. We are now having a problem getting the correct prompt in our terminal sessions when we ssh into a remote site. This ...
0
votes
1answer
48 views

Listing users prior to linux login prompt

On Arch Linux x64, not using any display manager/desktop env. Is there any way to list all "real" users (the ones who can login) before the username/password login prompt? I already know how to get ...
2
votes
1answer
719 views

Login not chdir()ing to correct home directory (AD/realmd/sssd)

I'm forced (ugh) to join several linux machines to a domain. I'm currently using debian stable, and am joining the machines using a join script I wrote (at https://rbmj.github.io/join.sh for ...
0
votes
3answers
102 views

how to stop user from setting his PATH [closed]

I have set restricted user with limited commands to run with .profile and PATH variable but user can set his path using: $ export PATH=$PATH:/bin:/sbin:/usr/bin and can get access to other commands. ...
0
votes
1answer
68 views

When will login terminate?

When starting up an OS, getty and login are run. It seems that login will continuously run after finish logging in. There is no logout command. I wonder when login will terminate running, except ...
0
votes
1answer
54 views

Why can't login be invoked as a sub-process and executed in any shell but the login shell?

From manpage of login The login program is used to establish a new session with the system. It is normally invoked automatically by responding to the login: prompt on the user's ...
0
votes
1answer
72 views

What are the differences between `su target-user` and `login target-user` ?

What are the differences between su target-user and login target-user ? The latter may need sudo. They both seem to me to create a login session for target-user. Thanks.
1
vote
5answers
26k views

PAM login permission denied

I have an OpenSuSE 12.3 machine and can't login to the box either on tty or via ssh. As soon as the user logs in the session terminates and in the message "login [1234] permission denied" is printed. ...
35
votes
3answers
51k views

How to change default shell to ZSH - chsh says “invalid shell”

I installed ZSH on a VM of mine, where I compiled it from source. The location of ZSH is /usr/local/bin/zsh when I run chsh -s /usr/local/bin/zsh it outputs chsh: /usr/local/bin/zsh is an invalid ...
0
votes
0answers
2k views

black screen with cursor on linux on virtual box

I've installed Kali Linux on virtual box 5.2. The host machine is windows 10 pro 64bit. After starting the machine, I get the login screen where I put username and password. After pressing sign in, I ...
1
vote
1answer
13k views

Kali Linux keep asking username and password again and again! I Can't login!

My problem is whenever I type user name and password; kali linux keep asking me again and again the username and password. I can’t get in to the system. However I can login in text mood in different ...
4
votes
0answers
719 views

After recent update of Arch linux, GDM login screen is missing text

This is an Arch install with Cinnamon DE and GDM. I am still able to login at the screen but the text on the screen is mostly missing. What I mean is that there are two buttons that appear and the ...
119
votes
8answers
28k views

Which is the safest way to get root privileges: sudo, su or login?

I would like to have the root account in safety even if my unprivileged user is compromised. On Ubuntu you can only use sudo for "security reasons" by default. However I am not sure it is any safer ...
86
votes
3answers
385k views

SSH login with clear text password as a parameter? [duplicate]

I need to login to a user that I've created on a remote host running Ubuntu. I can't use an ssh key because the ssh login will happen from a bash script ran within a server that I won't have access to ...
10
votes
1answer
2k views

Too big delay with xscreensaver on wrong password in OpenSUSE 12.2

There is too big delay when logging in with xscreensaver in OpenSUSE 12.2 --- Actual delay is 10 seconds, but not found anywhere in configs Already done: checked pam timeout in login.defs (3 ...
1
vote
1answer
308 views

Unable to login using NFS rootfs

I have a custom board running kernel 3.2, and I'm trying booting using a remote rootfs. I've setup the kernel command line properly, and I'm able to reach the login prompt. This is where things get ...
1
vote
2answers
2k views

Forcing command to run on logout

I want to run a command, say touch ~/test.txt every time I'm logging out from my computer. Is that possible, and if so how should I go about doing this? I've looked at other responses but they were a ...
0
votes
0answers
950 views

Docker Login not working

I'm unable to download images from docker hub as the client reports I'm not logged albeit I'm. Example: Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ...
1
vote
2answers
1k views

What is the intended purpose of a login shell?

Bash manual says: A login shell is one whose first character of argument zero is‘ -’, or one invoked with the --login option. It defines a login shell in terms of the ways to start a login shell. ...
-2
votes
1answer
90 views

How can we start bash with the first character of argument zero being ‘-’?

Bash manual says: A login shell is one whose first character of argument zero is ‘-’, or one invoked with the --login option. However, I was wonderying why I have the following error? $ -bash No ...
-1
votes
1answer
164 views

Is a shell provided by `ssh username@server` login, and does it execute ~/.profile or ~/.bashrc? [closed]

From bash manual Invoked by remote shell daemon Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote ...
7
votes
1answer
6k views

linux mint "initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused [duplicate]

Getting error message at logon "session only lasted less than 10 seconds....", which apparently can be caused by multiple issues. My error is happening during the graphical logon. I can login to the ...
2
votes
1answer
467 views

ssh shows no prompt and authentication fails

I have a VPS running Debian 7 which I use to access through ssh for as long as 4 years. Now, suddenly, when I try to connect to it, no prompt for password is shown, although the connection to remote ...
1
vote
1answer
85 views

How to allow any user to log as a non loggable user?

I'm trying to implement the following functionality on Redhat: I have a user "John" that can't be used to login directly via GDM or console or SSH. I want to allow any user that are logged onto the ...
31
votes
5answers
68k views

Why doesn't my ~/.bash_profile work?

I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash. After I start my graphical desktop environment and run a terminal emulator from it, I can see that .bash_profile is ...
1
vote
1answer
928 views

Forced user password change when login over SSH

I'm planning a setup wherein users can only login to a machine via SSH, but will need their password for sudo commands (to avoid accidents so that there is a 'sanity check' prompt for a password, and ...
3
votes
3answers
82k views

Enable root login from GUI

I just installed Mint 16 and I see that root user is not available at login screen. I log in from normal user and went to "Login Window" option and there I set "Allow root login". Then I restarted the ...
0
votes
1answer
3k views

How to tell when a user last logged in without using the command last?

I'm trying to find out when a user last logged in without using "last". Last relies on the log files which are recycled, after a few weeks, the users' old entries are deleted. I'm sure there is a ...
1
vote
1answer
146 views

Linux console: All keyboard input is preceded by “^[”

After coming back from laptop hibernation, my Fedora 27 has gone into a weird state whereby: On the graphical console, no input is accepted, even mouse activity is disregarded On the text console, ...
0
votes
0answers
22 views

Grey screen after logging in with Kali [duplicate]

I just picked up a new Dell Inspiron 15 7000 with nvidia GeForce GTX 1050 Ti graphics cards - 8 GB RAM & 256 GB SSD. Here's my scenario: I made a bootable USB drive with Kali Linux 2018.1 ...
3
votes
2answers
4k views

How to fix log-in in graphical mode on fedora 25

I run a fedora x86_64 within virtualbox. The host is windows 10. After I made a (quite a few times actually) fresh new install of fedora workstation 25, I install a few things #dnf group install "...