Questions tagged [login]
Login, or logon, meaning to authenticate with a computer.
892
questions
176
votes
5answers
179k views
how to disable SSH login with password for some users?
On Linux (Debian Squeeze) I would like to disable SSH login using password to some users (selected group or all users except root). But I do not want to disable login using certificate for them.
edit:...
142
votes
4answers
5k views
Is my password compromised because I forgot to hit Enter after ssh username?
I've just tried logging into a Fedora (release 13 Goddard) server using SSH (PuTTY, Windows). For some reason the Enter after typing my username didn't go through and I typed in my password and hit ...
102
votes
11answers
114k views
How can I automatically change directory on ssh login?
I'm trying to get ssh to automatically change to a particular directory when I log in. I tried to get that behaviour working using the following directives in ~/.ssh/config:
Host example.net
...
100
votes
7answers
125k views
How to run command as user who has /usr/sbin/nologin as Shell?
All I need to do is to run a specific script as a particular user who does have the nologin/false shell indicated in /etc/passwd.
I would run the script as root and this should run as another user.
...
96
votes
3answers
244k views
How do I extract login history?
I need to know the login history for specific user (i.e. login and logout time),
How do I extract this history for a specific date range in Linux ?
95
votes
11answers
105k views
How to prevent a user from login in, but allow “su - user” in Linux?
How do you allow a user to log in using "su - user" but prevent the user from login in using SSH?
I tried to set the shell to /bin/false but the when I try to su it doesn't work.
Are there several ...
83
votes
19answers
116k views
Login without running bash_profile or bashrc
So let's say one typoed something in their .bashrc that prevents him (or her) from logging in via ssh (i.e. the ssh login exits because of the error in the file). Is there any way that person could ...
73
votes
6answers
212k views
How can I edit the welcome message when ssh start?
I have a VPS for my website hosting. It is running a Ubuntu server. Every time I logged in my server by ssh, it displays a lengthy welcome message in my terminal.
Linux node61.buyvm.net 2.6.18-...
71
votes
3answers
43k views
What is the difference between /sbin/nologin and /bin/false?
I have often heard it recommended that a user account should be disabled by setting its shell to /bin/false. But, on my existing Linux systems, I see that a great number of existing accounts (all of ...
54
votes
9answers
141k views
Tool to test a user account and password (test login)
Yeah, I can fire up a VM or remote into something and try the password...I know...but is there a tool or script that will simulate a login just enough to confirm or deny that the password is correct?
...
49
votes
2answers
51k views
Executing a command as a nologin user
I've recently set up my server so that my suPHP 'virtual' users can't be logged into by using this article
My issue now is that before when I ran a rake command for my Ruby on Rails application ...
35
votes
1answer
1k views
What's the meaning of logging in as “username@mydomain.com:something”
My Windows 2008 R2 machine is joined to a domain.
In the logon screen, if I type in "username@mydomain.com:something" as the username, I can still logon properly, what's the meaning of ":something" ...
34
votes
2answers
29k views
Is there a specific name for the “.\” (dot-slash) shorthand used to log onto a Windows machine?
I guess the title just about says it all. And yes, .\, not that obsolete \. thing.
For those who don't know, .\ is a shorthand way of saying "this computer"*see "footnote" in Windows at a logon ...
33
votes
10answers
12k views
Why su to root instead of logging in as root?
I've heard often that it is better to su to root rather than log in directly as the root user (and of course people also say that it's even better to use sudo). I've never really understood why one ...
32
votes
7answers
74k views
How do I disable root login in Ubuntu?
a while ago I gave root a password so I could log in as root and get some stuff done. Now I want to disable root login to tighten security, since I'm going to be exposing my serve to the internet. I'...
30
votes
4answers
313k views
What's the default username and password for an Ubuntu Live CD?
What's the username and password for an Ubuntu Live CD image?
I ask because I've recently copied the contents of an Ubuntu based live ISO (easypeasy, the ldistro for nwtbooks) onto a hard disk drive, ...
25
votes
6answers
72k views
Log MySQL login attempts
From time to time there are failed login attempts in our MySQL production server (MySQL dashboard alerts us). Is there a way to log every single success and failed login to the MySQL server without ...
23
votes
25answers
2k views
Is Open ID better than the usual LogIn system? [closed]
We are developing a web system and considering using the Open Id feature. Do you think it is any better than the usual way of loggin users in? If we use the Open Id feature that means the users will ...
23
votes
13answers
160k views
Linux closing connection after successful login
I am working on a server with Debian 5.2.2. Barely having any administrative knowledge with Linux, I think I screwed something up. I used apt-get update and apt-get upgrade to get everything up to ...
22
votes
8answers
15k views
Should we disable the root user?
Should we remove the root password, disable remote login and basically require adminstrators to use sudo to perform administrative actions?
22
votes
2answers
6k views
nologin in /etc/shells is dangerous.. WHY?
I found this on the internet, while putting up a FTP server in FreeBSD.
Putting nologin into /etc/shells potentially creates a back door by
which those accounts can be used with FTP.
(see: http:...
22
votes
7answers
150k views
How to configure vsftpd to allow root logins?
I'm on SLES 10.1, and trying to configure vsftpd to allow root logins. Does anyone know how to do this?
So far, I have this:
local_enable=YES
chroot_local_user=NO
userlist_enable=YES
userlist_deny=...
21
votes
2answers
21k views
How to find who was logged in before beginning of wtmp
I'm trying to determine who was recently logged into a specific machine in my office. So I used last, but wtmp begins yesterday (Monday) around 14:30. I was hoping to find info stretching back to ...
18
votes
14answers
6k views
Reasons for missing IP info in `last` output on pts logins?
I have five CentOS 6 linux systems at work, and encountered a rather strange issue that only seems to happen with my userid across all the linux systems I have... This is an example of the problem ...
18
votes
6answers
30k views
Is this server hacked or just login attempts ? See log
Can someone tell what does this mean? I tried a command like lastb to see last user logins and I see some strange logins from China (server is EU, I am in EU). I was wondering if these could be login ...
18
votes
4answers
24k views
In SQL Server, how do I create a login for an existing user?
I restored a database from one SQL Server instance on to a different SQL Server instance. The database allready has users added to it. But they don't have Login's for the new SQL Server instance.
I ...
16
votes
2answers
2k views
In the output of `last`, what does suffix “.d” after an IP address mean?
In order to find out who was logged in recently on my server I am using the command:
There were logins from very strange IP addresses e.g.:
username@pc:/home/user$ last
username pts/16 59.224....
16
votes
5answers
28k views
Windows Server 2008 R2 RDP login paste password
Is there any utility out there that allows me to paste the password in my clipboard to Windows Server 2008 R2 RDP login screen as if I'm typing the characters directly from the keyboard?
I login a lot ...
13
votes
4answers
25k views
Why won't automatic login through ssh with authorized_keys work?
I have created a private/public dsa-keypair. I've put the public key on the server in
~/.ssh/authorized_keys
Everything is set up like my other server, but it seems like the server is just ignoring ...
13
votes
7answers
40k views
Auto-login in Windows Server 2008
Does anyone know a (verified) method to cause a specific user to auto-login after a system reboot, that works on Server 2008?
I've tried tweaking some registry values (I don't have the link right now)...
13
votes
2answers
3k views
What do the OS X authorization mechanisms actually do?
BackgroundĀ
I'm trying to glean a better understanding of the OS X login process, in order to decide the best way for achieving VPN Single Sign On.
Please do correct me if I'm wrong, but I believe ...
12
votes
2answers
7k views
How to configure the login message in Ubuntu?
Each time I SSH into my AWS Ubuntu servers I see a system information message, showing load, memory usage and packages available to install, like this:
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-...
12
votes
4answers
3k views
How to lock out normal (non-admin) users during software installs?
We have a lot of thin clients running Windows Embedded Standard 7 and an SCCM 2012 R2 server to manage them. The thin clients have their write filters enabled (FBWF) so machine changes are not ...
11
votes
5answers
51k views
Can't login to SQL Server in Single User mode
I've been trying all sorts of different combinations of startup flags to SQL Server 2008 R2 Express and I can not get past this error:
Login failed for user 'LOCALSERVER\Administrator'. Reason: ...
11
votes
1answer
5k views
Stress login-area with Siege
I need testing the performance of the reserved area of my website. I want use Siege for this goal.
For accessing to reserved area you must be logged to my site.
How can I send with Siege a Login-...
10
votes
7answers
16k views
Send email when anyone logs on
My CentOS/RHEL system may have been hacked, I'm not sure. But I'm playing it safe by creating a new slice from scratch.
I've installed tripwire, but I'd also like to be emailed when anyone logs in. I ...
10
votes
2answers
68k views
lastLogon vs. lastLogonTimestamp in Active Directory
An employee left the company. I try to find out when his AD account was logged in for the last time - if it was before the dismissal or after.
There are these 2 attributes in user properties window: ...
10
votes
5answers
16k views
Automatically log in once Windows 2003 server starts
I have a non-daemon server app that my Windows 2003 server needs to run all the time. The problem is, every time the server restarts, be it electricity or windows update, someone needs to press Ctrl+...
10
votes
5answers
55k views
Failing to connect to server via SSH - “Server refused to allocate pty”
I have a STRATO V-PowerServer running with Ubuntu 10.10 for my stuff but lately have problems connection to the server via ssh.
Basically all I have is ssh-access to the server and if necessary I can ...
10
votes
1answer
6k views
ssh: id_rsa doesn't work, but if I rename it, it works
I have this id_rsa in my ~/.ssh folder. But it just doesn't authenticate. If I copy it and rename it to anything not id_rsa, it works.
[qfan@mycomputer .ssh]$ ls -al id_rsa id_rsa_good
-rw------- 1 ...
9
votes
5answers
29k views
Disable usage of console-kit-daemon in Ubuntu
I administrate several Ubuntu 9.04 servers, and everytime I log in, I get the Landscape utility printout with server stats, etc. I really don't need this and it slows down my logins considerably. ...
9
votes
2answers
13k views
Override LDAP shell
I have a LDAP server and a predefined shell (bash) set in it. But there are some machine on which I want a different shell to be used whenever user login to that instead of the shell stored in LDAP.
...
9
votes
2answers
1k views
Precached Windows Logins?
I know if a Windows users logs into a machine, and later that machine falls off the network, that the user can log in to the machine with cached credentials. Is there any way to precache those ...
9
votes
2answers
23k views
Diagnosing slow active directory logins
I'm having a hard time diagnosing intermittent slow logins on domain PCs.
A bit of information about the network that has this problem:
My domain spans 5 sites, all with VPN connections.
DCs are a ...
8
votes
4answers
4k views
Speeding up Group Policy, and how will implementing Group Policy Preferences impact logon time?
I'm looking for some advice on speeding up and upgrading our logon system to make it more robust and faster.
I inherited an older logon system, which was migrated over from Novell Netware originally. ...
8
votes
2answers
11k views
Ubuntu login page: where to specify users list shown
Using Ubuntu 10.04.1 Desktop (Latest)
After the boot process, GDM shows the graphical login screen along with a list of users that can log in. Clicking a name will ask for its password.
I would like ...
8
votes
4answers
887 views
Remote Root Login
I know one of the first things you do to secure a server is disallowing remote root login.
Passwords are pretty weak; what do people think of only allowing root login via ssh keys or other password-...
8
votes
4answers
10k views
Measuring Windows 7 user login times
I Have been asked by a client to calculate average login times for machines and users. So far I have found that the event logs some boots that take longer than the thresholds set by the keys found at:
...
8
votes
4answers
19k views
Debugging sssd login: pam_sss […] System error
How does one properly debug the shell login in the following case?
Authentication is handled via sssd configuration and a krb5 authentication server. Logging in with the same .conf-file on Ubuntu 16....
8
votes
2answers
6k views
Up-to-date alternatives of rssh or scponly [closed]
I need:
An scp and sftp server
With chroot-ed environment
With non-login (ssh not allowed for scp/sftp users)
Options and related issues I found:
scponly
No updates since more than 6 years
Does ...